/* ============================================
   FACEBOOK/META ADS — "Creative Laboratory"
   Page accent: #1877F2 (Meta Blue) + #E4405F (IG Pink)
   ============================================ */

/* ---------- Hero ---------- */
.lab-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    overflow: hidden;
    background: radial-gradient(ellipse at 30% 50%, rgba(24,119,242,0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 60%, rgba(228,64,95,0.05) 0%, transparent 50%);
}

/* CSS-only device mockups */
.device-frame {
    position: absolute;
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    z-index: 0;
    opacity: 0.6;
    animation: device-float 6s ease-in-out infinite;
}

.device-frame.phone {
    width: 140px;
    height: 280px;
    right: 12%;
    top: 18%;
}

.device-frame.phone::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.1);
}

.device-frame.phone .device-screen {
    position: absolute;
    top: 22px;
    left: 8px;
    right: 8px;
    bottom: 22px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(24,119,242,0.15), rgba(228,64,95,0.1));
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    overflow: hidden;
}

.device-frame.laptop {
    width: 280px;
    height: 180px;
    right: 6%;
    bottom: 20%;
    animation-delay: -3s;
    animation-duration: 8s;
}

.device-frame.laptop::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: -20px;
    right: -20px;
    height: 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 0 0 8px 8px;
}

.device-frame.laptop .device-screen {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(24,119,242,0.1), rgba(228,64,95,0.08));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 6px;
}

.screen-bar {
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.12);
}

.screen-block {
    border-radius: 3px;
    background: rgba(255,255,255,0.06);
}

@keyframes device-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

/* ---------- Meta Label ---------- */
.meta-label {
    color: #1877F2;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-sm);
    display: block;
}

/* ---------- Creative Testing Matrix ---------- */
.creative-matrix {
    display: grid;
    grid-template-columns: 120px repeat(2, 1fr);
    gap: 2px;
    border-radius: 12px;
    overflow: hidden;
    margin: var(--space-md) 0;
}

.matrix-header {
    background: rgba(24,119,242,0.1);
    padding: 0.75rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1877F2;
}

.matrix-row-label {
    background: rgba(255,255,255,0.03);
    padding: 0.75rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
}

.matrix-cell {
    background: var(--color-bg-card);
    padding: 0.75rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    cursor: default;
    border: 1px solid transparent;
}

.matrix-cell:hover {
    background: rgba(24,119,242,0.05);
    border-color: rgba(24,119,242,0.2);
}

.matrix-cell.winner {
    background: rgba(24,119,242,0.1);
    border-color: #1877F2;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(24,119,242,0.15);
    position: relative;
}

.matrix-cell.winner::after {
    content: '★ Winner';
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 0.55rem;
    color: #1877F2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---------- Creative Cards ---------- */
.creative-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-lg);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.creative-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1877F2, #E4405F);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.creative-card:hover {
    transform: translateY(-6px);
    border-color: rgba(24,119,242,0.3);
}

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

.creative-card .card-num {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(24,119,242,0.1);
    color: #1877F2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);
}

/* ---------- Advantage+ Diagram ---------- */
.advantage-diagram {
    max-width: 600px;
    margin: var(--space-lg) auto 0;
}

.advantage-layer {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: var(--space-sm);
    transition: all 0.3s ease;
    position: relative;
}

.advantage-layer:hover {
    border-color: rgba(24,119,242,0.3);
    transform: translateX(4px);
}

.advantage-layer .layer-budget {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: #1877F2;
    min-width: 60px;
    text-align: center;
}

.advantage-connector {
    width: 2px;
    height: 16px;
    background: linear-gradient(to bottom, rgba(24,119,242,0.3), rgba(24,119,242,0.1));
    margin: 0 auto;
}

/* ---------- Fatigue Curve ---------- */
.fatigue-curve-container {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
}

/* ---------- Meta FAQ ---------- */
.meta-faq details {
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md) 0;
}

.meta-faq details summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    transition: color 0.3s ease;
}

.meta-faq details summary::-webkit-details-marker { display: none; }

.meta-faq details summary::after {
    content: '+';
    font-size: 1.5rem;
    color: #1877F2;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.meta-faq details[open] summary::after { transform: rotate(45deg); }
.meta-faq details summary:hover { color: #1877F2; }

.meta-faq .faq-answer {
    padding-top: var(--space-sm);
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 90%;
}

/* ---------- CTA ---------- */
.meta-cta {
    text-align: center;
    padding: var(--space-xl) 0;
    background: radial-gradient(ellipse at center, rgba(24,119,242,0.06) 0%, transparent 70%);
    border-top: 1px solid var(--color-border);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .device-frame { display: none; }
    .creative-matrix { grid-template-columns: 100px repeat(2, 1fr); }
    .creative-matrix .matrix-cell.winner::after { display: none; }
}

@media (max-width: 768px) {
    .creative-matrix { grid-template-columns: 1fr; }
    .matrix-header:first-child { display: none; }
    .matrix-row-label { display: none; }
}
