/* Import common styles */
@import 'common.css';

/* Specific styles for main page */

#online-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    margin: 0 0.5rem;
    height: 36px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: help;
}

#online-counter::after {
    content: 'Users currently online';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#online-counter::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--secondary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

#online-counter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#online-counter:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* These styles are now in common.css */

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: url(../imgs/hero-banner.jpg) center/cover;
    color: var(--hero-text-color);
    text-align: center;
    position: relative;
    padding: 4rem 0;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0;
    font-weight: 600;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 0;
    opacity: 0.8;
}

.hero-badges {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 0.5rem 0 1.5rem;
}

.cta-button {
    /* Custom styles for hero section CTA button */
    padding: 1.2rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1rem;
    box-shadow: 0 4px 6px rgba(var(--accent-color-rgb), 0.2);
}

.cta-button:hover {
    box-shadow: 0 6px 12px rgba(var(--accent-color-rgb), 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    .hero {
        padding: 2rem 0;
        margin-top: 60px;
    }
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    .hero-content {
        padding: 1rem;
    }
    .hero-badges {
        flex-wrap: wrap;
        padding: 0 1rem;
    }
    .container {
        width: 95%;
        padding: 1rem 0;
    }
    section {
        padding: 3rem 0;
    }
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}