/* ========================================
   খেলা২৪ - Bengali Sports Live Score Website
   Complete Stylesheet
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #1a237e;
    --primary-dark: #0d1542;
    --primary-light: #3949ab;
    --secondary: #f44336;
    --secondary-dark: #d32f2f;
    --accent: #ff9800;
    --success: #4caf50;
    --warning: #ffc107;
    --info: #2196f3;
    --dark: #212121;
    --light: #f5f5f5;
    --white: #ffffff;
    --gray: #757575;
    --light-gray: #e0e0e0;
    --border: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --font-bengali: 'Noto Sans Bengali', 'SolaimanLipi', 'Siyam Rupali', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-bengali);
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    direction: ltr;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--dark);
    color: var(--white);
    padding: 6px 0;
    font-size: 13px;
}
.top-bar-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar .social-links a {
    color: var(--white);
    margin-left: 12px;
    opacity: 0.8;
    font-size: 15px;
}
.top-bar .social-links a:hover { opacity: 1; color: var(--accent); }

/* ===== HEADER ===== */
.header-main {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
    color: var(--white);
    padding: 15px 0;
}
.header-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 55px; height: 55px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--white);
    box-shadow: 0 2px 10px rgba(255,152,0,0.3);
    flex-shrink: 0;
}
.logo-text h1 { font-size: 28px; font-weight: 800; line-height: 1.2; }
.logo-text span { font-size: 12px; opacity: 0.85; display: block; }
.live-indicator {
    background: var(--secondary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: pulse-bg 2s infinite;
    white-space: nowrap;
}
.live-indicator .dot {
    width: 8px; height: 8px;
    background: var(--white);
    border-radius: 50%;
    animation: blink 1s infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }
@keyframes pulse-bg { 0%,100% { background: var(--secondary); } 50% { background: var(--secondary-dark); } }

/* ===== NAVIGATION ===== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-menu { display: flex; gap: 0; }
.nav-menu li a {
    display: block;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}
.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary);
    border-bottom-color: var(--secondary);
    background: #f0f0ff;
}
.nav-menu li a i { margin-right: 6px; color: var(--secondary); }
.search-box {
    display: flex;
    align-items: center;
    background: var(--light);
    border-radius: 25px;
    padding: 5px 15px;
}
.search-box input {
    border: none;
    background: transparent;
    padding: 8px 5px;
    font-size: 14px;
    outline: none;
    width: 180px;
    font-family: var(--font-bengali);
}
.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
    font-size: 16px;
}
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--dark); padding: 10px; }

/* ===== BREAKING NEWS TICKER ===== */
.breaking-news {
    background: var(--secondary);
    color: var(--white);
    padding: 8px 0;
    overflow: hidden;
}
.breaking-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.breaking-label {
    background: var(--white);
    color: var(--secondary);
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 3px;
    white-space: nowrap;
    text-transform: uppercase;
}
.news-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 24px;
}
.ticker-content {
    position: absolute;
    white-space: nowrap;
    animation: ticker 35s linear infinite;
    display: flex;
    gap: 50px;
}
.ticker-content a { color: var(--white); font-size: 14px; white-space: nowrap; }
.ticker-content a:hover { text-decoration: underline; }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* ===== HERO / LIVE SCORES ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark), #1a237e);
    padding: 30px 0;
    color: var(--white);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title i { color: var(--secondary); }
.live-scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}
.score-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 18px;
    transition: var(--transition);
    cursor: pointer;
}
.score-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.score-card .match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    opacity: 0.8;
}
.score-card .match-status {
    background: var(--secondary);
    color: var(--white);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}
