/* ==========================================
   OPTIMIZED HERO SECTION - TARA'S CONVERSION DESIGN
   ========================================== */

/* Hero Section - 60% of viewport */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Primary Headline - Large & Clear */
.hero-headline {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Searchable Highlight - Gradient Underline */
.highlight-searchable {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}

.highlight-searchable::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 8px;
    background: linear-gradient(90deg, #ec4899 0%, #f59e0b 100%);
    border-radius: 4px;
}

/* Subheadline - Social Proof */
.hero-subheadline {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.2rem;
    }

    .hero-subheadline {
        font-size: 1.1rem;
    }
}


/* Primary CTA Container */
.primary-cta-container {
    max-width: 700px;
    margin: 0 auto 30px;
}

/* TikTok Input Wrapper - Single Focus Design */
.tiktok-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 8px 8px 8px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.tiktok-input-wrapper:focus-within {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.input-icon {
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.input-icon i {
    font-size: 24px;
    color: #667eea;
}

.tiktok-url-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    padding: 16px 8px;
    background: transparent;
    color: #333;
    min-width: 0; /* Prevents flex overflow */
}

.tiktok-url-input::placeholder {
    color: #999;
}

/* Analyze Button - High Contrast CTA */
.analyze-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    flex-shrink: 0; /* Prevents button from shrinking */
}

.analyze-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

/* Mobile Responsiveness - Stack on Small Screens */
@media (max-width: 768px) {
    .tiktok-input-wrapper {
        flex-direction: column;
        align-items: stretch;
        border-radius: 20px;
        padding: 20px;
        gap: 15px;
    }

    .input-icon {
        display: none; /* Hide icon on mobile for cleaner look */
    }

    .tiktok-url-input {
        padding: 16px;
        font-size: 1rem;
        border: 2px solid #e0e0e0;
        border-radius: 12px;
        background: #f8f9fa;
    }

    .tiktok-url-input:focus {
        border-color: #667eea;
        background: white;
    }

    .analyze-button {
        width: 100%;
        padding: 18px 24px;
        font-size: 1.05rem;
    }
}

/* Live Activity Indicator */
.live-activity {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.95rem;
    gap: 8px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

#live-count {
    font-weight: 700;
    color: #ffd700;
}

/* Trust Signals Row - 20% of space */
.trust-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0 30px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
}

.trust-item i {
    color: #4ade80;
    font-size: 1.1rem;
}

/* Secondary CTA Row - Agency Focus */
.secondary-cta-row {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-cta-row .btn {
    background: white;
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.secondary-cta-row .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   RECENT SUBMISSIONS CAROUSEL - SOCIAL PROOF
   ========================================== */

.recent-submissions-section {
    padding: 50px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.recent-videos-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.recent-video-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.recent-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.video-thumbnail-mini {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}

.video-thumbnail-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-placeholder-mini {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 1.5rem;
}

.video-info-mini {
    flex: 1;
    min-width: 0;
}

.video-title-mini {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a1a1a;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-meta-mini {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-meta-mini i {
    font-size: 0.8rem;
}

/* ==========================================
   VIDEO CARD STYLES
   ========================================== */

.video-card {
    height: 100%;
    transition: all 0.2s ease;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.video-thumbnail-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.landscape-ratio {
    padding-bottom: 56.25%; /* 16:9 */
}

.portrait-ratio {
    padding-bottom: 177.78%; /* 9:16 */
    max-height: 280px;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: #f8f9fa;
}

.video-card:hover .video-thumbnail {
    transform: scale(1.02);
}

.thumbnail-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.default-gradient {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.tiktok-gradient {
    background: linear-gradient(135deg, #ff0050, #00f2ea);
}

.youtube-gradient {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.instagram-gradient {
    background: linear-gradient(135deg, #E4405F, #FCAF45);
}

.vimeo-gradient {
    background: linear-gradient(135deg, #1ab7ea, #0099cc);
}

.play-icon {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
    pointer-events: none;
}

.video-card:hover .video-play-overlay {
    opacity: 1;
}

.play-button-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.play-button-circle i {
    font-size: 24px;
    color: #0d6efd;
    margin-left: 4px;
}

.video-card:hover .play-button-circle {
    transform: scale(1.1);
    background: white;
}

.inline-video-player {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px 8px 0 0 !important;
    background: #000 !important;
    z-index: 50 !important;
}

.video-details-button {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 60;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-details-button:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: #0d6efd;
}

.video-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.platform-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.tiktok-badge {
    background: linear-gradient(135deg, #ff0050, #00f2ea);
    color: white;
}

.youtube-badge {
    background: #ff0000;
    color: white;
}

.instagram-badge {
    background: linear-gradient(135deg, #E4405F, #FCAF45);
    color: white;
}

.vimeo-badge {
    background: #1ab7ea;
    color: white;
}

.default-badge {
    background: #667eea;
    color: white;
}

.transcript-excerpt {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.metadata-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #999;
}

.metadata-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.metadata-item i {
    font-size: 11px;
}

.watch-button {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.watch-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* ==========================================
   PAIN POINTS SECTION
   ========================================== */

.pain-points-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.pain-point {
    padding: 20px;
    transition: transform 0.2s ease;
}

.pain-point:hover {
    transform: translateY(-4px);
}

.pain-point h5 {
    font-weight: 700;
    color: #1a1a1a;
}

.pain-point p {
    font-size: 0.95rem;
}

/* ==========================================
   USE CASES SECTION
   ========================================== */

.use-cases-section {
    background: #ffffff;
}

.use-case-card {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    background: white;
}

.use-case-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.use-case-icon i {
    font-size: 24px;
    color: white;
}

.use-case-card h5 {
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.use-case-card p {
    margin-bottom: 0;
    line-height: 1.6;
}

/* ==========================================
   PRICING SECTION
   ========================================== */

.pricing-section {
    background: #f8f9fa;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.pricing-card.featured {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: translateY(-8px) scale(1.05);
}

.badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pricing-header h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.pricing-price {
    margin-bottom: 30px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #667eea;
}

.price-period {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.pricing-features li {
    padding: 12px 0;
    color: #495057;
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f3f5;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: #667eea;
    margin-right: 8px;
}

.pricing-card .btn {
    margin-top: auto;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
}

/* ==========================================
   LOADING SKELETON
   ========================================== */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.skeleton-thumbnail {
    width: 100%;
    padding-bottom: 56.25%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-body {
    padding: 16px;
}

.skeleton-title {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    margin-bottom: 12px;
    border-radius: 4px;
}

.skeleton-text {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    margin-bottom: 8px;
    border-radius: 4px;
    width: 80%;
}

.skeleton-button {
    height: 40px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
    margin-top: 12px;
}
