/* ==================== StudyPlus YT Dedicated Page Styles ==================== */

/* Hero */
.sp-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.sp-hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.sp-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.sp-shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.2), transparent);
    top: -20%;
    right: -10%;
    animation: sp-float 8s ease-in-out infinite;
}

.sp-shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent);
    bottom: -10%;
    left: -10%;
    animation: sp-float 10s ease-in-out infinite reverse;
}

.sp-shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.12), transparent);
    top: 40%;
    left: 50%;
    animation: sp-float 12s ease-in-out infinite;
}

@keyframes sp-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
}

.sp-hero-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
    margin: 0 auto;
}

.sp-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 50px;
    color: #a78bfa;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.sp-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #ffffff;
    animation: fadeInUp 0.8s ease;
}

.sp-gradient-text {
    background: linear-gradient(135deg, #4F46E5, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sp-hero-subtitle {
    font-size: 1.15rem;
    color: #a0aec0;
    line-height: 1.7;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

.sp-hero-subtitle strong {
    color: #e2e8f0;
}

.sp-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 1.2s ease;
}

/* Buttons */
.sp-btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
}

.sp-btn-primary {
    background: linear-gradient(135deg, #4F46E5, #10B981);
    color: white;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

.sp-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.5);
    color: white;
}

.sp-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sp-btn-secondary:hover {
    border-color: rgba(79, 70, 229, 0.5);
    background: rgba(79, 70, 229, 0.1);
    color: white;
    transform: translateY(-2px);
}

.sp-btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* Hero Stats */
.sp-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    animation: fadeInUp 1.4s ease;
}

.sp-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sp-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4F46E5, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sp-stat-label {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
}

.sp-stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

/* Sections Common */
.sp-section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 0.75rem;
    font-weight: 800;
    color: #ffffff;
}

.sp-section-subtitle {
    text-align: center;
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ==================== Problem / Comparison ==================== */
.sp-problem-section {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.01);
}

.sp-comparison {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    position: relative;
}

.sp-comparison-card {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.sp-comparison-card:hover {
    transform: translateY(-4px);
}

.sp-card-header {
    padding: 16px 24px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-youtube-card {
    background: rgba(255, 50, 50, 0.06);
    border: 1px solid rgba(255, 50, 50, 0.2);
}

.sp-youtube-header {
    background: rgba(255, 50, 50, 0.1);
    color: #fca5a5;
}

.sp-studyplus-card {
    background: rgba(79, 70, 229, 0.06);
    border: 1px solid rgba(79, 70, 229, 0.25);
}

.sp-studyplus-header {
    background: rgba(79, 70, 229, 0.1);
    color: #a78bfa;
}

.sp-checklist {
    list-style: none;
    padding: 20px 24px;
    margin: 0;
}

.sp-checklist li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: #cbd5e0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sp-checklist li:last-child {
    border-bottom: none;
}

.sp-vs-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #4F46E5, #10B981);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    z-index: 1;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

/* ==================== Features Grid ==================== */
.sp-features-section {
    padding: 5rem 0;
}

.sp-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.sp-feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sp-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4F46E5, #10B981);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sp-feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 12px 40px rgba(79, 70, 229, 0.15);
}

.sp-feature-card:hover::before {
    opacity: 1;
}

.sp-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.sp-feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #e2e8f0;
}

.sp-feature-card p {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* ==================== How It Works ==================== */
.sp-steps-section {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.01);
}

.sp-steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.sp-step-card {
    flex: 1;
    max-width: 240px;
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.sp-step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.3);
}

.sp-step-number {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #4F46E5, #10B981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 14px;
}

.sp-step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #e2e8f0;
}

.sp-step-card p {
    color: #718096;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.sp-step-connector {
    color: #4F46E5;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0 8px;
    flex-shrink: 0;
}

/* ==================== Tech Stack ==================== */
.sp-tech-section {
    padding: 4rem 0;
}

.sp-tech-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
}

.sp-tech-pill {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #a0aec0;
    transition: all 0.3s ease;
}

.sp-tech-pill:hover {
    background: rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.3);
    color: #a78bfa;
    transform: translateY(-2px);
}

/* ==================== Final CTA ==================== */
.sp-cta-section {
    padding: 5rem 0;
}

.sp-cta-card {
    text-align: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(79, 70, 229, 0.25);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.sp-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.sp-cta-card h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.sp-cta-card p {
    color: #a0aec0;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .sp-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sp-hero {
        padding: 4rem 0 3rem;
        min-height: auto;
    }

    .sp-hero-title {
        font-size: 2.2rem;
    }

    .sp-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .sp-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .sp-hero-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 16px;
    }

    .sp-stat-divider {
        width: 60px;
        height: 1px;
    }

    .sp-comparison {
        flex-direction: column;
    }

    .sp-vs-badge {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: -12px auto;
        z-index: 1;
    }

    .sp-features-grid {
        grid-template-columns: 1fr;
    }

    .sp-steps-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .sp-step-connector {
        transform: rotate(90deg);
        padding: 0;
    }

    .sp-step-card {
        max-width: 100%;
    }

    .sp-cta-card {
        padding: 3rem 1.5rem;
    }
}

/* ==================== Custom Video Player ==================== */
.spys-custom-player {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 0 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.spys-video-frame:hover .spys-custom-player {
    opacity: 1;
}

.spys-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
    padding: 0 20px;
}

.spys-controls-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.spys-controls-right {
    display: none !important;
}

.spys-control-btn {
    background: none;
    border: none;
    color: white;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.spys-control-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.spys-control-btn svg {
    width: 24px;
    height: 24px;
}

.spys-play-btn {
    width: 44px;
    height: 44px;
    background: rgba(40, 40, 40, 0.8);
    border-radius: 50%;
    opacity: 1;
    transition: background 0.2s, transform 0.2s;
}

.spys-play-btn svg {
    width: 22px;
    height: 22px;
}

.spys-play-btn.paused svg {
    margin-left: 3px;
}

.spys-play-btn:hover {
    background: rgba(60, 60, 60, 0.9);
    transform: scale(1.05);
}

.spys-time-display {
    color: white;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.95;
}

.spys-progress-container {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    position: relative;
    border-radius: 0;
    transition: height 0.2s ease;
}

.spys-progress-container:hover {
    height: 5px;
}

.spys-progress-bar {
    height: 100%;
    background: #e5e5e5;
    transition: width 0.1s linear;
    border-radius: 0;
}

