/* AHY - Modern Developer Website Styles */

:root {
    /* Color Palette */
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-card: #252525;
    --bg-card-hover: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #6b6b6b;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --border-color: #333333;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(99, 102, 241, 0.15);
    
    /* Spacing */
    --container-width: 1200px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}

nav {
    display: flex;
    gap: 8px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

nav a.active {
    color: var(--accent-hover);
    background: rgba(99, 102, 241, 0.15);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* Main Content */
main {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    min-height: calc(100vh - var(--header-height));
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

/* Game Card */
.game-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    text-decoration: none;
    display: block;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.game-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.game-card-content {
    padding: 24px;
}

.game-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.game-card-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.game-card-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-hover);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Page Headers */
.page-header {
    text-align: center;
    padding: 40px 20px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.page-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Game Detail Page */
.game-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.game-hero {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: start;
}

.game-icon-large {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    border: 1px solid var(--border-color);
}

.game-info h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.game-developer {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.game-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

/* Features List */
.features {
    margin: 40px 0;
}

.features h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Screenshots Section */
.screenshots {
    margin: 50px 0;
}

.screenshots h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.screenshot {
    aspect-ratio: 9/16;
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.screenshot:hover {
    border-color: var(--accent);
    transform: scale(1.02);
}

/* Privacy Policy Page */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.privacy-content h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.privacy-content h2 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.privacy-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.privacy-content ul {
    margin-bottom: 20px;
    padding-left: 24px;
}

.privacy-content li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-hover);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Contact Section */
.contact-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contact-form {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .nav-container {
        position: relative;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        display: none;
    }
    
    nav.active {
        display: flex;
    }
    
    nav a {
        padding: 12px 16px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .game-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .game-icon-large {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .game-info h1 {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 40px 16px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Donation Button */
.donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ff7f7f 0%, #ff7043 100%);
}

.btn-donate {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ff7f7f 0%, #ff7043 100%);
}

.footer-donate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-donate:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    background: linear-gradient(135deg, #ff7f7f 0%, #ff7043 100%);
}

/* Website Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    z-index: 1000;
    max-width: 350px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.notification:not(.hidden) {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notification-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.notification-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.hidden {
    display: none !important;
}

/* Contact Notification */
.contact-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #065f46 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
    z-index: 1001;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.contact-notification:not(.hidden) {
    transform: translateX(0);
}

.contact-notification .notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-notification .notification-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.contact-notification .notification-text {
    color: white;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.contact-notification .notification-text strong {
    color: #d1fae5;
    display: block;
    margin-bottom: 4px;
}

.contact-notification .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.contact-notification .close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive for contact notification */
@media (max-width: 768px) {
    .contact-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-120%);
    }
    
    .contact-notification:not(.hidden) {
        transform: translateY(0);
    }
    
    .contact-notification .notification-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .contact-notification .notification-icon {
        align-self: flex-start;
    }
}

/* Responsive for notification */
@media (max-width: 768px) {
    .notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(120%);
    }
    
    .notification:not(.hidden) {
        transform: translateY(0);
    }
    
    .notification-actions {
        flex-direction: column;
    }
    
    .btn-sm {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .page-header, .game-card, .feature-item {
    animation: fadeInUp 0.6s ease forwards;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
