/*--------------------------------------------------------------
# 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 .google-icon {
    width: 24px;
    height: 24px;
}

.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 Section
--------------------------------------------------------------*/
.layouts-showcase {
    background: var(--background-color);
}

.layout-showcase-item {
    padding: 2rem 0;
}

/*--------------------------------------------------------------
# Widget Header Card (Business Summary)
--------------------------------------------------------------*/
.widget-header-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
    margin-bottom: 2rem;
}

.widget-header-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.widget-header-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.widget-header-logo.google {
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
}

.widget-header-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--heading-color);
}

.widget-header-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-header-rating .rating-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading-color);
}

.widget-header-rating .stars {
    color: #f6ad55;
    font-size: 0.9rem;
}

.widget-header-rating .review-count {
    font-size: 0.85rem;
    color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.widget-header-right .btn-write-review {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--accent-color);
    color: white;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.widget-header-right .btn-write-review:hover {
    background: color-mix(in srgb, var(--accent-color), black 10%);
    transform: translateY(-1px);
}

/* 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);
}

.btn-layout-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 204, 141, 0.35);
}

.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);
}

/*--------------------------------------------------------------
# Layout Card Preview - Matches widget-create.css exactly
--------------------------------------------------------------*/
.layout-card-preview {
    display: block;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    width: 100%;
    max-width: 300px;
}

.layout-card-preview:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.layout-card-preview.youtube:hover {
    border-color: #FF0000;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.15);
}

.layout-card-preview .layout-preview {
    height: 120px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    border-radius: 8px;
    overflow: hidden;
}

.layout-card-preview .layout-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.layout-card-preview .layout-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #718096;
}

/* Layout Preview Styles - Exact copy from widget-create.css */
.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 80px;
    height: 60px;
}

.preview-grid .preview-item {
    background: #cbd5e0;
    border-radius: 4px;
}

.preview-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 80px;
    height: 60px;
}

.preview-list .preview-item {
    background: #cbd5e0;
    border-radius: 4px;
    height: 16px;
}

.preview-carousel {
    position: relative;
    width: 80px;
    height: 60px;
}

.preview-carousel .preview-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #cbd5e0;
    border-radius: 4px;
    opacity: 0.3;
}

.preview-carousel .preview-item.active {
    opacity: 1;
    background: #667eea;
}

.youtube .preview-carousel .preview-item.active {
    background: #FF0000;
}

.carousel-dots {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
}

.carousel-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e0;
}

.carousel-dots .dot.active {
    background: #667eea;
}

.youtube .carousel-dots .dot.active {
    background: #FF0000;
}

.preview-masonry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 80px;
    height: 60px;
}

.preview-masonry .preview-item {
    background: #cbd5e0;
    border-radius: 4px;
}

.preview-masonry .preview-item.tall {
    grid-row: span 2;
}

.preview-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 60px;
}

.preview-badge .badge-content {
    text-align: center;
    font-size: 0.7rem;
}

.preview-badge .badge-stars {
    color: #f6ad55;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.preview-badge .badge-text {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2px;
}

.preview-badge .badge-count {
    color: #718096;
    font-size: 0.6rem;
}

/*--------------------------------------------------------------
# Feature Cards
--------------------------------------------------------------*/
.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 Iframe Styles
--------------------------------------------------------------*/
.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%);
}

/* Browser-style header for demo frames */
.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-y: auto;
    overflow-x: hidden;
    max-height: 450px;
    padding: 16px;
}

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

.badge-frame .frame-content {
    min-height: 280px;
    max-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-iframe {
    min-height: 260px;
}

/* Custom Scrollbar Styles */
.demo-widget-frame .frame-content::-webkit-scrollbar {
    width: 8px;
}

.demo-widget-frame .frame-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.demo-widget-frame .frame-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.demo-widget-frame .frame-content::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Firefox scrollbar */
.demo-widget-frame .frame-content {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/*--------------------------------------------------------------
# Responsive Styles
--------------------------------------------------------------*/
@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 {
        top: 80px;
    }
    
    .floating-video-card.card-2 {
        top: 80px;
    }
    
    /* Hide extra cards on mobile */
    .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;
    }
    
    .widget-header-card {
        flex-direction: column;
        text-align: center;
    }
    
    .widget-header-left {
        flex-direction: column;
    }
    
    .widget-header-rating {
        justify-content: center;
    }
    
    .demo-widget-frame .frame-content {
        max-height: 380px;
    }
}
