/* BowlingOps Home Page - Professional Redesign */

/* ========================================
   MODERN HERO SECTION
   ======================================== */

.hero-modern {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.badge-icon {
    font-size: 18px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin: 0 0 24px 0;
}

.hero-title-gradient {
    display: block;
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 40px 0;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Visual - Clean Abstract Design */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    position: relative;
}

.hero-logo-background {
    position: absolute;
    top: 50%;
    left: 53%;
    transform: translate(-50%, -50%);
    opacity: 0.38;
    object-fit: contain;
    z-index: 0;
    filter: blur(1.5px);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
    50% { transform: translate(-50%, -50%) translateY(-20px); }
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        linear-gradient(-135deg, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.hero-accent-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.hero-accent-1 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.hero-accent-2 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.15) 100%);
}

.hero-accent-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    box-shadow: 0 0 80px rgba(99, 102, 241, 0.3);
}

/* ========================================
   SECTION HEADERS
   ======================================== */

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

.section-header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    gap: 24px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6366f1;
    margin-bottom: 12px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 18px;
    color: #64748b;
    margin: 16px auto 0;
    max-width: 700px;
    line-height: 1.6;
}

/* ========================================
   BENTO BOX FEATURES LAYOUT
   ======================================== */

.features-bento {
    background: white;
    padding: 120px 20px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.bento-item {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 32px;
    transition: all 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: #6366f1;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-medium {
    grid-column: span 2;
}

.bento-small {
    grid-column: span 1;
}

.bento-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 20px;
}

.bento-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
}

.bento-description {
    font-size: 16px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 20px 0;
}

.bento-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bento-features li {
    font-size: 15px;
    color: #475569;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bento-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
}

/* ========================================
   TIMELINE SECTION
   ======================================== */

.timeline-section {
    background: #f8fafc;
    padding: 120px 20px;
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 32px;
    bottom: 32px;
    width: 2px;
    background: linear-gradient(180deg, #6366f1 0%, #a78bfa 100%);
}

.timeline-item {
    display: flex;
    gap: 32px;
    margin-bottom: 64px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
}

.timeline-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
}

/* ========================================
   ORGANIZATIONS SHOWCASE
   ======================================== */

.organizations-showcase {
    background: white;
    padding: 120px 20px;
}

.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.org-card-modern {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.org-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: #6366f1;
}

.org-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.org-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.org-status-badge {
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
}

.org-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
}

.org-card-description {
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.org-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.org-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #64748b;
}

.org-link {
    font-size: 14px;
    font-weight: 600;
    color: #6366f1;
}

/* ========================================
   TOURNAMENTS SHOWCASE
   ======================================== */

.tournaments-showcase {
    background: #f8fafc;
    padding: 120px 20px;
}

.tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.tournament-card-modern {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
}

.tournament-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: #6366f1;
}

.tournament-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tournament-type-badge {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 6px;
}

.tournament-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
}

.tournament-card-description {
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tournament-card-stats {
    display: flex;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.tournament-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
}

.tournament-stat svg {
    color: #94a3b8;
}

/* ========================================
   MODERN CTA SECTION
   ======================================== */

.cta-modern {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
}

.cta-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.cta-badge span:first-child {
    font-size: 20px;
}

.cta-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin: 0 0 24px 0;
}

.cta-description {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 40px 0;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .hero-container {
        gap: 60px;
    }

    .hero-title {
        font-size: 48px;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .bento-medium {
        grid-column: span 1;
    }
}

@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-visual {
        max-width: 400px;
        margin: 0 auto;
        pointer-events: none; /* Prevent circle overlay from blocking clicks */
    }

    .hero-image-container {
        pointer-events: none; /* Prevent circle overlay from blocking clicks */
    }

    .hero-logo-background {
        opacity: 0.20;
    }

    .section-header-split {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title {
        font-size: 36px;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        flex-direction: column;
        gap: 20px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large,
    .bento-medium,
    .bento-small {
        grid-column: span 1;
        grid-row: span 1;
    }

    .org-grid,
    .tournament-grid {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    .hero-modern {
        padding: 80px 20px 60px;
    }

    .hero-container {
        gap: 40px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        position: relative;
        z-index: 10; /* Ensure buttons are above the circles */
    }

    .hero-actions button {
        width: 100%;
    }

    .hero-visual {
        max-width: 280px;
        margin-top: 20px; /* Add spacing to separate from buttons */
    }

    .hero-image-container {
        max-width: 280px;
    }

    .hero-logo-background {
        opacity: 0.25;
        filter: blur(1px);
    }

    .hero-accent-1 {
        width: 220px;
        height: 220px;
    }

    .hero-accent-2 {
        width: 160px;
        height: 160px;
    }

    .hero-accent-3 {
        width: 100px;
        height: 100px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .timeline-section,
    .features-bento,
    .organizations-showcase,
    .tournaments-showcase,
    .cta-modern {
        padding: 80px 20px;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-description {
        font-size: 16px;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions button {
        width: 100%;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.accent-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   TOURNAMENT DISCOVERY SECTION
   ======================================== */

.tournament-discovery-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.tournament-discovery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.discovery-content-centered {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.discovery-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.discovery-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.discovery-feature-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    transform: translateY(-4px);
}

.feature-icon-modern {
    font-size: 32px;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4ff 0%, #e9efff 100%);
    border-radius: 12px;
}

/* Responsive - Tournament Discovery */
@media (max-width: 640px) {
    .tournament-discovery-section {
        padding: 60px 20px;
    }

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

    .feature-icon-modern {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
}
