:root {
    --palmeiras-green: #006437;
    --palmeiras-light: #25D366;
    --palmeiras-dark: #003d1e;
    --gold: #FFD700;
    --bg-gradient: linear-gradient(135deg, #001510 0%, #002d1f 50%, #004d35 100%);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-gradient);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(37, 211, 102, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(0, 100, 55, 0.2) 0%, transparent 50%),
        var(--bg-gradient);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://upload.wikimedia.org/wikipedia/commons/1/10/Palmeiras_logo.svg') no-repeat center;
    background-size: 400px;
    opacity: 0.03;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.logo-container {
    margin-bottom: 24px;
}

.logo-container img {
    width: 150px;
    height: 150px;
    filter: drop-shadow(0 8px 32px rgba(37, 211, 102, 0.4));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #fff 0%, #c6f6d5 50%, var(--palmeiras-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    font-weight: 500;
}

.temporada-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold) 0%, #ffae00 100%);
    color: #000;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(37, 211, 102, 0.1);
    border-color: var(--palmeiras-light);
}

.stat-card .icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--palmeiras-light);
}

.stat-card .label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--palmeiras-light) 0%, #1ebe5d 100%);
    color: #000;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--palmeiras-light);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Sections */
section {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.section-title i {
    color: var(--palmeiras-light);
}

/* Ranking Section */
.ranking-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.ranking-header {
    background: linear-gradient(135deg, var(--palmeiras-green) 0%, var(--palmeiras-dark) 100%);
    padding: 20px;
    text-align: center;
}

.ranking-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.ranking-list {
    list-style: none;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.ranking-item:hover {
    background: rgba(37, 211, 102, 0.1);
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-position {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-right: 16px;
}

.position-1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
}

.position-2 {
    background: linear-gradient(135deg, #C0C0C0 0%, #A0A0A0 100%);
    color: #000;
}

.position-3 {
    background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%);
    color: #fff;
}

.position-other {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.ranking-name {
    flex: 1;
    font-weight: 600;
}

.ranking-points {
    background: var(--palmeiras-light);
    color: #000;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.ranking-footer {
    padding: 16px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.ranking-footer a {
    color: var(--palmeiras-light);
    text-decoration: none;
    font-weight: 600;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.news-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
    display: block;
}

.news-card:hover {
    transform: translateY(-5px);
    background: rgba(37, 211, 102, 0.08);
    border-color: var(--palmeiras-light);
}

.news-source {
    display: inline-block;
    background: var(--palmeiras-green);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.news-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Videos Section */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.video-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--palmeiras-light);
}

.video-thumbnail {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.video-card:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: #f00;
}

.video-thumbnail .play-icon i {
    color: #fff;
    font-size: 1.5rem;
    margin-left: 4px;
}

.video-info {
    padding: 16px;
}

.video-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-channel {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.5);
}

.loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

footer a {
    color: var(--palmeiras-light);
    text-decoration: none;
}

/* Próximo Jogo */
.next-game {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(0, 100, 55, 0.1) 100%);
    border: 2px solid var(--palmeiras-light);
    border-radius: 20px;
    padding: 24px;
    margin-top: 40px;
    text-align: center;
}

.next-game-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--palmeiras-light);
    margin-bottom: 12px;
}

.next-game-teams {
    font-size: 1.5rem;
    font-weight: 700;
}

.next-game-date {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card .value {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .news-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

/* Auto-refresh indicator */
.refresh-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 100;
}

.refresh-indicator.visible {
    opacity: 1;
}

.refresh-indicator i {
    color: var(--palmeiras-light);
}

/* Mobile Bottom Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 20, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(37, 211, 102, 0.2);
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 1000;
    justify-content: space-around;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    padding: 8px 16px;
    transition: all 0.2s ease;
    gap: 4px;
}

.mobile-nav-item i {
    font-size: 1.3rem;
    transition: transform 0.2s ease;
}

.mobile-nav-item span {
    font-weight: 600;
}

.mobile-nav-item.active {
    color: var(--palmeiras-light);
}

.mobile-nav-item.active i {
    transform: scale(1.1);
}

.mobile-nav-item:hover {
    color: var(--palmeiras-light);
}

/* Show mobile nav only on mobile */
@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
    }

    /* Add padding to footer so content isn't hidden behind nav */
    footer {
        padding-bottom: 100px;
    }

    /* Adjust refresh indicator position */
    .refresh-indicator {
        bottom: 80px;
    }
}