/* ============================================
   MORNING BRIEF OUTPUTS
   Product section with tactical output modules
   
   Accent Color: Cyan (#22d3ee)
   Classification: Intel Preview
   ============================================ */

/* ============================================
   SECTION FOUNDATION
   ============================================ */

.morning-brief {
    position: relative;
    padding: 5rem 0;
    background:
        /* Shared doc band with Deliverables - indigo glow over deep slate */
        radial-gradient(circle at top left, rgba(129, 140, 248, 0.18) 0%, transparent 55%),
        linear-gradient(180deg, #020617 0%, #020617 100%);
    overflow: hidden;
}

/* Grid pattern overlay */
.morning-brief::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Scan line effect */
.morning-brief::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: none;
}

/* Light theme */
[data-theme="light"] .morning-brief {
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
}

[data-theme="light"] .morning-brief::before {
    background-image: none;
}

[data-theme="light"] .morning-brief::after {
    background: none;
}

/* ============================================
   SECTION HEADER
   ============================================ */

.morning-brief__header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

/* Kicker Badge */
.morning-brief__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #22d3ee;
    padding: 0.4rem 0.8rem;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 0.25rem;
    margin-bottom: 1.25rem;
}

.morning-brief__kicker-dot {
    width: 6px;
    height: 6px;
    background: #22d3ee;
    border-radius: 50%;
    animation: pulse-cyan 2s ease-in-out infinite;
}

@keyframes pulse-cyan {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(34, 211, 238, 0); }
}

[data-theme="light"] .morning-brief__kicker {
    color: #0891b2;
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.2);
}

[data-theme="light"] .morning-brief__kicker-dot {
    background: #0891b2;
}

/* Title */
.morning-brief__title {
    font-size: 2rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.morning-brief__title-time {
    font-family: 'JetBrains Mono', monospace;
    color: #22d3ee;
}

[data-theme="light"] .morning-brief__title {
    color: #0f172a;
}

[data-theme="light"] .morning-brief__title-time {
    color: #0891b2;
}

@media (min-width: 768px) {
    .morning-brief__title {
        font-size: 2.5rem;
    }
}

/* Lead */
.morning-brief__lead {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 540px;
    margin: 0 auto;
}

[data-theme="light"] .morning-brief__lead {
    color: #64748b;
}

/* ============================================
   OUTPUT MODULES GRID
   ============================================ */

.output-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .output-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

/* ============================================
   OUTPUT MODULE CARD
   ============================================ */

.output-module {
    position: relative;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: 0.5rem;
    padding: 1.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Initial state for animation */
    opacity: 0;
    transform: translateY(20px);
}

.output-module.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Top accent line */
.output-module::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(34, 211, 238, 0.5) 50%,
        transparent 100%
    );
    border-radius: 0 0 2px 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.output-module:hover::before {
    opacity: 1;
}

.output-module:hover {
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 0 30px -10px rgba(34, 211, 238, 0.2);
    transform: translateY(-2px);
}

/* Light theme */
[data-theme="light"] .output-module {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(6, 182, 212, 0.15);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .output-module:hover {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 8px 25px -10px rgba(6, 182, 212, 0.15);
}

/* ============================================
   OUTPUT MODULE HEADER
   ============================================ */

.output-module__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

/* Output Code */
.output-module__code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #22d3ee;
}

[data-theme="light"] .output-module__code {
    color: #0891b2;
}

/* Category Badge */
.output-module__category {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.output-module__category-dot {
    width: 5px;
    height: 5px;
    background: #22d3ee;
    border-radius: 50%;
}

[data-theme="light"] .output-module__category-dot {
    background: #0891b2;
}

/* ============================================
   OUTPUT MODULE CONTENT
   ============================================ */

/* Title */
.output-module__title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f1f5f9;
    margin-bottom: 0.875rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(34, 211, 238, 0.1);
}

[data-theme="light"] .output-module__title {
    color: #0f172a;
    border-bottom-color: rgba(6, 182, 212, 0.12);
}

/* Description */
.output-module__desc {
    font-size: 0.875rem;
    line-height: 1.65;
    color: #94a3b8;
    margin-bottom: 1.25rem;
}

[data-theme="light"] .output-module__desc {
    color: #64748b;
}

/* ============================================
   OUTPUT MODULE FOOTER
   ============================================ */

.output-module__footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(34, 211, 238, 0.08);
}

.output-module__delivery {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #64748b;
}

.output-module__delivery-marker {
    color: #22d3ee;
}

[data-theme="light"] .output-module__footer {
    border-top-color: rgba(6, 182, 212, 0.1);
}

[data-theme="light"] .output-module__delivery-marker {
    color: #0891b2;
}

/* ============================================
   SECTION CONNECTOR
   Transition element to next section
   ============================================ */

.morning-brief__connector {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg,
        rgba(34, 211, 238, 0.3) 0%,
        transparent 100%
    );
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 767px) {
    .morning-brief {
        padding: 4rem 0;
    }
    
    .morning-brief__header {
        margin-bottom: 2rem;
    }
    
    .morning-brief__title {
        font-size: 1.75rem;
    }
    
    .morning-brief__lead {
        font-size: 1rem;
    }
    
    .output-module {
        padding: 1.5rem;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .output-module {
        opacity: 1;
        transform: none;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    
    .output-module:hover {
        transform: none;
    }
    
    .morning-brief__kicker-dot {
        animation: none;
    }
}
