/* Common Labs Styles - Hero, Body Background, Disclaimer, and Layout */

/* Body Background for Labs Tool Pages */
body {
    background:
        radial-gradient(1000px circle at 12% 18%, rgba(182, 138, 58, 0.09), transparent 36%),
        radial-gradient(900px circle at 86% 12%, rgba(126, 145, 190, 0.08), transparent 38%),
        linear-gradient(135deg, #f8f3e9 0%, #f2e7d3 50%, #f8f3e9 100%);
    background-color: #f6f3eb;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    color: #4f3a24;
}

/* Tool Page Shell - Layout Wrapper */
.tool-page-shell {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.tool-page-shell > * {
    width: 100%;
}

/* Consistent spacing between hero, tool, and disclaimer */
.labs-hero-container {
    margin-top: 40px;
    margin-bottom: 40px;
}

.labs-disclaimer-container {
    margin-top: 40px;
}

.astraq-button {
    max-width: none !important;
    width: auto !important;
}

.tool-page-shell .disclaimer-section {
    margin: 0;
}

/* Mobile Responsiveness for Tool Page Shell */
@media (max-width: 768px) {
    .tool-page-shell {
        padding: 0 16px 32px;
    }
    
    .labs-hero-container {
        margin-top: 32px;
        margin-bottom: 32px;
    }
    
    .labs-disclaimer-container {
        margin-top: 32px;
    }
}

@media (max-width: 480px) {
    .tool-page-shell {
        padding: 0 12px 28px;
    }
    
    .labs-hero-container {
        margin-top: 28px;
        margin-bottom: 28px;
    }
    
    .labs-disclaimer-container {
        margin-top: 28px;
    }
}

/* Disclaimer Section - Orange Theme */
.disclaimer-section {
    width: 100%;
    margin: 0 0 40px;
    padding: 0;
}

.disclaimer-content {
    background: linear-gradient(135deg, #2d1b0f, #1f1409);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.12);
    border: 1px solid rgba(255, 140, 0, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.disclaimer-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff8c00, #ffa500, #ff7f00, #ff8c00);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.disclaimer-content::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 140, 0, 0.1), transparent);
    border-radius: 12px;
    z-index: -1;
    animation: glow 4s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.disclaimer-content p {
    color: #e8e8e8;
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
    background: rgba(255, 140, 0, 0.03);
    padding: 0;
    border-radius: 0;
    border: none;
    transition: all 0.3s ease;
}

.disclaimer-content strong {
    color: #ffa500;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 140, 0, 0.2);
}

.disclaimer-content a {
    color: #ff8c00;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid transparent;
}

.disclaimer-content a:hover {
    color: #ffffff;
    background: rgba(255, 140, 0, 0.2);
    border-color: rgba(255, 140, 0, 0.5);
    text-decoration: none;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

/* Mobile Responsiveness for Disclaimer */
@media (max-width: 768px) {
    .disclaimer-content {
        padding: 15px 20px;
    }
    
    .disclaimer-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .disclaimer-content {
        padding: 12px 15px;
    }
}

/* Hero Section Styles */

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 24px;
    background: linear-gradient(145deg, #fffaf1 0%, #f8ecd8 42%, #f3e2c5 100%);
    border: 1px solid rgba(145, 103, 48, 0.22);
    box-shadow: 0 18px 44px -28px rgba(94, 65, 30, 0.38);
    border-radius: 16px;
    backdrop-filter: blur(6px);
    overflow: hidden;
}

.terminal-dots {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: opacity 0.2s ease;
}

.terminal-dot:hover {
    opacity: 0.7;
}

.terminal-dot-red {
    background: #ff5f56;
    box-shadow: 0 0 0 0.5px rgba(255, 95, 86, 0.3);
}

.terminal-dot-yellow {
    background: #ffbd2e;
    box-shadow: 0 0 0 0.5px rgba(255, 189, 46, 0.3);
}

.terminal-dot-green {
    background: #27c93f;
    box-shadow: 0 0 0 0.5px rgba(39, 201, 63, 0.3);
}

.hero-inner::before {
    content: none;
}

.hero-inner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: none;
    animation: none;
    pointer-events: none;
    z-index: 0;
}

@keyframes heroGlow {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: translate(20px, -20px) scale(1.1);
        opacity: 0.5;
    }
}

.hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
}

.hero-copy .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    width: fit-content;
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(182, 138, 58, 0.18), rgba(145, 103, 48, 0.14));
    color: #7a572c;
    font-size: 0.82rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2rem, 2.6vw, 2.8rem);
    letter-spacing: 0.5px;
}

.hero-copy p {
    margin: 0;
    color: #6a4a27;
    max-width: 680px;
    font-size: 0.98rem;
    line-height: 1.6;
    text-transform: none;
}

.hero-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 6px;
    width: 100%;
}

.hero-badges span {
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(182, 138, 58, 0.12);
    color: #6c4c29;
    border: 1px solid rgba(145, 103, 48, 0.2);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.15px;
}

.hero-card {
    background: linear-gradient(145deg, rgba(255, 250, 241, 0.95), rgba(244, 230, 205, 0.95));
    border: 1px solid rgba(145, 103, 48, 0.2);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 18px 42px -24px rgba(94, 65, 30, 0.38);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(300px circle at 20% 15%, rgba(182, 138, 58, 0.12), transparent),
                radial-gradient(240px circle at 80% 0%, rgba(201, 163, 113, 0.1), transparent);
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                linear-gradient(0deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 18px 18px, 18px 18px;
    opacity: 0.3;
}

.hero-card .card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e8f7ff;
    background: rgba(255, 255, 255, 0.04);
}

