/* Main styles for Italian Brainrot Clicker website */
:root {
    --apple-blue: #007AFF;
    --apple-green: #34C759;
    --apple-gray: #F5F5F7;
    --apple-dark-gray: #86868B;
}

/* Dark mode variables */
.dark {
    --apple-blue: #0A84FF;
    --apple-green: #30D158;
    --apple-gray: #1C1C1E;
    --apple-dark-gray: #8E8E93;
    --text-color: #FFFFFF;
    --bg-color: #000000;
    --card-bg: #2C2C2E;
    --border-color: #38383A;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--apple-gray);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode styles */
.dark body {
    color: var(--text-color);
    background-color: var(--bg-color);
}

.dark header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.dark .bg-white {
    background-color: var(--card-bg);
}

.dark .text-gray-600, 
.dark .text-gray-700, 
.dark .text-gray-800 {
    color: var(--text-color);
}

.dark .bg-apple-gray {
    background-color: #2C2C2E;
}

.dark .shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(255, 255, 255, 0.05);
}

/* Dark mode language dropdown */
.dark #language-dropdown {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark #language-dropdown a {
    color: var(--text-color);
}

.dark #language-dropdown a:hover {
    background-color: #3A3A3C;
}

/* Theme selector styles */
.theme-selector button {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.theme-selector button:hover {
    background-color: var(--apple-gray);
}

#theme-dropdown {
    z-index: 100;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#theme-dropdown a {
    transition: background-color 0.2s;
}

.dark #theme-dropdown {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark #theme-dropdown a {
    color: var(--text-color);
}

.dark #theme-dropdown a:hover {
    background-color: #3A3A3C;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: var(--apple-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

/* Logo styles */
#site-logo {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Language selector */
.language-selector button {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.language-selector button:hover {
    background-color: var(--apple-gray);
}

#language-dropdown {
    z-index: 100;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#language-dropdown a {
    transition: background-color 0.2s;
}

/* Container for iframe to maintain aspect ratio */
.iframe-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Button styles */
.button {
    display: inline-block;
    background-color: var(--apple-blue);
    color: white;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 9999px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0056b3;
}

/* Mobile navigation */
@media (max-width: 768px) {
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: white;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .mobile-menu.active {
        transform: translateX(0);
    }

    .mobile-menu-items {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .mobile-menu-items a {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Utility classes */
.shadow-hover:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

/* Additional responsive adjustments */
@media (max-width: 640px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
}

/* Section spacing */
section {
    margin-bottom: 4rem;
}

/* Card hover effects */
.bg-apple-gray {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-apple-gray:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Focus styles for accessibility */
a:focus, button:focus {
    outline: 2px solid var(--apple-blue);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header, footer, .iframe-container, .cta {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
} 
