/**
 * Shared Product Page Styles
 * 
 * Used across product landing pages:
 * - Counter Widgets
 * - TV Overlays
 * - Stream Overlays
 */

/* Full-screen section base */
.widget-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
}

.widget-section-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Hero Section Base */
.widget-hero {
    overflow: hidden;
}

.widget-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.widget-hero .widget-section-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Hero Preview */
.hero-preview {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

/* Features Section */
.widget-features {
    background: var(--background-primary, #f9fafb);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.widget-features .widget-section-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary, #1f2937);
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary, #6b7280);
}

/* 2x2 Grid Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 400px));
    gap: 3rem 4rem;
    justify-content: center;
}

.feature-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.feature-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    margin: 0 0 0.5rem 0;
}

.feature-text p {
    color: var(--text-secondary, #6b7280);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Overlays Section */
.widget-overlays {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.widget-overlays .section-header h2 {
    color: white;
}

.widget-overlays .section-header p {
    color: rgba(255, 255, 255, 0.6);
}

.overlays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.overlay-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
}

.overlay-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.overlay-card-preview {
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.overlay-card-preview i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.15);
}

.overlay-card-content {
    padding: 1.25rem;
}

.overlay-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.5rem;
}

.overlay-card-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 1rem;
    line-height: 1.5;
}

.overlay-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.overlay-card-badge.coming-soon {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
}

.overlay-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Live Pulse Animation */
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Preview Base Styles */
.preview-widget,
.preview-overlay,
.preview-stream {
    border-radius: 20px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-widget:hover,
.preview-overlay:hover,
.preview-stream:hover {
    transform: rotateY(0) rotateX(0);
}

/* Preview Title */
.preview-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

/* Preview Buttons */
.preview-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.preview-btn {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    transition: transform 0.15s;
}

.preview-btn:active {
    transform: scale(0.95);
}

/* Preview Branding */
.preview-branding {
    font-size: 0.75rem;
    color: #9ca3af;
}

.preview-branding a {
    color: inherit;
    text-decoration: underline;
}

/* Preview Live Badge */
.preview-live-badge,
.preview-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #f87171;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.preview-live-badge::before,
.preview-live-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

/* Stream Preview Elements */
.preview-stream-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.preview-obs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.preview-scoreboard {
    border-radius: 12px;
    padding: 1rem;
}

.preview-match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-players,
.preview-scorebug-teams {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-player,
.preview-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.preview-player-name,
.preview-team-name {
    font-weight: 600;
    color: white;
    font-size: 0.9375rem;
}

.preview-player-score,
.preview-team-score {
    font-weight: 700;
    font-size: 1.25rem;
    font-family: monospace;
}

.preview-player.serving .preview-player-name::before,
.preview-team.serving::before {
    content: '•';
    color: #34d399;
    margin-right: 0.5rem;
}

/* Scorebug Preview */
.preview-scorebug {
    border-radius: 12px;
    padding: 1rem;
}

.preview-scorebug-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 1024px) {
    .widget-hero .widget-section-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-preview {
        order: -1;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .widget-section {
        min-height: auto;
        padding: 4rem 1.5rem;
    }
}
