/* Intellireading Shared Styles */
:root {
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-50: #eef2ff;
    --primary-200: #c7d2fe;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --green-600: #059669;
    --green-700: #047857;
    --green-200: #a7f3d0;
    --green-50: #ecfdf5;
    --green-500: #10b981;
    --orange-500: #f59e0b;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Dark mode variables */
[data-theme="dark"] {
    --gray-900: #f9fafb;
    --gray-800: #f3f4f6;
    --gray-700: #e5e7eb;
    --gray-600: #d1d5db;
    --gray-500: #9ca3af;
    --gray-400: #6b7280;
    --gray-300: #4b5563;
    --gray-100: #1f2937;
    --gray-50: #111827;
    --white: #111827;
}

/* Auto dark mode */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --gray-900: #f9fafb;
        --gray-800: #f3f4f6;
        --gray-700: #e5e7eb;
        --gray-600: #d1d5db;
        --gray-500: #9ca3af;
        --gray-400: #6b7280;
        --gray-300: #4b5563;
        --gray-100: #1f2937;
        --gray-50: #111827;
        --white: #111827;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: var(--white);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    height: 40px;
    width: auto;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-600);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-cta {
    background: var(--primary-600);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.nav-cta:hover {
    background: var(--primary-700);
}

/* Dark mode nav-cta button text fix */
[data-theme="dark"] .nav-cta {
    color: white !important;
}

[data-theme="dark"] .nav-cta:hover {
    color: white !important;
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--gray-600);
    transition: all 0.3s ease;
}

.sun-icon, .moon-icon {
    position: absolute;
    transition: all 0.3s ease;
}

[data-theme="dark"] .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="dark"] .moon-icon {
    opacity: 0;
    transform: rotate(90deg);
}

:root:not([data-theme="dark"]) .sun-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

:root:not([data-theme="dark"]) .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--gray-600);
    transition: all 0.3s ease;
}

/* Footer */
.footer {
    background: var(--gray-800);
    color: var(--gray-300);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-link {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-600);
}

.footer-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.footer-link-icon {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer-contact {
    display: flex;
    align-items: center;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 1rem;
    text-align: center;
    color: var(--gray-500);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Smooth transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease;
}
