﻿/* HERO */
.sp-hero {
    min-height: 70vh;
    background: var(--bg-hero-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.sp-hero-bg {
    position: absolute;
    inset: 0;
    opacity: .12;
}

.sp-blob {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    filter: blur(30px);
}

    .sp-blob.sp-teal {
        background: var(--brand-teal);
        filter: blur(20px);
    }

.sp-hero-inner {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 1;
}

.sp-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
}

.sp-title {
    font-size: clamp(36px,6vw,72px);
    font-weight: 800;
    margin-bottom: 18px;
}

.sp-sub {
    font-size: clamp(18px,3vw,28px);
    opacity: .9;
    margin-bottom: 16px;
}

.sp-desc {
    font-size: 18px;
    opacity: .85;
    max-width: 600px;
    margin: 0 auto;
}

/* CONTAINER */
.sp-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* STATS */
.sp-stats {
    background: var(--bg);
    padding: 64px 0;
}

.sp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
    gap: 32px;
    text-align: center;
}

.sp-stat-num {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* FEATURED TALKS */
.sp-featured {
    background: var(--bg-soft);
    padding: 80px 0;
}

.sp-heading {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
}

.sp-talks {
    display: grid;
    grid-template-columns: 1fr; /* mobile: 1 column */
    gap: 24px;
}

@media (min-width: 992px) {
    .sp-talks {
        grid-template-columns: 1fr 1fr; /* max 2 columns */
    }
}


/* place inside SpeakingComponent.razor <style> */

.sp-card {
    background: var(--elev);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    /* add these */
    transition: transform .18s ease, box-shadow .22s ease, filter .22s ease;
    will-change: transform;
}

    .sp-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 45px rgba(0,0,0,.18);
        filter: saturate(1.02);
    }

/* optional: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .sp-card, .sp-card:hover {
        transition: none;
        transform: none;
    }
}


.sp-card-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: linear-gradient(135deg,var(--brand-blue),var(--brand-purple));
    opacity: .1;
    transform: translate(40%,-40%);
}

    .sp-card-bg.sp-teal {
        background: linear-gradient(135deg,var(--brand-teal),var(--brand-blue));
    }

.sp-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.sp-event-badge {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,var(--brand-blue),var(--brand-purple));
    color: #fff;
    font-size: 20px;
}

    .sp-event-badge.sp-grad-teal {
        background: linear-gradient(135deg,var(--brand-teal),var(--brand-blue));
    }
     
.sp-card-bg.sp-orange {
    background: linear-gradient(135deg, #f97316, #ec4899); /* orange → pink */
}

.sp-event-badge.sp-grad-orange {
    background: linear-gradient(135deg, #f97316, #ec4899);
}

.sp-card-bg.sp-green {
    background: linear-gradient(135deg, #22c55e, #14b8a6); /* green → teal */
}

.sp-event-badge.sp-grad-green {
    background: linear-gradient(135deg, #22c55e, #14b8a6);
}
 
.sp-tag.sp-orange {
    background: rgba(249, 115, 22, .12); /* orange */
    color: #f97316;
}
 
.sp-tag.sp-green {
    background: rgba(34, 197, 94, .12); /* green */
    color: #22c55e;
}


.sp-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    max-width: calc(100% - 80px);
}

.sp-card-sub {
    color: var(--brand-purple);
    font-weight: 600;
    font-size: 14px;
}

.sp-card-text {
    color: var(--text-soft);
    margin-bottom: 16px;
}

.sp-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.sp-tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

    .sp-tag.sp-blue {
        background: rgba(102,126,234,.1);
        color: var(--brand-blue);
    }

    .sp-tag.sp-teal {
        background: rgba(20,184,166,.1);
        color: var(--brand-teal);
    }

.sp-loc {
    color: var(--muted);
}

/* TIMELINE */
    .sp-timeline {
    background: var(--bg);
    padding: 80px 0;
}

.sp-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sp-timeline-item {
    background: var(--bg-soft);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    transition: transform .18s ease, box-shadow .22s ease, filter .22s ease;
    will-change: transform;
}

    .sp-timeline-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 45px rgba(0,0,0,.18);
        filter: saturate(1.02);
    }

.sp-year {
    font-size: 22px;
    font-weight: 700;
    min-width: 100px;
    text-align: center;
}

.sp-year-events {
    flex: 1;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr; /* mobile: 1 column */
}

@media (min-width: 640px) {
    .sp-year-events {
        grid-template-columns: 1fr 1fr; /* 2 columns on small/medium screens */
    }
}

@media (min-width: 1024px) {
    .sp-year-events {
        grid-template-columns: 1fr 1fr 1fr; /* max 3 columns on large screens */
    }
}


.sp-mini-card {
    background: var(--elev);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow);
}

    .sp-mini-card h4 {
        font-weight: 600;
        margin-bottom: 4px;
    }

    .sp-mini-card p {
        color: var(--text-soft);
        font-size: 13px;
        margin: 0;
    }