.score-card .match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.score-card .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}
.score-card .team .team-flag { font-size: 32px; margin-bottom: 4px; }
.score-card .team .team-name { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.score-card .team .score { font-size: 20px; font-weight: 800; }
.score-card .team .overs { font-size: 11px; opacity: 0.7; }
.score-card .vs { font-size: 13px; font-weight: 700; opacity: 0.5; padding: 0 5px; }
.score-card .match-footer { margin-top: 10px; font-size: 12px; opacity: 0.8; text-align: center; }

/* ===== MAIN LAYOUT ===== */
.main-content { padding: 30px 0; }
.row { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }

/* ===== NEWS CARDS ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.news-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.news-card .news-image {
    height: 190px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 48px;
}
.news-card .news-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--secondary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    z-index: 1;
}
.news-card .news-body { padding: 16px; }
.news-card .news-date {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.news-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card .read-more {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
}
.news-card .read-more:hover { color: var(--secondary); }
.news-featured { grid-column: 1 / -1; }
.news-featured .news-image { height: 320px; }
.news-featured h3 { font-size: 22px; }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 25px; }
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
}
.sidebar-widget .widget-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-widget .widget-title i { color: var(--secondary); }
.match-list { display: flex; flex-direction: column; gap: 10px; }
.match-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    gap: 10px;
}
.match-item:last-child { border-bottom: none; }
.match-item .teams { flex: 1; }
.match-item .teams .team-name { font-size: 14px; font-weight: 600; display: block; }
.match-item .match-time { font-size: 12px; color: var(--gray); white-space: nowrap; }
.match-item .match-league { font-size: 11px; color: var(--gray); margin-top: 2px; }

.points-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.points-table th {
    background: var(--primary);
    color: var(--white);
    padding: 8px 5px;
    text-align: center;
    font-size: 11px;
}
.points-table th:first-child { border-radius: 5px 0 0 0; }
.points-table th:last-child { border-radius: 0 5px 0 0; }
.points-table td {
    padding: 7px 5px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.points-table tr:hover td { background: #f0f0ff; }
.points-table .team-name-cell { text-align: left; font-weight: 600; }

/* ===== QUICK STATS ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}
.stat-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.stat-box .stat-icon { font-size: 28px; color: var(--primary); margin-bottom: 8px; }
.stat-box .stat-number { font-size: 26px; font-weight: 800; color: var(--secondary); }
.stat-box .stat-label { font-size: 13px; color: var(--gray); margin-top: 4px; }

/* ===== SPORTS TABS ===== */
.sports-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.sports-tab {
    flex: 1;
    padding: 12px 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: var(--white);
    color: var(--dark);
    border-bottom: 3px solid transparent;
    font-family: var(--font-bengali);
}
.sports-tab:hover { background: #f0f0ff; }
.sports-tab.active {
    color: var(--primary);
    border-bottom-color: var(--secondary);
    background: #f0f0ff;
}
.sports-tab i { margin-right: 6px; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}
.page-header h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.page-header p { font-size: 16px; opacity: 0.85; }

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 50px 0 0;
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
}
.footer-col p { font-size: 14px; opacity: 0.8; line-height: 1.8; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-col ul li a:hover { color: var(--accent); padding-left: 5px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== SCROLL TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 45px; height: 45px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 999;
}
.scroll-top.show { display: flex; }
.scroll-top:hover { background: var(--secondary-dark); transform: translateY(-3px); }

/* ===== AD SPACE ===== */
.ad-space {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 20px;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-bengali);
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(26,35,126,0.3); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-2px); }
.loading {
    display: inline-block;
    width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .row { grid-template-columns: 1fr; }
    .header-wrapper { flex-direction: column; gap: 10px; text-align: center; }
    .nav-menu { display: none; flex-direction: column; width: 100%; background: var(--white); position: absolute; top: 100%; left: 0; box-shadow: var(--shadow); }
    .nav-menu.active { display: flex; }
    .nav-menu li a { border-bottom: 1px solid var(--border); padding: 12px 20px; }
    .menu-toggle { display: block; }
    .search-box { display: none; }
    .nav-wrapper { position: relative; }
    .live-scores-grid { grid-template-columns: 1fr; }
    .news-featured .news-image { height: 250px; }
}
@media (max-width: 576px) {
    .logo-text h1 { font-size: 22px; }
    .logo-icon { width: 45px; height: 45px; font-size: 24px; }
    .top-bar-wrapper { flex-direction: column; gap: 5px; }
    .sports-tabs { flex-wrap: wrap; }
    .sports-tab { flex: 1 1 50%; font-size: 12px; padding: 10px 8px; }
    .news-grid { grid-template-columns: 1fr; }
    .news-featured .news-image { height: 200px; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .score-card .team .score { font-size: 18px; }
    .hero-section { padding: 20px 0; }
    .section-title { font-size: 18px; }
    .footer-grid { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 24px; }
    .page-header { padding: 25px 0; }
    .scroll-top { bottom: 15px; right: 15px; width: 40px; height: 40px; font-size: 18px; }
}
