/* Page and Pixel Designs - Shared Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.auth-nav-link {
    opacity: 0.8;
    font-size: 0.9rem;
}

.auth-nav-link:hover {
    opacity: 1;
}

:root {
    --primary-orange: #ffab02;
    --secondary-blue: #3a7bd3;
    --light-blue: #8cfeff;
    --dark-text: #2c3e50;
    --light-text: #ecf0f1;
    --bg-light: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, var(--primary-orange), #e99c00);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-blue), var(--light-blue));
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    overflow-x: clip; /* clip prevents horizontal scroll without breaking position:sticky */
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--secondary-blue);
    -webkit-text-fill-color: var(--secondary-blue);
    letter-spacing: 0.04em;
    opacity: 0.85;
    line-height: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-blue);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-text);
    margin: 3px 0;
    transition: 0.3s;
}

/* Common page layout */
.page-container {
    min-height: 100vh;
    padding: 6rem 2rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 171, 2, 0.3);
}

/* Cards */
.card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transform: translateY(-100vh);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .page-container {
        padding: 5rem 1rem 2rem;
    }
}

/* Add this mobile menu CSS to your shared.css file */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-blue, #333);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Menu Toggle Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        font-weight: 500;
        color: var(--secondary-blue, #333);
        text-decoration: none;
        padding: 1rem 2rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        background-color: var(--primary-orange, #ffab02);
        color: white;
    }
    
    /* Hide regular nav on mobile */
    .navbar .nav-links {
        display: none;
    }

    .navbar .nav-links.active {
        display: flex;
    }
}

/* ── Site Footer ───────────────────────────────────────────────────────── */
.main-site-footer {
    background: #1a2332;
    color: #a0aec0;
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 3rem;
    font-size: 0.82rem;
}
.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}
.footer-support-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
}
.footer-support-link {
    color: var(--primary-orange, #ffab02);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}
.footer-support-link:hover { color: #ffd166; }
.footer-support-note {
    color: #718096;
    font-size: 0.75rem;
}
.footer-copy {
    color: #4a5568;
    font-size: 0.75rem;
    margin: 0;
}