.pill-primary {
    border-color: rgba(145, 103, 48, 0.35);
    background: linear-gradient(120deg, rgba(182, 138, 58, 0.22), rgba(145, 103, 48, 0.16));
    color: #7a572c;
}

.pill-ghost {
    color: #d7e5e5;
}

.hero-card .card-body {
    position: relative;
    padding: 18px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.barcode-visual {
    height: 160px;
    border-radius: 10px;
    background:
      linear-gradient(120deg, rgba(182, 138, 58, 0.1), transparent 55%),
      repeating-linear-gradient(
        to right,
        rgba(255, 255, 255, 0.92) 0 2px,
        rgba(255, 255, 255, 0.1) 2px 6px,
        rgba(255, 255, 255, 0.92) 6px 9px
      );
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
}

.barcode-visual .barcode-glow {
    position: absolute;
    inset: -35%;
    background: radial-gradient(circle at 50% 50%, rgba(182, 138, 58, 0.18), transparent 55%);
    filter: blur(20px);
}

.barcode-label {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #0b1b1e;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e6f3f1;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 0.95rem;
}

.card-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    position: relative;
    z-index: 1;
}

.meta-item {
    padding: 12px 12px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.meta-label {
    display: block;
    color: #9abbb7;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.75rem;
    margin-bottom: 6px;
}

.meta-value {
    color: #e9f7f4;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Mobile Responsiveness for Hero */
@media (max-width: 768px) {
    .hero-inner {
        padding: 18px;
        gap: 18px;
    }

    .hero-badges {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }

    .hero-badges span {
        width: 100%;
        text-align: center;
        font-size: 0.75rem !important;
        padding: 6px 8px !important;
    }

    .card-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-badges {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 6px;
    }

    .hero-badges span {
        font-size: 0.7rem !important;
        padding: 4px 6px !important;
        letter-spacing: 0.1px !important;
    }
}

/* ---------- Warm Luxury Light Theme (shared labs) ---------- */
body {
    background:
        radial-gradient(1000px circle at 12% 18%, rgba(182, 138, 58, 0.09), transparent 36%),
        radial-gradient(900px circle at 86% 12%, rgba(126, 145, 190, 0.08), transparent 38%),
        linear-gradient(135deg, #f8f3e9 0%, #f2e7d3 50%, #f8f3e9 100%);
    background-color: #f6f3eb;
    color: #4f3a24;
}

.disclaimer-content {
    background: linear-gradient(135deg, #fff8ed, #f4e6cf);
    box-shadow: 0 10px 28px -18px rgba(94, 65, 30, 0.35);
    border: 1px solid rgba(145, 103, 48, 0.28);
    border-left: 4px solid #b98b3b;
    text-align: left;
}

.disclaimer-content::before {
    background: linear-gradient(90deg, #b98b3b, #d1a45a, #9d712f, #b98b3b);
}

.disclaimer-content::after {
    background: linear-gradient(45deg, transparent, rgba(182, 138, 58, 0.12), transparent);
}

.disclaimer-content p {
    color: #5d4123;
    background: transparent;
    text-align: left;
}

.disclaimer-content h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a572c;
    font-weight: 700;
}

.disclaimer-content h3 i {
    font-size: 0.9rem;
    font-weight: 700;
    color: #8f6329;
}

.disclaimer-content strong {
    color: #9d712f;
    text-shadow: 0 1px 2px rgba(145, 103, 48, 0.2);
}

.disclaimer-content a {
    color: #8b632e;
    background: rgba(182, 138, 58, 0.12);
}

.disclaimer-content a:hover {
    color: #fff8ef;
    background: rgba(145, 103, 48, 0.82);
    border-color: rgba(145, 103, 48, 0.5);
    box-shadow: 0 2px 8px rgba(145, 103, 48, 0.28);
}

.hero-inner {
    background: linear-gradient(145deg, #fffaf1 0%, #f8ecd8 42%, #f3e2c5 100%);
    border: 1px solid rgba(145, 103, 48, 0.22);
    box-shadow: 0 18px 44px -28px rgba(94, 65, 30, 0.38);
}

.hero-copy .eyebrow {
    background: linear-gradient(120deg, rgba(182, 138, 58, 0.18), rgba(145, 103, 48, 0.14));
    color: #7a572c;
}

.hero-copy p {
    color: #6a4a27;
}

.hero-badges span {
    background: rgba(182, 138, 58, 0.12);
    color: #6c4c29;
    border: 1px solid rgba(145, 103, 48, 0.2);
}

/* -------------------------------------------------------------------------
   Lab tools: calm primary/secondary buttons (no scale/lift)
   Tool CSS loads after this file — higher specificity + !important so
   per-tool .btn:hover { transform: scale(1.05) } does not apply.
   (Do not hide .btn::after globally — QR loader etc. use ::after.)
   ------------------------------------------------------------------------- */
body.page-toolkit-labs .tool-page-shell button.btn:hover,
body.page-toolkit-labs .tool-page-shell a.btn:hover,
body.page-toolkit-labs .tool-page-shell .btn-primary:hover,
body.page-toolkit-labs .tool-page-shell .btn-secondary:hover,
body.page-toolkit-labs .tool-page-shell .btn-success:hover,
body.page-toolkit-labs .tool-page-shell .btn-warning:hover,
body.page-toolkit-labs .tool-page-shell .btn-danger:hover {
    transform: none !important;
}