.sp-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.sp-upcoming {
    background: rgba(102, 126, 234, .12); /* brand-blue */
    color: var(--brand-blue);
}

.sp-done {
    background: rgba(20, 184, 166, .12); /* brand-teal */
    color: var(--brand-teal);
}


/* TOPICS */
.sp-topics {
    background: var(--bg-soft);
    padding: 80px 0;
}

.sp-topic-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr; /* default: 1 col on mobile */
}

@media (min-width: 768px) {
    .sp-topic-grid {
        grid-template-columns: 1fr 1fr; /* 2 cols on tablet */
    }
}

@media (min-width: 1024px) {
    .sp-topic-grid {
        grid-template-columns: 1fr 1fr 1fr; /* max 3 cols on desktop */
    }
}


.sp-topic-card {
    background: var(--elev);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .22s ease, filter .22s ease;
    will-change: transform;
}

    .sp-topic-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 45px rgba(0,0,0,.18);
        filter: saturate(1.03);
    }


.sp-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 12px;
    font-size: 20px;
}

.sp-grad-blue {
    background: linear-gradient(135deg,var(--brand-blue),var(--brand-purple));
}

.sp-grad-purple {
    background: linear-gradient(135deg,var(--brand-purple),var(--brand-teal));
}

.sp-grad-teal {
    background: linear-gradient(135deg,var(--brand-teal),var(--brand-blue));
}

.sp-topic-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.sp-topic-card p {
    font-size: 14px;
    color: var(--text-soft);
}

/* BOOK ME */
.sp-book {
    background: var(--bg);
    padding: 80px 0;
    text-align: center;
}

.sp-sub-text {
    font-size: 18px;
    color: var(--text-soft);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.sp-book-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr; /* mobile: 1 column */
}

@media (min-width: 768px) {
    .sp-book-grid {
        grid-template-columns: 1fr 1fr; /* tablet: 2 columns */
    }
}

@media (min-width: 1024px) {
    .sp-book-grid {
        grid-template-columns: 1fr 1fr 1fr; /* desktop: 3 columns */
    }
}


.sp-book-item {
    padding: 16px;
}

.sp-book-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 22px;
}

    .sp-book-icon.sp-blue {
        background: rgba(102,126,234,.1);
        color: var(--brand-blue);
    }

    .sp-book-icon.sp-purple {
        background: rgba(118,75,162,.1);
        color: var(--brand-purple);
    }

    .sp-book-icon.sp-teal {
        background: rgba(20,184,166,.1);
        color: var(--brand-teal);
    }

.sp-book-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.sp-book-item p {
    font-size: 14px;
    color: var(--text-soft);
}

.sp-btn {
    padding: 14px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg,var(--brand-blue),var(--brand-purple));
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease;
}

    .sp-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(0,0,0,.2);
    }
