/*--------------------------------------------------------------
# Widget Landing Pages - Shared Styles
--------------------------------------------------------------*/

/* Hero Section */
.widget-landing-hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--background-color) 0%, color-mix(in srgb, var(--accent-color), transparent 95%) 100%);
}

.widget-landing-hero.youtube-hero {
    background: linear-gradient(135deg, var(--background-color) 0%, rgba(255, 0, 0, 0.03) 100%);
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, color-mix(in srgb, var(--accent-color), transparent 90%) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, color-mix(in srgb, #764ba2, transparent 90%) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, color-mix(in srgb, var(--accent-color), transparent 95%) 0%, transparent 40%);
    opacity: 0.8;
}

.hero-bg-pattern.youtube-pattern {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 0, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 100, 100, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(255, 0, 0, 0.04) 0%, transparent 40%);
}

.min-vh-75 { min-height: 75vh; }

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #764ba2 40%));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(26, 204, 141, 0.3);
}

.hero-badge.youtube-badge {
    background: linear-gradient(135deg, #FF0000, #CC0000);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-color), #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-youtube {
    background: linear-gradient(135deg, #FF0000, #CC0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Stats */
.hero-stats { display: flex; gap: 2rem; }
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-size: 1.75rem; font-weight: 700; color: var(--heading-color); line-height: 1.2; }
.stat-label { font-size: 0.85rem; color: color-mix(in srgb, var(--default-color), transparent 40%); }

/* Hero Preview Container */
.hero-preview-container { position: relative; height: 420px; }
.hero-preview-container.youtube-preview { height: 400px; }

/* Floating Review Cards */
.floating-review-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    animation: floatCard 6s ease-in-out infinite;
    transform: translateZ(0);
}

.floating-review-card.card-1 { top: 0; left: 10px; animation-delay: 0s; }
.floating-review-card.card-2 { top: 20px; right: 0; animation-delay: 2s; }
.floating-review-card.card-3 { top: 160px; left: 0; max-width: 260px; animation-delay: 1s; }
.floating-review-card.card-4 { top: 200px; right: 10px; max-width: 240px; animation-delay: 3s; }

.floating-review-card .review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.floating-review-card .avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #764ba2 40%));
    color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.9rem;
}
.floating-review-card .avatar.purple { background: linear-gradient(135deg, #667eea, #764ba2); }
.floating-review-card .avatar.teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.floating-review-card .avatar.orange { background: linear-gradient(135deg, #f97316, #ea580c); }

.floating-review-card .reviewer-info { flex: 1; }
.floating-review-card .name { display: block; font-weight: 600; color: var(--heading-color); font-size: 0.95rem; }
.floating-review-card .stars { color: #f6ad55; font-size: 0.85rem; }
.floating-review-card .review-text { font-size: 0.9rem; color: color-mix(in srgb, var(--default-color), transparent 20%); line-height: 1.5; margin: 0; }

/* Floating Badge Card */
.floating-badge-card {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white; border-radius: 16px; padding: 20px 28px; text-align: center;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4); z-index: 5;
    animation: floatCard 6s ease-in-out infinite; animation-delay: 1s;
}
.floating-badge-card .badge-rating { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.floating-badge-card .badge-stars { font-size: 1.2rem; margin: 8px 0; }
.floating-badge-card .badge-count { font-size: 0.85rem; opacity: 0.9; }

/* Floating Video Cards */
.floating-video-card {
    position: absolute; background: white; border-radius: 16px; overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); max-width: 280px;
    animation: floatCard 6s ease-in-out infinite; transform: translateZ(0);
}
.floating-video-card.card-1 { top: 0; left: 20px; animation-delay: 0s; }
.floating-video-card.card-2 { top: 10px; right: 0; animation-delay: 2s; }
.floating-video-card.card-3 { top: 170px; left: 0; max-width: 240px; animation-delay: 1s; }
.floating-video-card.card-4 { top: 190px; right: 20px; max-width: 220px; animation-delay: 3s; }

.floating-video-card .video-thumbnail {
    height: 140px; background: linear-gradient(135deg, #FF6B6B, #FF0000);
    position: relative; display: flex; align-items: center; justify-content: center;
}
.floating-video-card .video-thumbnail.blue { background: linear-gradient(135deg, #667eea, #764ba2); }
.floating-video-card .video-thumbnail.green { background: linear-gradient(135deg, #10b981, #059669); }
.floating-video-card .video-thumbnail.orange { background: linear-gradient(135deg, #f97316, #ea580c); }

.floating-video-card .play-button {
    width: 50px; height: 50px; background: rgba(255, 255, 255, 0.95); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #FF0000; font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.floating-video-card .video-duration {
    position: absolute; bottom: 8px; right: 8px; background: rgba(0, 0, 0, 0.8);
    color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 500;
}

.floating-video-card .video-info { padding: 16px; display: flex; gap: 12px; }

.floating-video-card .channel-avatar {
    width: 36px; height: 36px; border-radius: 50%; background: #FF0000;
    color: white; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.floating-video-card .channel-avatar.blue { background: #667eea; }
.floating-video-card .channel-avatar.green { background: #10b981; }
.floating-video-card .channel-avatar.orange { background: #f97316; }

.floating-video-card .video-details h6 { margin: 0 0 4px 0; font-size: 0.9rem; color: var(--heading-color); font-weight: 600; }
.floating-video-card .video-meta { font-size: 0.8rem; color: color-mix(in srgb, var(--default-color), transparent 40%); }

/* Floating Stats Card */
.floating-stats-card {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    background: white; border-radius: 16px; padding: 16px 24px;
    display: flex; align-items: center; gap: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: floatCard 6s ease-in-out infinite; animation-delay: 1s; z-index: 5;
}
.floating-stats-card .stats-icon {
    width: 50px; height: 50px; border-radius: 12px;
    background: linear-gradient(135deg, #FF0000, #CC0000);
    color: white; display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.floating-stats-card .stats-number { font-size: 1.75rem; font-weight: 700; color: var(--heading-color); line-height: 1; }
.floating-stats-card .stats-label { font-size: 0.85rem; color: color-mix(in srgb, var(--default-color), transparent 40%); }

@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* Button Variants */
.btn-global.btn-youtube { background: #FF0000; }
.btn-global.btn-youtube:hover { background: #CC0000; }

/*--------------------------------------------------------------
# Layouts Showcase
--------------------------------------------------------------*/
.layouts-showcase { background: var(--background-color); }
.layout-showcase-item { padding: 2rem 0; }

/* Layout Info Card */
.layout-info-card {
    padding: 2rem; background: white; border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
    border-left: 4px solid var(--accent-color);
}
.layout-info-card.youtube-card { border-left: 4px solid #FF0000; }
.layout-info-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: var(--heading-color); }
.layout-info-card > p { color: color-mix(in srgb, var(--default-color), transparent 25%); line-height: 1.7; margin-bottom: 1.5rem; }

.layout-features { list-style: none; padding: 0; margin: 0; }
.layout-features li { padding: 8px 0; display: flex; align-items: center; gap: 10px; color: color-mix(in srgb, var(--default-color), transparent 20%); font-size: 0.95rem; }
.layout-features li i { color: var(--accent-color); font-size: 0.85rem; }
.youtube-card .layout-features li i { color: #FF0000; }

/* Layout CTA Button */
.btn-layout-cta {
    display: inline-flex; align-items: center; justify-content: center; width: 100%;
    margin-top: 1.25rem; padding: 12px 20px;
    background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #764ba2 30%));
    color: white; border: none; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
    cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(26, 204, 141, 0.25);
    text-decoration: none; text-align: center;
}
.btn-layout-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26, 204, 141, 0.35); color: white; }
.btn-layout-cta.youtube { background: linear-gradient(135deg, #FF0000, #CC0000); box-shadow: 0 4px 15px rgba(255, 0, 0, 0.25); }
.btn-layout-cta.youtube:hover { box-shadow: 0 6px 20px rgba(255, 0, 0, 0.35); }

/*--------------------------------------------------------------
# Feature Cards (widget-specific override)
--------------------------------------------------------------*/
.feature-card {
    background: white; border-radius: 16px; padding: 2rem; height: 100%;
    transition: all 0.3s ease; border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08); border-color: var(--accent-color); }
.feature-card.youtube-feature:hover { border-color: #FF0000; }

.feature-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #764ba2 40%));
    color: white; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 1.25rem;
}
.feature-icon.purple { background: linear-gradient(135deg, #667eea, #764ba2); }
.feature-icon.youtube { background: linear-gradient(135deg, #FF0000, #CC0000); }
.feature-icon.youtube-alt { background: linear-gradient(135deg, #FF6B6B, #FF0000); }

.feature-card h4 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--heading-color); }
.feature-card p { color: color-mix(in srgb, var(--default-color), transparent 30%); font-size: 0.95rem; line-height: 1.6; margin: 0; }

/*--------------------------------------------------------------
# CTA Section
--------------------------------------------------------------*/
.cta-section {
    background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #764ba2 40%));
    padding: 4rem 0;
}
.cta-section.youtube-cta { background: linear-gradient(135deg, #FF0000, #CC0000); }

/*--------------------------------------------------------------
# Demo Widget Frame
--------------------------------------------------------------*/
.demo-widget-frame {
    background: white; border-radius: 16px; overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}
.demo-widget-frame .frame-header {
    background: #f5f5f5; padding: 10px 14px; display: flex; gap: 6px;
    border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}
.demo-widget-frame .frame-dot { width: 10px; height: 10px; border-radius: 50%; background: #ddd; }
.demo-widget-frame .frame-dot:nth-child(1) { background: #ff5f57; }
.demo-widget-frame .frame-dot:nth-child(2) { background: #febc2e; }
.demo-widget-frame .frame-dot:nth-child(3) { background: #28c840; }

.demo-widget-frame .frame-content {
    background: #fafafa; overflow: hidden; padding: 16px;
}

.widget-iframe {
    width: 100%;
    min-height: 420px;
    border: none;
    display: block;
}

/* Demo Placeholder (replaces iframes until demo endpoint is built) */
.demo-placeholder {
    display: flex; align-items: center; justify-content: center; min-height: 300px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color), transparent 95%), color-mix(in srgb, #764ba2, transparent 95%));
}
.demo-placeholder.youtube {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.03), rgba(255, 0, 0, 0.06));
}
.demo-placeholder-content {
    text-align: center; color: color-mix(in srgb, var(--default-color), transparent 50%);
}
.demo-placeholder-content i { font-size: 3rem; display: block; margin-bottom: 1rem; }
.demo-placeholder-content span { font-size: 1.1rem; font-weight: 500; }

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
    .widget-landing-hero { padding: 120px 0 60px; }
    .hero-preview-container { height: 380px; margin-top: 3rem; }
    .floating-review-card { max-width: 220px; }
    .floating-video-card { max-width: 200px; }
    .floating-review-card.card-3, .floating-video-card.card-3 { top: 150px; left: 0; }
    .floating-review-card.card-4, .floating-video-card.card-4 { top: 180px; right: 0; }
    .layout-info-card { margin-bottom: 2rem; }
}

@media (max-width: 767.98px) {
    .widget-landing-hero { padding: 100px 0 40px; }
    .widget-landing-hero h1 { font-size: 2rem; }
    .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
    .hero-preview-container { height: 300px; }
    .floating-review-card, .floating-video-card { max-width: 170px; padding: 12px; }
    .floating-review-card.card-2, .floating-video-card.card-2 { top: 80px; }
    .floating-review-card.card-3, .floating-review-card.card-4,
    .floating-video-card.card-3, .floating-video-card.card-4 { display: none; }
    .floating-badge-card, .floating-stats-card { padding: 16px 24px; }
    .demo-widget-frame .frame-content { max-height: 380px; }
}
