/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-main: #C0C0C0;
    --fg-main: #000000;
    --muted: #808080;
    --accent: #0000FF;
    --secondary: #FF0000;
    --tertiary: #FFFF00;
    --success: #00FF00;
    --success-dark: #00AA00;
    --title-navy: #000080;
    --title-gradient-end: #1084D0;
    --panel-yellow: #FFFFCC;
}

body {
    background-color: var(--bg-main);
    color: var(--fg-main);
    font-family: "MS Sans Serif", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

h1, h2, h3, h4, .font-heading {
    font-family: "Arial Black", Impact, Haettenschweiler, sans-serif;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.font-mono {
    font-family: "Courier New", Courier, monospace;
}

/* 90s Texture Backgrounds */
.bg-90s-tile {
    background-color: #c0c0c0;
    background-image:
        linear-gradient(45deg, #b8b8b8 25%, transparent 25%),
        linear-gradient(-45deg, #b8b8b8 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #b8b8b8 75%),
        linear-gradient(-45deg, transparent 75%, #b8b8b8 75%);
    background-size: 4px 4px;
    background-position: 0 0, 0 2px, 2px -2px, -2px 0px;
}

.bg-construction {
    background: repeating-linear-gradient(
        45deg,
        #ffff00,
        #ffff00 10px,
        #000000 10px,
        #000000 20px
    );
}

/* 3D Bevel Effects */
.outset-box, .window-card, button, .btn-primary {
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #dfdfdf;
    background-color: #C0C0C0;
}

.inset-box, input, .window-content, table {
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow: inset 1px 1px 0 #404040, inset -1px -1px 0 #dfdfdf;
}

/* Windows 95 Card Structure */
.window-card {
    display: flex;
    flex-direction: column;
}

.title-bar {
    background: linear-gradient(to right, var(--title-navy), var(--title-gradient-end));
    color: white;
    padding: 2px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.window-content {
    padding: 16px;
    flex-grow: 1;
}

.win-btn {
    width: 16px;
    height: 16px;
    font-size: 10px;
    line-height: 1;
    font-family: sans-serif;
    font-weight: bold;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #C0C0C0;
    color: black;
}

.win-btn:active {
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow: inset 1px 1px 0 #404040, inset -1px -1px 0 #dfdfdf;
    transform: translate(1px, 1px);
}

/* Buttons */
.btn-primary {
    background-color: #C0C0C0;
    color: black;
    font-family: "MS Sans Serif", sans-serif;
    font-weight: bold;
    padding: 4px 16px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
}

.btn-primary:active {
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow: inset 1px 1px 0 #404040, inset -1px -1px 0 #dfdfdf;
    transform: translate(1px, 1px);
}

.btn-primary:focus-visible, button:focus-visible {
    outline: 2px dotted black;
    outline-offset: 2px;
}

/* Decorative HR */
.hr-groove {
    border: none;
    height: 4px;
    background: linear-gradient(
        to bottom,
        #808080 0%, #808080 50%,
        #ffffff 50%, #ffffff 100%
    );
}

/* Typography & Links */
.shadow-text {
    text-shadow: 2px 2px 0 #808080;
}

a {
    color: var(--accent);
    text-decoration: underline;
}

a:visited {
    color: #800080;
}

a:hover, a:active {
    color: var(--secondary);
}

ul.list-square {
    list-style-type: square;
}

/* Animations */
@keyframes rainbow {
    0% { color: #ff0000; }
    17% { color: #ff8000; }
    33% { color: #ffff00; }
    50% { color: #00ff00; }
    67% { color: #0080ff; }
    83% { color: #8000ff; }
    100% { color: #ff0000; }
}

.rainbow-text {
    animation: rainbow 4s linear infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 10px 2px rgba(255, 0, 0, 0.5);
    }
}

.pulse-box {
    animation: pulse-glow 1.5s ease-in-out infinite;
}

.blink-anim {
    animation: blinker 1s step-end infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .rainbow-text { animation: none; color: #ff0000; }
    .pulse-box { animation: none; }
    .blink-anim { animation: none; }
    marquee { display: none; } /* Or style as static text block if needed */
}

/* Tailwind-like utilities for rapid layout (since we're not using tailwind compiler) */
.container { width: 100%; margin-right: auto; margin-left: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.pl-5 { padding-left: 1.25rem; }
.pl-16 { padding-left: 4rem; }
.pr-2 { padding-right: 0.5rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-3xl { max-width: 48rem; }
.w-full { width: 100%; }
.w-12 { width: 3rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.inline-block { display: inline-block; }
.overflow-x-auto { overflow-x: auto; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.relative { position: relative; }
.absolute { position: absolute; }
.z-10 { z-index: 10; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-6 { gap: 1.5rem; }

.left-3\.5 { left: 0.875rem; }
.left-6 { left: 1.5rem; }
.top-4 { top: 1rem; }
.bottom-4 { bottom: 1rem; }
.w-2 { width: 0.5rem; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .md\:left-5\.5 { left: 1.375rem; }
    .md\:left-8 { left: 2rem; }
    .md\:pl-24 { padding-left: 6rem; }
}

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }

.bg-white { background-color: #ffffff; }
.bg-black { background-color: #000000; }
.bg-gray-100 { background-color: #f3f4f6; }
.hover\:bg-gray-200:hover { background-color: #e5e7eb; }
.bg-muted { background-color: var(--muted); }
.bg-\[\#ffffcc\] { background-color: #ffffcc; }
.bg-yellow-200 { background-color: #fef08a; }
.bg-success { background-color: var(--success); }

.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-red-800 { --tw-gradient-from: #991b1b; --tw-gradient-to: rgba(153, 27, 27, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-red-500 { --tw-gradient-to: #ef4444; }
.from-green-800 { --tw-gradient-from: #166534; --tw-gradient-to: rgba(22, 101, 52, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-green-500 { --tw-gradient-to: #22c55e; }

.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.text-red-600 { color: #dc2626; }
.text-green-500 { color: #22c55e; }
.text-yellow-300 { color: #fde047; }
.text-secondary { color: var(--secondary); }

.bg-red-600 { background-color: #dc2626; }
.bg-green-600 { background-color: #16a34a; }

.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-black { border-color: #000000; }
.border-muted { border-color: var(--muted); }
.border-yellow-400 { border-color: #facc15; }
.border-gray-600 { border-color: #4b5563; }
.border-successDark { border-color: var(--success-dark); }
.border-collapse { border-collapse: collapse; }

.opacity-95 { opacity: 0.95; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.25rem * var(--tw-space-y-reverse)); }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(2rem * var(--tw-space-y-reverse)); }
