/* 1. Global Variables & Reset */
:root {
    --bg-black: #0a0a0a;
    --card-bg: #121212;
    --dark-red: #8b0000;
    --bright-red: #ff0000;
    --text-white: #ffffff;
    --text-gray: #bbbbbb;
    --accent-gradient: linear-gradient(45deg, #ff416c, #ff4b2b);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

/* 2. News Ticker */
.news-ticker {
    background: var(--dark-red);
    color: white;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: bold;
    border-bottom: 2px solid var(--bright-red);
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 40s linear infinite;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* 3. Header & Navigation */
header {
    background: #000;
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #222;
}

.logo h1 {
    font-size: 2.5rem;
    margin: 0;
    letter-spacing: 2px;
}

.logo span {
    color: var(--bright-red);
}

.main-nav {
    margin-top: 20px;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.main-nav ul li a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: var(--bright-red);
}

/* 4. Search Bar */
.search-container {
    margin: 20px auto;
    max-width: 600px;
    padding: 0 20px;
}

.search-container form {
    display: flex;
}

.search-container input {
    flex: 1;
    padding: 12px;
    border: none;
    background: #1a1a1a;
    color: white;
    border-radius: 5px 0 0 5px;
    border: 1px solid #333;
}

.search-container button {
    padding: 12px 25px;
    background: var(--bright-red);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 0 5px 5px 0;
}

/* 5. Trending Slider */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    border-left: 4px solid var(--bright-red);
    padding-left: 15px;
    margin-bottom: 20px;
}

.slider-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.slider-track {
    display: flex;
    gap: 20px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.slider-track:hover {
    animation-play-state: paused;
}

.slider-card {
    width: 250px;
}

.game-card-link {
    text-decoration: none;
    color: inherit;
}

.game-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, border 0.3s;
    border: 1px solid #222;
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--bright-red);
}

.game-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.game-info {
    padding: 15px;
}

.game-info h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-tag {
    font-size: 0.75rem;
    background: #333;
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--text-gray);
}

.trending-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-gradient);
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 2;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 6. Ads & Footer */
.ad-space {
    background: #111;
    border: 1px dashed #444;
    padding: 40px;
    text-align: center;
    color: #666;
    margin: 40px 0;
}

footer {
    background: #000;
    padding: 50px 0 20px 0;
    margin-top: 50px;
    border-top: 2px solid var(--dark-red);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.footer-box h3 {
    color: var(--bright-red);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-box ul {
    list-style: none;
    padding: 0;
}

.footer-box ul li {
    margin-bottom: 10px;
}

.footer-box ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-box ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #555;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav ul {
        gap: 10px;
    }
    .logo h1 {
        font-size: 1.8rem;
    }
}


/* Visitor Counter Styling */
.visitor-counter {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(5px);
    padding: 12px 20px;
    border-radius: 50px; /* රවුම් හැඩයක් ලබා දීමට */
    border: 1px solid rgba(255, 75, 43, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 75, 43, 0.1);
    transition: 0.3s;
}

.visitor-counter:hover {
    border-color: #ff4b2b;
    transform: scale(1.05);
}

/* Live Dot Pulse Animation */
.live-dot {
    height: 10px;
    width: 10px;
    background-color: #00ff00;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-shadow: 0 0 8px #00ff00;
}

.live-dot::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00ff00;
    border-radius: 50%;
    z-index: -1;
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.5); opacity: 0.8; }
    80%, 100% { transform: scale(2.5); opacity: 0; }
}

.counter-text {
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.counter-number {
    color: #ff4b2b; /* ගණන පෙන්වන වර්ණය */
    font-weight: 800;
}


