/* Old Man Coder Games - Main Styles */

/* Base Reset and Fonts */
html {
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

body {
    background-color: #09090A;
    margin: 0;
    padding: 0;
    color: #F0F0F0;
}

/* Utility Classes - Layout */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.min-h-screen { min-height: 100vh; }
.min-h-\[50vh\] { min-height: 50vh; }
.min-h-\[40vh\] { min-height: 40vh; }
.min-h-\[60vh\] { min-height: 60vh; }

/* Spacing */
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-auto { margin-top: auto; }

/* Width and Max-Width */
.w-12 { width: 3rem; }
.w-full { width: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Height */
.h-12 { height: 3rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }

/* Grid Layout */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Text Styling */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.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; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-8xl { font-size: 6rem; line-height: 1; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-serif { font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; }

/* Colors */
.text-white { color: #ffffff; }
.text-gray-200 { color: #e5e7eb; }
.text-blue-400 { color: #60a5fa; }
.text-blue-300 { color: #93c5fd; }
.text-red-400 { color: #f87171; }
.text-green-400 { color: #4ade80; }
.text-yellow-400 { color: #facc15; }

/* Important utility classes */
.\!text-white { color: #ffffff !important; }

/* Backgrounds */
.bg-transparent { background-color: transparent; }
.bg-gray-900 { background-color: #111827; }
.bg-opacity-50 { background-color: rgba(17, 24, 39, 0.5); }
.bg-opacity-30 { background-color: rgba(60, 60, 67, 0.3); }

/* Borders */
.border { border-width: 1px; }
.border-white { border-color: #ffffff; }
.border-primary { border-color: #007AFF; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* Transitions and Hover */
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-blue-300:hover { color: #93c5fd; }
.hover\:bg-white:hover { background-color: #ffffff; }
.hover\:text-gray-900:hover { color: #111827; }
.hover\:border-primary:hover { border-color: #007AFF; }

/* Object Fit */
.object-cover { object-fit: cover; }

/* Display */
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Responsive Design */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Flex Wrap */
.flex-wrap { flex-wrap: wrap; }

/* Opacity */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* Header styles */
header {
    background-color: #1C1C1E;
    color: #F0F0F0;
    padding: 1rem 2rem;
}

/* Navigation styles */
nav a {
    color: #C0C0C0;
    transition-property: color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

nav a:hover {
    color: #FFFFFF;
}

nav a.active {
    font-weight: bold;
    color: #FFFFFF !important;
}

/* Hero section styles */
.hero-section {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Main content area styles */
.content-wrapper {
    background-color: rgba(28, 28, 30, 0.9);
}

/* Card/section styles */
.content-card {
    background-color: rgba(60, 60, 67, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 99, 102, 0.2);
}

/* Text styles */
.text-secondary {
    color: #98989D;
}

.text-primary {
    color: #F0F0F0;
}

/* Button styles */
.btn-primary {
    background-color: #007AFF;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #0051D0;
}

/* Form styles */
.form-input {
    background-color: rgba(60, 60, 67, 0.8);
    border: 1px solid rgba(99, 99, 102, 0.4);
    color: #F0F0F0;
    padding: 0.75rem;
    border-radius: 0.5rem;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: #007AFF;
}

.form-textarea {
    background-color: rgba(60, 60, 67, 0.8);
    border: 1px solid rgba(99, 99, 102, 0.4);
    color: #F0F0F0;
    padding: 0.75rem;
    border-radius: 0.5rem;
    width: 100%;
    min-height: 120px;
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: #007AFF;
}

/* Responsive utilities */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .content-wrapper {
        margin: 1rem;
        padding: 1.5rem;
    }
}