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

:root {
    --primary-color: #1a472a;
    --primary-dark: #0d2818;
    --secondary-color: #2e7d32;
    --accent-color: #4caf50;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray: #e0e0e0;
    --gray-dark: #9e9e9e;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
    --container-width: 1200px;
    --header-height: 75px;
}

html {
    scroll-padding-top: var(--header-height);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--gray-light);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.navbar {
    background-color: var(--primary-color);
    position: relative;
}

.sub-navbar {
    background-color: #000000;
}

.sub-navbar .nav-container {
    height: 40px;
    justify-content: center;
}

.sub-nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.sub-nav-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 10px 15px;
    transition: all 0.2s ease;
    display: block;
}

.sub-nav-menu li a:hover {
    color: var(--accent-color);
    background-color: #222222;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.nav-logo {
    position: absolute;
    left: 20px;
}

.nav-logo a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-cricbuzz {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

.logo-live-score {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
}

.logo-live {
    color: #ff0000;
    font-weight: 700;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.4;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 18px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

.nav-link:hover {
    background-color: var(--secondary-color);
}

.nav-link .arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

/* Submenu */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #000000;
    box-shadow: var(--shadow-lg);
    border-radius: 4px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-item.has-submenu:hover .submenu,
.nav-item.has-submenu.active .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item.has-submenu:hover .nav-link .arrow {
    transform: rotate(180deg);
}

.submenu li a {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.submenu li a:hover {
    background-color: #222222;
    color: var(--accent-color);
    border-left-color: var(--accent-color);
}

.submenu li:first-child a {
    border-radius: 4px 4px 0 0;
}

.submenu li:last-child a {
    border-radius: 0 0 4px 4px;
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    left: 0;
    transition: transform 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-toggle.active .hamburger {
    background-color: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Main Content */
.main-content {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) - 60px);
    padding: 10px 0;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 60px 40px;
    border-radius: 8px;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .nav-toggle {
        display: block;
        z-index: 1002;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background-color: var(--primary-color);
        padding: 20px;
        gap: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link {
        padding: 15px 20px;
        justify-content: space-between;
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.1);
        border-radius: 0;
        transition: max-height 0.3s ease, visibility 0.3s ease;
    }
    
    .nav-item.has-submenu.active .submenu {
        visibility: visible;
        max-height: 500px;
    }
    
    .submenu li a {
        color: var(--white);
        padding: 12px 30px;
        border-left: none;
    }
    
    .submenu li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--white);
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .sub-navbar {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .sub-navbar::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    
    .sub-navbar .nav-container {
        justify-content: flex-start;
        padding: 0 10px;
    }
    
    .sub-nav-menu {
        gap: 5px;
        flex-wrap: nowrap;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .sub-nav-menu::-webkit-scrollbar {
        display: none;
    }
    
    .sub-nav-menu li a {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .sub-nav-menu {
        gap: 0;
    }
    
    .sub-nav-menu li a {
        padding: 10px 10px;
        font-size: 0.75rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 576px) {
    :root {
        --header-height: 80px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .nav-logo a {
        font-size: 1.3rem;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-section h1 {
        font-size: 1.6rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
}

/* Teams Page Styles */
.teams-page,
.teams-list-page,
.team-detail-page {
    padding: 10px 0;
}

.page-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.page-header {
    margin-bottom: 30px;
}

/* Match Card Header - Critical fix */
.match-card .card-header {
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 100%) !important;
    padding: 8px 12px !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    min-height: 35px;
}

.back-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.category-tab:hover {
    border-color: var(--accent-color);
    color: var(--primary-color);
    background: var(--gray-light);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 2px 6px rgba(26, 71, 42, 0.3);
}

.teams-container {
    display: none;
}

.teams-container.active {
    display: block;
}

.teams-container.toggle-hidden {
    display: none;
}

.teams-container.toggle-hidden.active {
    display: block;
}

/* Teams Grid */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.team-flag {
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.team-flag img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.flag-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
}

.team-name {
    color: var(--text-color);
    font-size: 1rem;
    text-align: center;
}

/* Team Detail Page - Breadcrumb */
.team-breadcrumb {
    padding: 10px 0;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.team-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.team-breadcrumb a:hover {
    text-decoration: underline;
}

.team-breadcrumb span {
    color: var(--text-light);
    margin: 0 8px;
}

/* Team Detail Page - Hero Section */
.team-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a5a3a 100%);
    padding: 40px 20px;
    margin: -20px -20px 30px -20px;
    border-radius: 0 0 20px 20px;
}

.team-hero-content {
    display: flex;
    align-items: center;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-flag-hero {
    width: 120px;
    height: 90px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.team-flag-hero img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.flag-placeholder-hero {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    font-weight: bold;
}

.team-info-hero {
    flex: 1;
}

.team-name-hero {
    font-size: 2.5rem;
    color: var(--white);
    margin: 0 0 8px 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.team-category-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive Team Hero */
@media (max-width: 768px) {
    .team-hero {
        padding: 30px 15px;
        margin: -15px -15px 25px -15px;
    }
    
    .team-hero-content {
        gap: 20px;
    }
    
    .team-flag-hero {
        width: 90px;
        height: 70px;
        padding: 8px;
    }
    
    .team-name-hero {
        font-size: 1.8rem;
    }
    
    .team-category-badge {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
}

@media (max-width: 480px) {
    .team-hero {
        padding: 25px 12px;
    }
    
    .team-hero-content {
        gap: 15px;
    }
    
    .team-flag-hero {
        width: 70px;
        height: 55px;
        padding: 6px;
    }
    
    .flag-placeholder-hero {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .team-name-hero {
        font-size: 1.4rem;
    }
    
    .team-category-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}

/* Legacy styles - keep for compatibility */
.team-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.team-flag-large {
    width: 100px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-flag-large img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.flag-placeholder-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
}

.team-title {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Players Section */
.players-section h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray);
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.player-card {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.player-card:hover {
    transform: translateY(-2px);
}

.player-photo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    font-weight: bold;
}

.player-name {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.player-role {
    font-size: 0.8rem;
    color: var(--text-light);
    background: var(--gray-light);
    padding: 3px 10px;
    border-radius: 12px;
}

/* No Data State */
.no-data {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.no-data p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .players-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-header {
        flex-direction: column;
        text-align: center;
    }
    
    .team-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Player Card Link */
.player-card-link {
    text-decoration: none;
    color: inherit;
}

.player-card-link .player-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-card-link:hover .player-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Player Profile Page */
.player-detail-page {
    padding: 20px 0;
}

.player-profile {
    max-width: 1100px;
    margin: 0 auto;
}

.player-profile-header {
    display: flex;
    gap: 30px;
    align-items: center;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    justify-content: space-between;
}

.player-photo-large {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
}

.player-photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
}

.photo-placeholder-large {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
}

.player-flag-large {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.player-flag-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.player-info-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 10px 20px;
    border-radius: 25px;
    margin-top: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.player-info-badge .badge-item {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.player-info-badge .badge-divider {
    color: rgba(255,255,255,0.5);
    margin: 0 12px;
    font-weight: 300;
}

.player-profile-info {
    flex: 1;
}

.player-profile-name {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.player-profile-role {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.player-team-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.team-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 10px 15px;
    border-radius: 10px;
}

.team-badge img {
    width: 30px;
    height: 20px;
    object-fit: contain;
}

.team-badge span {
    font-weight: 600;
    color: var(--text-color);
}

.team-category {
    background: var(--accent-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.player-about-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.player-about-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.player-about-text {
    color: #333;
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
}

.player-details-card {
    background: var(--white);
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.player-details-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg-light);
    font-size: 1.1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .player-profile-header {
        flex-direction: row;
        align-items: center;
        padding: 15px;
        gap: 10px;
    }
    
    .player-photo-large {
        width: 70px;
        height: 70px;
    }
    
    .player-profile-info {
        flex: 1;
    }
    
    .player-profile-name {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    
    .player-info-badge {
        flex-direction: row;
        padding: 5px 10px;
        margin-top: 6px;
    }
    
    .player-info-badge .badge-item {
        font-size: 0.7rem;
    }
    
    .player-info-badge .badge-divider {
        margin: 0 6px;
    }
    
    .player-flag-large {
        width: 50px;
        height: 50px;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.player-stats-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.player-stats-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-light);
}

.career-stats-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.career-stat-half {
    flex: 1;
    min-width: 480px;
}

@media (max-width: 1024px) {
    .career-stats-row {
        flex-direction: column;
    }
    .career-stat-half {
        min-width: 100%;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.stat-item {
    background: linear-gradient(135deg, var(--bg-light), #ffffff);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-not-scraped {
    background: #fff3cd;
    color: #856404;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    border: 1px solid #ffc107;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
}

.stats-table-wrapper {
    overflow-x: auto;
}

.format-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.format-stats-table thead {
    background: var(--primary-color);
    color: white;
}

.format-stats-table th {
    padding: 12px 15px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.format-stats-table th:first-child {
    text-align: left;
    width: 120px;
}

.format-stats-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.format-stats-table tbody tr:hover {
    background: var(--gray-light);
}

.format-stats-table td {
    padding: 10px 15px;
    text-align: center;
}

.format-stats-table td.stat-label {
    text-align: left;
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.format-stats-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.format-stats-table tbody tr:nth-child(even):hover {
    background: var(--gray-light);
}

@media (max-width: 576px) {
    .format-stats-table {
        font-size: 0.8rem;
    }
    
    .format-stats-table th,
    .format-stats-table td {
        padding: 8px 6px;
    }
    
    .format-stats-table th:first-child {
        width: 80px;
    }
}

.timeline-table td.format-label {
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
}

.timeline-table td {
    font-size: 0.9rem;
}

/* Top Stories with Thumbnails */
.top-stories-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-story-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.2s ease;
}

.top-story-item:hover {
    background: var(--gray-light);
}

.top-story-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.top-story-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.top-story-title {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-dark);
}

.top-story-item:hover .top-story-title {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .top-story-thumb {
        width: 50px;
        height: 38px;
    }
    
    .top-story-title {
        font-size: 0.85rem;
    }
}

/* Footer Styles */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-pages h4,
.footer-keywords h4 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-pages ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.footer-pages li {
    margin-bottom: 0;
}

.footer-pages a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-pages a:hover {
    color: var(--accent-color);
}

.footer-links {
    text-align: center;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-keywords p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.footer-bottom-menu a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom-menu a:hover {
    color: var(--accent-color);
}

.footer-bottom-menu span {
    color: #ffffff;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
