/* GF-Code Test Pages Stylesheet */
:root {
    --brand-pink: #AD0461;
    --brand-pink-light: #D4077A;
    --deep-vinyl: #0D0D14;
    --groove-dark: #12121C;
    --cyan-accent: #00D9FF;
    --pure-white: #FFFFFF;
    --warm-gray: #888888;
    --text-dark: #333333;
    --success-green: #22C55E;
    --bg-cream: #F5F5DC;
    --bg-light-blue: #E0F2FE;
    --bg-light-gray: #F0F0F0;
}

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Light theme for test pages (high contrast for scanning) */
body.light-theme {
    background: var(--pure-white);
    color: var(--text-dark);
}

/* Dark theme for hub */
body.dark-theme {
    background: var(--deep-vinyl);
    color: var(--pure-white);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.test-header {
    padding: 20px 0;
    border-bottom: 1px solid #E5E5E5;
    margin-bottom: 40px;
}

.dark-theme .test-header {
    border-bottom-color: #333;
}

.test-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.test-logo img {
    height: 32px;
}

.test-logo span {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.test-nav {
    display: flex;
    gap: 20px;
}

.test-nav a {
    color: var(--warm-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.test-nav a:hover {
    color: var(--brand-pink);
}

/* Page Title */
.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.page-title h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.page-title p {
    color: var(--warm-gray);
    font-size: 1rem;
}

/* Mark Display */
.mark-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    background: var(--pure-white);
    border-radius: 16px;
    margin-bottom: 40px;
}

.mark-display img,
.mark-display svg {
    max-width: 100%;
    height: auto;
}

.mark-label {
    margin-top: 24px;
    text-align: center;
}

.mark-label h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.mark-label p {
    font-size: 0.85rem;
    color: var(--warm-gray);
}

.mark-label code {
    display: block;
    margin-top: 8px;
    padding: 8px 16px;
    background: #F5F5F5;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    word-break: break-all;
}

/* Mark Grid */
.mark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.mark-card {
    background: var(--pure-white);
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
}

.mark-card:hover {
    border-color: var(--brand-pink);
    box-shadow: 0 4px 20px rgba(173, 4, 97, 0.1);
}

.mark-card img,
.mark-card svg {
    margin-bottom: 16px;
}

.mark-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.mark-card p {
    font-size: 0.75rem;
    color: var(--warm-gray);
}

/* Size Display (for size test page) */
.size-display {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 32px;
    padding: 60px 20px;
    background: var(--pure-white);
    border-radius: 16px;
    margin-bottom: 40px;
}

.size-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.size-item span {
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--warm-gray);
    font-weight: 500;
}

/* Contrast Backgrounds */
.contrast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.contrast-card {
    padding: 40px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contrast-card.bg-white { background: #FFFFFF; border: 1px solid #E5E5E5; }
.contrast-card.bg-gray { background: #F0F0F0; }
.contrast-card.bg-cream { background: #F5F5DC; }
.contrast-card.bg-blue { background: #E0F2FE; }

.contrast-card span {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--warm-gray);
}

/* Rotation Display */
.rotation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.rotation-card {
    background: var(--pure-white);
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.rotation-card img,
.rotation-card svg {
    transition: transform 0.3s;
}

.rotation-card span {
    display: block;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--warm-gray);
}

/* Success Page */
.success-display {
    text-align: center;
    padding: 80px 20px;
}

.success-icon {
    width: 120px;
    height: 120px;
    background: var(--success-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    font-size: 4rem;
    color: white;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-display h1 {
    font-size: 2.5rem;
    color: var(--success-green);
    margin-bottom: 16px;
}

.success-display p {
    font-size: 1.1rem;
    color: var(--warm-gray);
    margin-bottom: 8px;
}

.success-details {
    background: #F5F5F5;
    padding: 20px 32px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 24px;
}

.success-details code {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

/* Product Demo */
.product-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 40px;
}

.product-image {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 400px;
}

.product-mock {
    text-align: center;
    color: white;
}

.product-mock .watch-icon {
    font-size: 8rem;
    margin-bottom: 16px;
}

.product-mock h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.product-mock p {
    color: #888;
    font-size: 0.9rem;
}

.product-mark {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: white;
    padding: 8px;
    border-radius: 8px;
}

.auth-result {
    background: #F5F5F5;
    border-radius: 16px;
    padding: 32px;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--success-green);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

.auth-details {
    display: grid;
    gap: 16px;
}

.auth-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #E5E5E5;
}

.auth-row:last-child {
    border-bottom: none;
}

.auth-row label {
    color: var(--warm-gray);
    font-size: 0.85rem;
}

.auth-row span {
    font-weight: 600;
}

/* Test Hub Cards */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.hub-card {
    background: var(--groove-dark);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.hub-card:hover {
    border-color: var(--brand-pink);
    transform: translateY(-4px);
}

.hub-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--pure-white);
}

.hub-card p {
    font-size: 0.85rem;
    color: var(--warm-gray);
    margin-bottom: 16px;
}

.hub-card .meta {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
}

.hub-card .tag {
    padding: 4px 10px;
    background: rgba(173, 4, 97, 0.2);
    color: var(--brand-pink);
    border-radius: 4px;
}

.hub-card .difficulty {
    color: var(--cyan-accent);
}

/* Info Box */
.info-box {
    background: #F0F7FF;
    border-left: 4px solid var(--cyan-accent);
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 40px;
}

.info-box h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #0369A1;
}

.info-box p {
    font-size: 0.85rem;
    color: #475569;
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--brand-pink);
    color: white;
}

.btn-primary:hover {
    background: var(--brand-pink-light);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid #E5E5E5;
}

.btn-secondary:hover {
    border-color: var(--brand-pink);
}

/* Footer */
.test-footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #E5E5E5;
    margin-top: 60px;
    font-size: 0.8rem;
    color: var(--warm-gray);
}

.dark-theme .test-footer {
    border-top-color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .product-demo {
        grid-template-columns: 1fr;
    }
    
    .test-header .container {
        flex-direction: column;
        gap: 16px;
    }
    
    .size-display {
        gap: 16px;
    }
}
