/* ============================================================
   CheesCoach Design System — Shared Components
   Reusable across landing, setup guides, and course
   ============================================================ */

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: var(--space-4) var(--space-6);
    background: rgba(12, 18, 32, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(12, 18, 32, 0.92);
    border-bottom-color: var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-inner {
    max-width: var(--container-xl);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-xl);
    color: var(--text-primary);
    text-decoration: none;
}

.navbar-logo img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
}

.navbar-logo span {
    background: linear-gradient(135deg, var(--text-primary), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    list-style: none;
}

.navbar-links a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--text-primary);
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: var(--radius-full);
    transition: width var(--transition);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
    width: 100%;
}

/* Hamburger */
.navbar-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.navbar-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition);
}

.navbar-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.navbar-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .navbar-hamburger { display: flex; }

    .navbar-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(12, 18, 32, 0.95);
        backdrop-filter: blur(20px);
        padding: var(--space-6);
        gap: var(--space-4);
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition-slow);
    }

    .navbar-links.open {
        transform: translateY(0);
        opacity: 1;
    }

    .navbar-links a {
        font-size: var(--text-base);
        padding: var(--space-2) 0;
    }
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    color: white;
    box-shadow: 0 4px 15px rgba(79, 143, 247, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
    box-shadow: 0 6px 25px rgba(79, 143, 247, 0.35);
    transform: translateY(-2px);
    color: white;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: var(--text-inverse);
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.25);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    box-shadow: 0 6px 25px rgba(212, 168, 67, 0.35);
    transform: translateY(-2px);
    color: var(--text-inverse);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-4);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    border-radius: var(--radius-xl);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
}

/* === GLASS CARD === */
.card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 143, 247, 0.3), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
    background: var(--bg-glass-hover);
    box-shadow: var(--shadow-glow-blue);
    transform: translateY(-4px);
}

.card:hover::before {
    opacity: 1;
}

.card-solid {
    background: var(--bg-card);
    backdrop-filter: none;
}

.card-solid:hover {
    background: var(--bg-card-hover);
}

/* Card icon container */
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    background: var(--accent-glow);
    color: var(--accent);
    font-size: var(--text-xl);
}

.card-icon.gold {
    background: var(--gold-glow);
    color: var(--gold);
}

.card-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.card-text {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

/* === BADGE / CHIP === */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg-glass);
}

.badge-accent {
    border-color: rgba(79, 143, 247, 0.3);
    color: var(--accent-bright);
    background: var(--accent-glow);
}

.badge-gold {
    border-color: rgba(212, 168, 67, 0.3);
    color: var(--gold-bright);
    background: var(--gold-glow);
}

.badge-success {
    border-color: rgba(52, 211, 153, 0.3);
    color: var(--success);
    background: rgba(52, 211, 153, 0.1);
}

.badge-warning {
    border-color: rgba(251, 191, 36, 0.3);
    color: var(--warning);
    background: rgba(251, 191, 36, 0.1);
}

.badge-error {
    border-color: rgba(248, 113, 113, 0.3);
    color: var(--error);
    background: rgba(248, 113, 113, 0.1);
}

/* === SECTION === */
.section {
    padding: var(--space-24) var(--space-6);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-16);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-4);
}

.section-label::before,
.section-label::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
    opacity: 0.4;
}

.section-title {
    margin-bottom: var(--space-4);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto;
}

/* === STEPS / TIMELINE === */
.steps {
    display: flex;
    align-items: flex-start;
    gap: var(--space-1);
    position: relative;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 var(--space-4);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-lg);
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 1;
    transition: all var(--transition);
}

.step.active .step-number {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-glow-blue);
}

.step.completed .step-number {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.step-connector {
    position: absolute;
    top: 24px;
    left: calc(50% + 28px);
    right: calc(-50% + 28px);
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.step.completed .step-connector {
    background: linear-gradient(90deg, var(--accent), var(--border));
}

.step-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-base);
    margin-bottom: var(--space-2);
}

.step-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .steps {
        flex-direction: column;
        gap: var(--space-8);
    }

    .step {
        flex-direction: row;
        text-align: left;
        gap: var(--space-4);
        padding: 0;
    }

    .step-number {
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .step-connector {
        display: none;
    }
}

/* === PRICING TABLE === */
.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.pricing-table th {
    background: var(--bg-card);
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-sm);
    text-align: left;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.pricing-table td {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tr:hover td {
    background: var(--bg-glass);
}

.pricing-table .recommended {
    background: var(--accent-glow);
}

.pricing-table .recommended td {
    color: var(--text-primary);
    font-weight: 500;
}

/* === ALERT / TIP BOX === */
.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    border-left: 3px solid;
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

.alert-icon {
    flex-shrink: 0;
    font-size: var(--text-lg);
    line-height: 1;
}

.alert-info {
    background: rgba(96, 165, 250, 0.08);
    border-color: var(--info);
    color: var(--text-secondary);
}

.alert-success {
    background: rgba(52, 211, 153, 0.08);
    border-color: var(--success);
    color: var(--text-secondary);
}

.alert-warning {
    background: rgba(251, 191, 36, 0.08);
    border-color: var(--warning);
    color: var(--text-secondary);
}

.alert-error {
    background: rgba(248, 113, 113, 0.08);
    border-color: var(--error);
    color: var(--text-secondary);
}

/* === CODE BLOCK === */
.code-block {
    position: relative;
    background: var(--bg-deepest);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2) var(--space-4);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.code-block-lang {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.code-block-copy {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.code-block-copy:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.code-block pre {
    padding: var(--space-4);
    overflow-x: auto;
    font-size: var(--text-sm);
    line-height: 1.7;
    color: var(--text-secondary);
}

.code-block code {
    font-family: var(--font-mono);
}

.code-inline {
    font-family: var(--font-mono);
    font-size: 0.9em;
    padding: 2px 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--accent-bright);
}

/* === FOOTER === */
.footer {
    background: var(--bg-deepest);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-16) var(--space-6) var(--space-8);
}

.footer-inner {
    max-width: var(--container-xl);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-top: var(--space-4);
    max-width: 280px;
    line-height: var(--leading-relaxed);
}

.footer-heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: var(--container-xl);
    margin: var(--space-12) auto 0;
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: var(--text-xs);
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

/* === LANGUAGE TOGGLE === */
.lang-toggle {
    display: inline-flex;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.lang-toggle button {
    padding: var(--space-1) var(--space-3);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: var(--text-xs);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-toggle button.active {
    background: var(--accent);
    color: white;
}

/* === BACK LINK === */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: color var(--transition-fast);
    margin-bottom: var(--space-6);
}

.back-link:hover {
    color: var(--accent);
}

.back-link svg {
    width: 16px;
    height: 16px;
}

/* === PROVIDER ACCENT CARDS === */
.card[data-provider="gemini"] { --provider-color: var(--gemini-accent); }
.card[data-provider="openai"] { --provider-color: var(--openai-accent); }
.card[data-provider="claude"] { --provider-color: var(--claude-accent); }
.card[data-provider="deepseek"] { --provider-color: var(--deepseek-accent); }

.card[data-provider]:hover {
    border-color: var(--provider-color);
    box-shadow: 0 0 40px color-mix(in srgb, var(--provider-color) 15%, transparent);
}

.card[data-provider] .card-icon {
    background: color-mix(in srgb, var(--provider-color) 15%, transparent);
    color: var(--provider-color);
}

/* === PROGRESS BAR === */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-dim), var(--accent));
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
