/* Reset și variabile */
:root {
    --primary: #000000;
    --secondary: #ffffff;
    --accent: #16a34a;
    --accent-light: #dcfce7;
    --draw: #eab308;
    --draw-light: #fef9c3;
    --loss: #dc2626;
    --loss-light: #fee2e2;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

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

button,
input,
select,
textarea {
    font-family: inherit;
}

/* Accessibility Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus States for Accessibility */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

:root {
    --primary: #000000;
    --secondary: #ffffff;
    --accent: #16a34a;
    --accent-light: #dcfce7;
    --draw: #eab308;
    --draw-light: #fef9c3;
    --loss: #dc2626;
    --loss-light: #fee2e2;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Oswald', sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background: url('fcrapid.jpg') no-repeat center center fixed;
    background-size: cover;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background-color: var(--primary);
    color: var(--secondary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Logo Styling - Container pătrat cu colțuri rotunjite pentru branding digital */
/* Logo principal (header) și logo secundar (footer) */

.shield-logo {
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
    overflow: hidden;

    /* Fundal alb + border gris — ca în poză */
    background: #ffffff;
    border: 2px solid #d1d5db;

    /* Centreaza logo-ul */
    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.shield-logo:hover {
    background: #f3f4f6;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

/* Logo mare pentru hero section */
.shield-logo.large {
    width: 10rem;
    height: 10rem;
    border-radius: 1rem;
    background: #ffffff;
    border: 3px solid #d1d5db;
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.32);
    animation: float 3s ease-in-out infinite;
}

.shield-logo.large:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38);
}

@keyframes float {

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

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

/* Imaginea logo-ului - centrat în container fără decupare */
.logo-image {
    width: 92%;
    height: 92%;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shield-logo:hover .logo-image {
    transform: scale(1.05);
}

/* Logo pentru footer - stil secundar */
.footer-logo .shield-logo {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background: #ffffff;
    border: 2px solid #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.footer-logo .shield-logo:hover {
    background: #f3f4f6;
}

/* Compatibilitate SVG (dacă se folosește) */
.shield-logo svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    display: none;
}

.shield-logo.large .logo-text {
    font-size: 1.5rem;
}

.header-title .h1-style {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.header-title p {
    font-size: 0.875rem;
    color: var(--gray-300);
    opacity: 0.9;
}

/* Navigation */
.nav-desktop {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-btn {
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 1rem;
    font-family: 'Oswald', sans-serif;
    cursor: pointer;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-btn:hover {
    color: var(--gray-300);
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.nav-btn:hover::after {
    width: 100%;
}

.nav-btn.active {
    color: var(--gray-300);
}

.nav-btn.active::after {
    width: 100%;
}

.donate-btn {
    background-color: var(--secondary);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.donate-btn:hover {
    background-color: var(--gray-200);
    color: var(--primary);
}

.donate-btn::after {
    display: none;
}

/* Mobile Menu */
.menu-toggle {
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: var(--primary);
    padding: 1rem;
    gap: 1rem;
    border-top: 1px solid var(--gray-700);
}

.mobile-menu.active {
    display: flex;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        height: 700px;
    }
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--secondary);
    padding: 2rem 1rem;
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 48rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 400px;
}

/* Tabelul Ligii pe mijloc (full width) pe mobil */
.hero-buttons button[data-section="tabel"] {
    grid-column: span 2;
}

@media (min-width: 640px) {
    .hero-buttons {
        display: flex;
        flex-direction: row;
        max-width: none;
    }
}

.hero-buttons button {
    background-color: var(--secondary);
    color: var(--primary);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Oswald', sans-serif;
}

.hero-buttons button:hover {
    background-color: var(--gray-200);
    transform: scale(1.05);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--primary);
    font-family: 'Oswald', sans-serif;
}

.btn-primary:hover {
    background-color: var(--gray-200);
    transform: scale(1.05);
}

.btn-primary[data-section="donatii"] {
    background-color: var(--secondary);
    color: var(--primary);
}

.btn-primary[data-section="donatii"]:hover {
    background-color: var(--gray-200);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--secondary);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-family: 'Oswald', sans-serif;
}

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

/* Sections */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 3rem;
    }
}

.section-header p {
    color: var(--gray-600);
    max-width: 42rem;
    margin: 0 auto;
}

.heart-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    color: var(--secondary);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* League Table */
.league-table {
    background-color: var(--gray-50);
    padding: 5rem 0;
}

.table-container {
    overflow-x: auto;
    margin-top: 2rem;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    background: var(--secondary);
}

.league-table-content {
    width: 100%;
    border-collapse: collapse;
}

.league-table-content thead {
    background: var(--primary);
    color: var(--secondary);
}

.league-table-content thead th {
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: bold;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.league-table-content tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: background-color 0.2s ease;
}

.league-table-content tbody tr:hover {
    background-color: var(--gray-50);
}

.league-table-content tbody tr:nth-child(1) {
    background-color: #f0fdf4;
    /* green-50 */
}

.league-table-content tbody tr:nth-child(2) {
    background-color: #f0f9ff;
    /* blue-50 */
}

.league-table-content tbody tr:nth-child(3) {
    background-color: #fef3c7;
    /* amber-50 */
}

.league-table-content tbody tr:last-child {
    border-bottom: none;
}

.league-table-content tbody td {
    padding: 1rem;
    font-size: 0.875rem;
}

.position-column {
    width: 80px;
    text-align: center !important;
    font-size: 1.125rem !important;
}

.team-column {
    min-width: 200px;
    font-weight: 500;
}

.games-column,
.wins-column,
.draws-column,
.losses-column,
.goals-column,
.points-column {
    width: 100px;
    text-align: center !important;
}

.league-table-content tbody .points-column {
    font-size: 0.875rem;
    color: var(--primary);
    min-width: 70px;
}

.tooltip {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-left: 0.25rem;
}

/* Highlight FC Rapid Marinesti */
.league-table-content tbody tr.fc-rapid {
    font-weight: bold;
    background-color: rgba(22, 163, 74, 0.1) !important;
}

.league-table-content tbody tr.fc-rapid .team-column {
    color: var(--accent);
    font-weight: bold;
}

.league-table-content tbody tr.fc-rapid:hover {
    background-color: rgba(22, 163, 74, 0.15) !important;
}

/* Game Summaries */
.game-summaries {
    background-color: var(--gray-50);
}

.game-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .game-cards {
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .game-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .game-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

.game-card {
    background-color: var(--secondary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
    border-top: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-card:hover {
    box-shadow: var(--shadow-lg);
}

.game-card-header {
    padding: 0.5rem 0.75rem;
    text-align: center;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    font-size: 0.65rem;
}

@media (min-width: 480px) {
    .game-card-header {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }
}

@media (min-width: 768px) {
    .game-card-header {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

.victory-header {
    background-color: var(--accent);
}

.draw-header {
    background-color: var(--draw);
}

.loss-header {
    background-color: var(--loss);
}

.game-card-content {
    padding: 0.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 480px) {
    .game-card-content {
        padding: 1rem;
    }
}

@media (min-width: 768px) {
    .game-card-content {
        padding: 1.5rem;
    }
}

.game-card-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    font-size: 0.65rem;
}

@media (min-width: 480px) {
    .game-card-date {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) {
    .game-card-date {
        font-size: 0.875rem;
    }
}

.game-card-date svg {
    width: 0.75rem;
    height: 0.75rem;
    color: var(--primary);
    flex-shrink: 0;
}

@media (min-width: 480px) {
    .game-card-date svg {
        width: 1rem;
        height: 1rem;
    }
}

.game-card-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.2;
}

@media (min-width: 480px) {
    .game-card-title {
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
    }
}

@media (min-width: 768px) {
    .game-card-title {
        font-size: 1rem;
    }
}

.game-card-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    font-size: 0.6rem;
}

@media (min-width: 480px) {
    .game-card-location {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) {
    .game-card-location {
        margin-bottom: 1rem;
        font-size: 0.875rem;
    }
}

.game-card-location svg {
    width: 0.75rem;
    height: 0.75rem;
    color: var(--primary);
    flex-shrink: 0;
}

@media (min-width: 480px) {
    .game-card-location svg {
        width: 1rem;
        height: 1rem;
    }
}

.game-card-score {
    text-align: center;
    padding: 0.5rem;
    background-color: var(--gray-100);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

@media (min-width: 480px) {
    .game-card-score {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
}

@media (min-width: 768px) {
    .game-card-score {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

.game-card-score span {
    font-size: 1.25rem;
    font-weight: bold;
}

@media (min-width: 480px) {
    .game-card-score span {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    .game-card-score span {
        font-size: 1.875rem;
    }
}

.game-card-description {
    color: var(--gray-600);
    font-size: 0.6rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

@media (min-width: 480px) {
    .game-card-description {
        font-size: 0.75rem;
        line-height: 1.4;
        -webkit-line-clamp: 4;
    }
}

@media (min-width: 768px) {
    .game-card-description {
        font-size: 0.875rem;
        line-height: 1.5;
        -webkit-line-clamp: none;
        display: block;
    }
}

.game-card-footer {
    padding: 0.5rem 0.75rem;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

@media (min-width: 480px) {
    .game-card-footer {
        padding: 0.75rem 1rem;
    }
}

@media (min-width: 768px) {
    .game-card-footer {
        padding: 0.75rem 1.5rem;
    }
}

.game-card-footer svg {
    width: 1rem;
    height: 1rem;
    color: var(--secondary);
}

@media (min-width: 480px) {
    .game-card-footer svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Scores */
.scores {
    background-color: var(--secondary);
}

/* Table Styles */
.scores-table.desktop {
    display: none;
    overflow-x: auto;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

@media (min-width: 768px) {
    .scores-table.desktop {
        display: block;
    }
}

.scores-table table {
    width: 100%;
    border-collapse: collapse;
}

.scores-table thead {
    background-color: var(--primary);
    color: var(--secondary);
}

.scores-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 500;
}

.scores-table th.text-right {
    text-align: right;
}

.scores-table th.text-center {
    text-align: center;
}

.scores-table tbody tr {
    transition: background-color 0.3s ease;
}

.scores-table tbody tr:nth-child(even) {
    background-color: var(--gray-50);
}

.scores-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.scores-table td {
    padding: 1rem 1.5rem;
    color: var(--gray-700);
}

.scores-table td.text-center {
    text-align: center;
}

.scores-table td.text-right {
    text-align: right;
}

.score-cell {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.result-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.result-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.victory-icon {
    color: var(--accent);
}

.draw-icon {
    color: var(--draw);
}

.loss-icon {
    color: var(--loss);
}

.result-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--secondary);
}

.victory-badge {
    background-color: var(--accent);
}

.draw-badge {
    background-color: var(--draw);
}

.loss-badge {
    background-color: var(--loss);
}

/* Mobile Score Cards */
.scores-cards.mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 480px) {
    .scores-cards.mobile {
        gap: 0.75rem;
    }
}

@media (min-width: 768px) {
    .scores-cards.mobile {
        display: none;
    }
}

.score-card {
    background-color: var(--secondary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.score-card-header {
    background-color: var(--primary);
    color: var(--secondary);
    padding: 0.4rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

@media (min-width: 480px) {
    .score-card-header {
        padding: 0.5rem 0.75rem;
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }
}

.score-card-header span:first-child {
    font-size: 0.6rem;
}

@media (min-width: 480px) {
    .score-card-header span:first-child {
        font-size: 0.75rem;
    }
}

.score-card-header span:last-child {
    font-size: 0.55rem;
    opacity: 0.75;
}

@media (min-width: 480px) {
    .score-card-header span:last-child {
        font-size: 0.65rem;
    }
}

.score-card-content {
    padding: 0.5rem;
}

@media (min-width: 480px) {
    .score-card-content {
        padding: 0.75rem;
    }
}

.score-card-teams {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.25rem;
}

@media (min-width: 480px) {
    .score-card-teams {
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: 0.75rem;
        gap: 0;
    }
}

.team-home {
    flex: 1;
    text-align: center;
    padding: 0;
}

@media (min-width: 480px) {
    .team-home {
        text-align: right;
        padding-right: 0.5rem;
    }
}

.team-away {
    flex: 1;
    text-align: center;
    padding: 0;
}

@media (min-width: 480px) {
    .team-away {
        text-align: left;
        padding-left: 0.5rem;
    }
}

.team-home p,
.team-away p {
    font-weight: 500;
    font-size: 0.6rem;
    line-height: 1.2;
}

@media (min-width: 480px) {

    .team-home p,
    .team-away p {
        font-size: 0.75rem;
    }
}

.score-display {
    background-color: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
}

@media (min-width: 480px) {
    .score-display {
        padding: 0.4rem 0.75rem;
    }
}

.score-display span {
    font-size: 1rem;
    font-weight: bold;
}

@media (min-width: 480px) {
    .score-display span {
        font-size: 1.25rem;
    }
}

.score-card-scorers {
    border-top: 1px solid var(--gray-200);
    padding-top: 0.5rem;
}

.score-card-scorers p {
    font-size: 0.55rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

@media (min-width: 480px) {
    .score-card-scorers p {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
    }
}

.score-card-scorers span {
    color: var(--primary);
    font-weight: 500;
}

.score-card-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

@media (min-width: 480px) {
    .score-card-result {
        gap: 0.5rem;
        margin-top: 0.75rem;
    }
}

.score-card-result .result-badge {
    font-size: 0.5rem;
    padding: 0.15rem 0.4rem;
}

@media (min-width: 480px) {
    .score-card-result .result-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-card {
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    border: 2px solid;
}

.stat-card:first-child {
    background-color: var(--accent-light);
    border-color: var(--accent);
}

.stat-card:nth-child(2) {
    background-color: var(--draw-light);
    border-color: var(--draw);
}

.stat-card:last-child {
    background-color: var(--loss-light);
    border-color: var(--loss);
}

.stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 0.75rem;
}

.stat-card:first-child .stat-icon {
    color: var(--accent);
}

.stat-card:nth-child(2) .stat-icon {
    color: var(--draw);
}

.stat-card:last-child .stat-icon {
    color: var(--loss);
}

.stat-number {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stat-card:first-child .stat-number {
    color: var(--accent);
}

.stat-card:nth-child(2) .stat-number {
    color: var(--draw);
}

.stat-card:last-child .stat-number {
    color: var(--loss);
}

.stat-label {
    color: var(--gray-600);
}

/* Donations */
.donations {
    background: linear-gradient(135deg, var(--primary), var(--gray-700));
    color: var(--secondary);
    position: relative;
    overflow: hidden;
}

.donations::before,
.donations::after {
    content: '';
    position: absolute;
    opacity: 0.1;
    width: 16rem;
    height: 16rem;
}

.donations::before {
    top: 2.5rem;
    left: 2.5rem;
}

.donations::after {
    bottom: 2.5rem;
    right: 2.5rem;
}

.donations::before svg,
.donations::after svg {
    width: 100%;
    height: 100%;
}

.donation-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .donation-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.donation-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.donation-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    color: var(--secondary);
}

.donation-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.donation-card p {
    font-size: 0.875rem;
    opacity: 0.8;
}

.donation-cta {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .donation-cta {
        padding: 3rem;
    }
}

.quote {
    text-align: center;
    margin-bottom: 2rem;
}

.quote p:first-child {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .quote p:first-child {
        font-size: 1.75rem;
    }
}

.quote-author {
    color: var(--gray-300);
    font-style: italic;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.cta-subtext {
    font-size: 0.875rem;
    opacity: 0.75;
}

.contact-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info p:first-child {
    font-size: 0.875rem;
    opacity: 0.75;
    margin-bottom: 0.5rem;
}

.contact-info p:not(:first-child) {
    color: var(--gray-300);
}

.donation-note {
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.75;
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: var(--secondary);
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.footer-title p {
    font-size: 0.875rem;
    opacity: 0.75;
}

.footer-description {
    font-size: 0.875rem;
    opacity: 0.75;
    line-height: 1.6;
}

.footer-slogan {
    font-size: 0.875rem;
    color: var(--gray-300);
    font-style: italic;
}

.footer-contact h4,
.footer-social h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-item svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.contact-item p {
    font-size: 0.875rem;
}

.contact-item div p:last-child {
    opacity: 0.75;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 9999px;
    color: var(--secondary);
    transition: all 0.3s ease;
}

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

.social-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.875rem;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    color: var(--gray-300);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    font-size: 0.875rem;
    opacity: 0.75;
}

.footer-heart {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-heart svg {
    width: 1rem;
    height: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--secondary);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-600);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-content h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-content>p {
    margin-bottom: 1.5rem;
    color: var(--gray-600);
}

.donation-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .donation-options {
        grid-template-columns: repeat(4, 1fr);
    }
}

.donation-option {
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.donation-option:hover {
    border-color: var(--primary);
    background-color: var(--gray-50);
}

.donation-option.active {
    border-color: var(--accent);
    background-color: var(--accent-light);
    color: var(--accent);
    font-weight: 500;
}

.custom-donation {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .custom-donation {
        flex-direction: row;
    }
}

#customAmount {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
}

#customAmount:focus {
    outline: none;
    border-color: var(--primary);
}

.custom-donation .btn-primary {
    white-space: nowrap;
}

.donation-methods {
    margin-bottom: 1.5rem;
}

.donation-methods h3 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.payment-method {
    padding: 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    text-align: center;
    font-size: 0.875rem;
    background-color: var(--gray-50);
    transition: all 0.3s ease;
}

.payment-method strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.payment-method p {
    margin: 0.25rem 0;
    color: var(--gray-600);
    font-size: 0.8rem;
}

.payment-method.patreon-link {
    text-decoration: none;
    cursor: pointer;
    border-color: #f96854;
    background-color: #fff5f3;
}

.payment-method.patreon-link:hover {
    background-color: #f96854;
    color: white;
}

.payment-method.patreon-link:hover strong,
.payment-method.patreon-link:hover p {
    color: white;
}

.modal-note {
    font-size: 0.875rem;
    color: var(--gray-600);
    text-align: center;
}

/* Modal pentru imagini */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.image-modal.active {
    display: flex;
    animation: none;
    transition: none;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius);
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: none;
    transition: opacity 0.2s ease;
    opacity: 1;
}

.image-modal-close {
    position: absolute;
    top: -3rem;
    right: -3rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--primary);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.image-modal-close:hover {
    background-color: white;
}

@media (max-width: 768px) {
    .image-modal-close {
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* Responsive Logo Adjustments */
@media (max-width: 768px) {
    .shield-logo {
        width: 2.5rem;
        height: 2.5rem;
    }

    .shield-logo.large {
        width: 7.5rem;
        height: 7.5rem;
    }
}

@media (max-width: 480px) {
    .shield-logo {
        width: 2.25rem;
        height: 2.25rem;
    }

    .shield-logo.large {
        width: 6rem;
        height: 6rem;
    }
}

/* Galerie */
.galerie {
    background-color: var(--gray-50);
    padding: 5rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    display: block;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Gallery Arhiva Button */
.gallery-arhiva-btn {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.btn-arhiva {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--primary);
    color: var(--secondary);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.btn-arhiva:hover {
    background-color: var(--gray-700);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-arhiva svg {
    transition: transform 0.3s ease;
}

.btn-arhiva:hover svg {
    transform: scale(1.1);
}

/* Next Match Countdown */
.next-match {
    background-color: var(--gray-100);
    padding: 3rem 0;
    text-align: center;
}

#countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    min-width: 60px;
}

.countdown-item span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.countdown-item p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.countdown-separator {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    padding: 0 0.25rem;
}

/* ===== ARHIVA PAGE STYLES ===== */

/* Arhiva Hero */
.arhiva-hero {
    height: 400px;
}

@media (min-width: 768px) {
    .arhiva-hero {
        height: 500px;
    }
}

/* Arhiva Section */
.arhiva-section {
    background-color: var(--gray-50);
    padding: 5rem 0;
}

/* Arhiva Grid */
.arhiva-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
}

@media (min-width: 768px) {
    .arhiva-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Arhiva Card */
.arhiva-card {
    background-color: var(--secondary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary);
    width: 100%;
    max-width: 500px;
}

.arhiva-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.arhiva-card.coming-soon {
    border-top-color: var(--gray-300);
    opacity: 0.85;
}

.arhiva-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--primary);
    color: var(--secondary);
}

.arhiva-card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.arhiva-badge {
    background-color: var(--accent);
    color: var(--secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.arhiva-badge.future {
    background-color: var(--gray-600);
}

.arhiva-badge.present {
    background-color: #22c55e;
}

.arhiva-badge.finished {
    background-color: #2563eb;
}

.arhiva-card-content {
    padding: 1.5rem;
}

/* Arhiva Stats */
.arhiva-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.arhiva-stat {
    text-align: center;
    padding: 1rem 0.5rem;
    background-color: var(--gray-50);
    border-radius: var(--radius);
}

.arhiva-stat .stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.arhiva-stat .stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.arhiva-description {
    color: var(--gray-600);
    line-height: 1.6;
}

.arhiva-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    color: var(--gray-300);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
    padding-left: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 16px;
    height: 16px;
    background-color: var(--secondary);
    border: 4px solid var(--primary);
    border-radius: 50%;
    transform: translateX(-6px);
}

.timeline-date {
    display: inline-block;
    background-color: var(--primary);
    color: var(--secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.timeline-content {
    background-color: var(--secondary);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.timeline-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Navigation link styles for anchor tags */
a.nav-btn {
    text-decoration: none;
    display: inline-block;
}

/* Arhiva Galerie */
.arhiva-galerie {
    grid-column: span 2;
    margin-top: 2rem;
    background-color: var(--secondary);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.arhiva-galerie h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.5rem;
}

.arhiva-galerie .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .arhiva-galerie .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .arhiva-galerie .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.arhiva-galerie .gallery-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.arhiva-galerie .gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Arhiva Image Modal */
.arhiva-image-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.arhiva-image-modal.active {
    display: flex;
}

.arhiva-image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.arhiva-image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.arhiva-image-modal-close {
    position: absolute;
    top: -3rem;
    right: -3rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--primary);
    font-size: 1.75rem;
    cursor: pointer;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease;
}

.arhiva-image-modal-close:hover {
    background-color: white;
}

@media (max-width: 768px) {
    .arhiva-image-modal-close {
        top: 0.5rem;
        right: 0.5rem;
    }

    .arhiva-image-modal-content {
        max-width: 95vw;
        max-height: 85vh;
    }

    .arhiva-image-modal-content img {
        max-height: 80vh;
    }

    .arhiva-galerie {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .arhiva-galerie h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .arhiva-image-modal {
        padding: 0.5rem;
    }

    .arhiva-image-modal-content {
        max-width: 100vw;
        max-height: 90vh;
    }

    .arhiva-image-modal-content img {
        max-height: 85vh;
        border-radius: 0;
    }

    .arhiva-image-modal-close {
        top: 0.25rem;
        right: 0.25rem;
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.5rem;
    }

    .arhiva-galerie {
        padding: 1rem;
        margin-top: 1rem;
    }

    .arhiva-galerie .gallery-grid {
        gap: 0.5rem;
    }

    .arhiva-galerie .gallery-grid img {
        border-radius: 0.25rem;
    }

    .arhiva-galerie .gallery-grid img:hover {
        transform: none;
    }
}