/* Base and Variables */
:root {
    --val-red: #ff4655;
    --val-dark: #111111;
    --val-darker: #0f1923;
    --val-white: #ece8e1;
    --val-grey: #8b978f;
    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-padding-top: 100px; /* Zabranuje prekyvavani navbaru */
}

body {
    background-color: var(--val-darker);
    color: var(--val-white);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, .logo-text, .section-title {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(15, 25, 35, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--val-red);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 2rem;
    color: var(--val-red);
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--val-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

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

.nav-links a:hover {
    color: var(--val-red);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--val-darker) 0%, var(--val-dark) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background-color: var(--val-red);
    transform: rotate(25deg);
    z-index: 0;
    opacity: 0.05;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

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

.goat-logo-placeholder {
    font-size: 6rem;
    background-color: var(--val-red);
    width: 150px;
    height: 150px;
    line-height: 150px;
    border-radius: 50%;
    margin: 0 auto;
    border: 4px solid var(--val-white);
    box-shadow: 0 0 30px rgba(255, 70, 85, 0.4);
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1rem;
    letter-spacing: 4px;
    text-shadow: 4px 4px 0 var(--val-red);
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--val-grey);
    margin-bottom: 3rem;
    animation: fadeIn 1.5s ease;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--val-red);
    color: var(--val-white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, background-color 0.2s;
    border: 1px solid var(--val-red);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--val-white);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    color: var(--val-darker);
}

.cta-button:hover::before {
    left: 0;
}

/* Sections */
.roster-section, .about-section {
    padding: 100px 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 4rem;
    color: var(--val-red);
    position: relative;
    display: inline-block;
}

.section-line {
    height: 4px;
    width: 100px;
    background-color: var(--val-white);
    margin-top: 1rem;
}

/* Roster Grid */
.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.player-card {
    background-color: var(--val-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.player-card:hover {
    transform: translateY(-10px);
    border-color: var(--val-red);
}

.player-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background-color: var(--val-red);
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
}

.player-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.bg-red { background-color: #3b191c; }
.bg-black { background-color: #1a1a1a; }

.player-info {
    padding: 1.5rem;
}

.player-role {
    color: var(--val-red);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.player-name {
    font-size: 2.5rem;
    margin: 0.5rem 0;
}

.player-mains {
    color: var(--val-grey);
    font-size: 0.9rem;
}

/* About Section */
.about-section {
    background-color: var(--val-white);
    color: var(--val-darker);
    max-width: 100%;
    padding: 100px 10%;
    position: relative;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 4rem;
    color: var(--val-red);
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-box {
    background-color: var(--val-darker);
    color: var(--val-white);
    padding: 2rem;
    text-align: center;
    border-left: 4px solid var(--val-red);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--val-red);
}

.stat-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--val-dark);
    border-top: 1px solid rgba(255, 70, 85, 0.2);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--val-red);
    margin-bottom: 1rem;
}

.social-links {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    color: var(--val-white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--val-red);
}

.copyright {
    color: var(--val-grey);
    font-size: 0.9rem;
}

/* Legacy Section */
.legacy-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.legacy-column h3 {
    font-size: 2.5rem;
    color: var(--val-white);
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 70, 85, 0.3);
    padding-bottom: 1rem;
}

.match-list, .milestone-list {
    list-style: none;
    padding: 0;
}

.match-list li, .milestone-list li {
    background-color: var(--val-dark);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--val-grey);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.match-list li:hover, .milestone-list li:hover {
    transform: translateX(10px);
}

.match-result {
    font-family: var(--font-heading);
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    margin-right: 1rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.win {
    background-color: var(--val-red);
    color: var(--val-white);
}

.loss {
    background-color: #333;
    color: var(--val-grey);
}

.match-score {
    margin-left: auto;
    font-weight: 800;
    color: var(--val-white);
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 3rem;
    }
    .section-title {
        font-size: 3rem;
    }
    .about-section {
        clip-path: none;
        padding: 50px 2rem;
    }
    .legacy-container {
        grid-template-columns: 1fr;
    }
}

/* Match Cards Responsive */
.match-card { text-decoration: none; display: flex; justify-content: space-between; align-items: center; background-color: var(--val-dark); border: 2px solid rgba(255, 255, 255, 0.1); padding: 1.5rem 2rem; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.match-card:hover { transform: translateY(-3px); }
.match-card.featured { border-color: var(--val-red); box-shadow: 0 0 15px rgba(255, 70, 85, 0.2); }
.match-card.featured:hover { box-shadow: 0 0 25px rgba(255, 70, 85, 0.4); }
.match-card-team-1, .match-card-team-2 { flex: 1; font-family: var(--font-heading); font-size: 2rem; }
.match-card-team-1 { text-align: right; color: var(--val-white); }
.match-card-team-2 { text-align: left; color: var(--val-white); }
.match-card-info { flex: 0 0 220px; text-align: center; position: relative; padding: 0 1rem; }
.match-card-badge { flex: 0 0 100px; text-align: right; }
@media (max-width: 768px) {
  .match-card { flex-direction: column; gap: 1.5rem; text-align: center; }
  .match-card-team-1 { text-align: center; font-size: 2.5rem; }
  .match-card-team-2 { text-align: center; font-size: 1.8rem; }
  .match-card-info { flex: auto; }
  .match-card-badge { flex: auto; text-align: center; }
}

/* Fade In Up Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* FAQ Accordion Styles */
.faq-item {
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--val-red);
    background-color: var(--val-dark);
    border-radius: 0 8px 8px 0;
    overflow: hidden;
}
.faq-question {
    padding: 1.5rem;
    font-size: 1.4rem;
    color: var(--val-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    user-select: none;
    transition: background-color 0.2s;
}
.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
.faq-icon {
    color: var(--val-red);
    font-size: 1.5rem;
    transition: transform 0.3s;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.faq-answer-inner {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--val-grey);
    line-height: 1.6;
}
