/* =====================================================
   SPEECHES PAGE STYLES
   ===================================================== */

/* Hero */
.speeches-hero {
    position: relative;
    padding: 7rem 0 2.5rem;
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 40%, var(--blue-700) 100%);
    overflow: hidden;
}

.speeches-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 60%, rgba(227, 24, 55, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(41, 128, 185, 0.15) 0%, transparent 50%);
}

.speeches-hero-content {
    position: relative;
    max-width: 700px;
}

.speeches-hero .section-eyebrow {
    background: rgba(227, 24, 55, 0.15);
    color: var(--red-400);
    border-color: rgba(227, 24, 55, 0.3);
}

.speeches-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    color: var(--white);
    line-height: 0.95;
    margin: 0.5rem 0 0.75rem;
}

.speeches-hero-subtitle {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--gray-300);
    line-height: 1.6;
    max-width: 550px;
    margin: 0;
}

/* Main Content */
.speeches-main {
    padding: 3rem 0;
    background: var(--gray-50);
    min-height: 50vh;
}

/* Tile Grid */
.speeches-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.speech-tile {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.speech-tile:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.speech-tile.active {
    border-color: var(--red-500);
    box-shadow: 0 4px 16px rgba(227, 24, 55, 0.2);
}

.speech-tile-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.speech-tile-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.speech-tile-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    transition: background var(--transition-fast);
}

.speech-tile:hover .speech-tile-play {
    background: rgba(0, 0, 0, 0.4);
}

.speech-tile-play svg {
    opacity: 0.9;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

.speech-tile-info {
    padding: 1rem 1.15rem;
}

.speech-tile-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--blue-900);
    margin: 0 0 0.35rem;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.speech-tile-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.speech-tile-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.5rem;
    background: linear-gradient(135deg, var(--red-500), var(--red-600));
    color: var(--white);
    border-radius: 2px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* All speeches list below tiles */
.speeches-all-list {
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .speeches-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .speeches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .speech-tile-title {
        font-size: 1.1rem;
    }

    .speech-tile-info {
        padding: 0.75rem 0.875rem;
    }
}

@media (max-width: 480px) {
    .speeches-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .speech-tile {
        display: flex;
        flex-direction: row;
    }

    .speech-tile-thumb {
        width: 140px;
        flex-shrink: 0;
        aspect-ratio: auto;
    }

    .speech-tile-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Speech Entry */
.speech-entry {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 3rem;
    border: 1px solid var(--gray-200);
}

.speech-header {
    padding: 2.5rem 3rem 2rem;
    border-bottom: 1px solid var(--gray-100);
}

.speech-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.speech-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.speech-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--red-500) 0%, var(--red-600) 100%);
    color: var(--white);
    border-radius: 3px;
}

.speech-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--blue-900);
    margin: 0 0 0.75rem;
    line-height: 1.1;
}

.speech-description {
    font-size: 1.0625rem;
    color: var(--gray-600);
    line-height: 1.7;
    max-width: 700px;
    margin: 0;
}

/* Video */
.speech-content {
    padding: 0;
}

.speech-video {
    padding: 2rem 3rem;
}

.video-container {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.video-container iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

.video-link {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    transition: background var(--transition-fast);
}

.video-link:hover .video-play-btn {
    background: rgba(0, 0, 0, 0.35);
}

.video-play-btn svg {
    opacity: 0.9;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.video-link:hover .video-play-btn svg {
    opacity: 1;
    transform: scale(1.1);
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder-inner {
    text-align: center;
    color: var(--gray-400);
}

.video-placeholder-inner svg {
    color: var(--red-500);
    opacity: 0.6;
    margin-bottom: 1rem;
}

.video-placeholder-inner p {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gray-400);
    margin: 0 0 0.25rem;
}

.video-placeholder-inner span {
    font-size: 0.8125rem;
    color: var(--gray-600);
}

/* Transcript */
.speech-transcript {
    border-top: 1px solid var(--gray-100);
}

.transcript-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 3rem;
    cursor: pointer;
    transition: background var(--transition-fast);
    user-select: none;
}

.transcript-header:hover {
    background: var(--gray-50);
}

.transcript-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--blue-800);
    margin: 0;
}

.transcript-header h3 svg {
    color: var(--blue-500);
}

.transcript-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--gray-600);
    transition: all var(--transition-fast);
}

.speech-transcript.open .transcript-toggle {
    transform: rotate(180deg);
    background: var(--blue-600);
    color: var(--white);
}

.transcript-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.speech-transcript.open .transcript-body {
    max-height: 5000px;
}

.transcript-text {
    padding: 0 3rem 2.5rem;
    border-top: 1px solid var(--gray-100);
}

.transcript-text p {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    color: var(--gray-700);
    line-height: 1.9;
    margin: 1.25rem 0;
}

.transcript-text p:first-child {
    margin-top: 2rem;
}

.transcript-text p:first-child::first-letter {
    font-size: 2.5rem;
    font-family: var(--font-display);
    color: var(--red-500);
    float: left;
    line-height: 1;
    margin-right: 0.25rem;
    margin-top: 0.1rem;
}

.transcript-text blockquote {
    margin: 1.5rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--blue-100) 100%);
    border-left: 4px solid var(--red-500);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--blue-800);
}

.transcript-placeholder {
    font-style: italic;
    color: var(--gray-400) !important;
    text-align: center;
    padding: 2rem 0;
}

/* Share Actions */
.speech-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem 3rem;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.speech-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.speech-share-btn:hover {
    color: var(--blue-600);
    border-color: var(--blue-400);
    box-shadow: var(--shadow-sm);
}

/* CTA Banner */
.speeches-cta {
    margin-top: 2rem;
    padding: 4rem;
    background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-900) 100%);
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.speeches-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red-500), var(--gold-400), var(--red-500));
}

.speeches-cta h2 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: var(--white);
    margin: 0 0 0.75rem;
}

.speeches-cta p {
    font-size: 1.0625rem;
    color: var(--blue-200);
    margin: 0 0 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Nav active state */
.nav-active {
    color: var(--white) !important;
    position: relative;
}

.nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--red-500);
    border-radius: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .speeches-hero {
        padding: 5.5rem 0 2rem;
    }

    .speeches-hero-title {
        font-size: 2rem;
    }

    .speech-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .speech-video {
        padding: 1rem;
    }

    .transcript-header {
        padding: 1.25rem 1.5rem;
    }

    .transcript-text {
        padding: 0 1.5rem 2rem;
    }

    .speech-actions {
        padding: 1.25rem 1.5rem;
        flex-wrap: wrap;
    }

    .speeches-cta {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .speeches-hero {
        padding: 5rem 0 1.5rem;
    }

    .speeches-hero-title {
        font-size: 1.75rem;
    }

    .speech-header {
        padding: 1.5rem 1rem 1.25rem;
    }

    .speech-video {
        padding: 0.75rem;
    }

    .transcript-header {
        padding: 1rem;
    }

    .transcript-text {
        padding: 0 1rem 1.5rem;
    }

    .speech-actions {
        padding: 1rem;
        flex-direction: column;
    }

    .speech-share-btn {
        justify-content: center;
    }
}
