﻿/* Design tokens (mirrors tutorial.aspx) */
:root {
    --primary-color: #27a9e1;
    --primary-hover: #1e8bc3;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --dark-color: #2c3e50;
    --light-bg: #f8f9fa;
    --border-color: #e5e5e5;
    --text-primary: #333;
    --text-secondary: #666;
    --shadow-sm: 0 2px 4px rgba(0,0,0,.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --transition: all .3s cubic-bezier(.4,0,.2,1);
}

.exam-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif
}

/* Support banner */
.support-info {
    background: linear-gradient(135deg,var(--primary-color) 0%,var(--primary-hover) 100%);
    color: #fff;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: var(--shadow-md)
}

    .support-info strong {
        font-size: 16px;
        font-weight: 600
    }

.support-info-caption {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px
}

    .support-info-caption i {
        font-size: 18px
    }

/* Search */
.search-bar-container {
    margin-bottom: 32px;
    position: relative
}

#searchInput {
    width: 100%;
    padding: 16px 120px 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: var(--transition);
    font-family: inherit
}

    #searchInput:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px rgba(39,169,225,.1)
    }

#searchButton {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 24px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition)
}

    #searchButton:hover {
        background: var(--primary-hover)
    }

/* Typography */
h1 {
    font-family: 'Montserrat',sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 24px 0;
    line-height: 1.3
}

h2 {
    font-family: 'Montserrat',sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 32px 0 16px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color)
}

h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 24px 0 12px
}

/* Meta / stats */
.metadata {
    background: var(--light-bg);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border-left: 4px solid var(--primary-color)
}

    .metadata p {
        margin: 10px 0;
        font-size: 15px
    }

.clt {
    font-weight: 600;
    color: var(--text-primary);
    display: inline-block;
    min-width: 140px
}

/* Buttons */
.btn1, .btn2, .btnBlue, .btnOrange, .btnRed, .btnGreen {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm)
}

.btn1 {
    background: var(--primary-color);
    color: #fff
}

    .btn1:hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md)
    }

.btn2 {
    background: #25d366;
    color: #fff
}

    .btn2:hover {
        background: #20ba5a;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md)
    }

.btnBlue {
    background: #0ea5e9;
    color: #fff
}

.btnOrange {
    background: #f59e0b;
    color: #fff
}

.btnRed {
    background: var(--danger-color);
    color: #fff
}

.btnGreen {
    background: var(--success-color);
    color: #fff
}

.purchase-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0
}

/* Cards / sections */
.card {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin: 24px 0
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
    gap: 16px;
    margin: 24px 0
}

.stat {
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent
}

    .stat:hover {
        border-color: var(--primary-color);
        transform: translateY(-4px);
        box-shadow: var(--shadow-md)
    }

    .stat i {
        font-size: 28px;
        color: var(--primary-color);
        margin-bottom: 8px
    }

    .stat .v {
        display: block;
        font-size: 24px;
        font-weight: 700;
        color: var(--dark-color);
        margin: 8px 0
    }

    .stat .t {
        display: block;
        font-size: 14px;
        color: var(--text-secondary);
        font-weight: 500
    }

/* Lists */
.item-list {
    list-style: none;
    margin: 0;
    padding: 0
}

    .item-list li {
        padding: 20px;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        margin-bottom: 16px;
        transition: var(--transition)
    }

        .item-list li:hover {
            box-shadow: var(--shadow-md);
            transform: translateX(4px)
        }

    .item-list a {
        color: var(--dark-color);
        text-decoration: none;
        font-weight: 600;
        font-size: 16px;
        display: block;
        margin-bottom: 8px
    }

        .item-list a:hover {
            color: var(--primary-color)
        }

.qa {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 12px 0
}

/* Slider & preview */
.pSlider {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin: 24px 0
}

.preview-note {
    background: var(--light-bg);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    margin: 20px 0
}

/* Social */
.social {
    display: flex;
    gap: 12px;
    margin: 24px 0;
    justify-content: center
}

    .social a {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition)
    }

        .social a:hover {
            transform: scale(1.1);
            box-shadow: var(--shadow-md)
        }

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px;
    box-shadow: 0 -4px 12px rgba(0,0,0,.15);
    display: none;
    justify-content: center;
    gap: 12px;
    z-index: 1000;
    animation: slideUp .3s ease
}

    .sticky-cta.visible {
        display: flex
    }

@keyframes slideUp {
    from {
        transform: translateY(100%)
    }

    to {
        transform: translateY(0)
    }
}

/* A11y helpers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0
}

*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px
}

/* Responsive */
@media (max-width:768px) {
    .exam-page {
        padding: 12px
    }

    h1 {
        font-size: 24px
    }

    h2 {
        font-size: 20px
    }

    .support-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px
    }

    #searchInput {
        padding: 14px 16px;
        padding-right: 100px
    }

    #searchButton {
        padding: 8px 16px;
        font-size: 14px
    }

    .purchase-options {
        flex-direction: column
    }

    .btn1, .btn2 {
        width: 100%;
        justify-content: center
    }

    .stats {
        grid-template-columns: 1fr
    }

    .sticky-cta {
        flex-direction: column
    }

        .sticky-cta .btn1, .sticky-cta .btn2 {
            width: 100%
        }
}

/* Legacy resets to avoid master collisions */
.full-post, .addpaper {
    all: unset
}
