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

body {
    font-family: 'Open Sans', sans-serif;
    background: #121212;
    color: #e0e0e0;
    line-height: 1.6;
}

h1, h2, h3, .logo, .btn {
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #c9a84c;
    transition: color 0.3s;
}

a:hover {
    color: #e5c87b;
}

/* Header */
header {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #2a2a2a;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.8rem;
    color: #c9a84c;
    letter-spacing: 2px;
}

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

nav a {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    color: #ccc;
    font-size: 0.95rem;
}

nav a:hover {
    color: #c9a84c;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2416 100%);
    text-align: center;
    padding: 100px 20px 80px;
    border-bottom: 3px solid #c9a84c;
}

.hero h1 {
    font-size: 3.5rem;
    color: #c9a84c;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 35px;
    color: #ccc;
}

.btn {
    display: inline-block;
    background: #c9a84c;
    color: #121212;
    padding: 14px 35px;
    font-size: 1rem;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background: #e5c87b;
    color: #000;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
    background: #2a2a2a;
    color: #c9a84c;
    border: 1px solid #c9a84c;
    display: inline-block;
}

.btn-sm:hover {
    background: #c9a84c;
    color: #121212;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background: #181818;
}

.section h2 {
    font-size: 2.2rem;
    color: #c9a84c;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #c9a84c;
}

.subtitle {
    color: #aaa;
    margin-bottom: 30px;
}

/* News grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.news-card {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    padding: 25px;
    border-radius: 6px;
    transition: border-color 0.3s;
}

.news-card:hover {
    border-color: #c9a84c;
}

.news-date {
    font-size: 0.85rem;
    color: #c9a84c;
    margin-bottom: 10px;
    font-weight: 600;
}

.news-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #f0f0f0;
}

.news-card p {
    color: #b0b0b0;
    margin-bottom: 15px;
}

.read-more {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Materials */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.material-card {
    background: #1e1e1e;
    padding: 30px 20px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid #2a2a2a;
    transition: border-color 0.3s, transform 0.2s;
    color: #ccc;
    display: block;
}

.material-card:hover {
    border-color: #c9a84c;
    transform: translateY(-5px);
    color: #f0f0f0;
}

.material-card i {
    font-size: 2.2rem;
    color: #c9a84c;
    margin-bottom: 15px;
}

.material-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.material-card p {
    font-size: 0.9rem;
    color: #aaa;
}

/* Links */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.link-card {
    background: #1e1e1e;
    padding: 25px 15px;
    text-align: center;
    border-radius: 6px;
    font-family: 'Cinzel', serif;
    font-weight: 500;
    letter-spacing: 1px;
    border: 1px solid #2a2a2a;
    transition: all 0.3s;
    color: #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.link-card i {
    font-size: 1.8rem;
    color: #c9a84c;
}

.link-card:hover {
    background: #2a2a2a;
    border-color: #c9a84c;
    color: #f0f0f0;
}

/* Footer */
footer {
    background: #0a0a0a;
    text-align: center;
    padding: 30px 20px;
    color: #666;
    font-size: 0.85rem;
    border-top: 1px solid #222;
}

footer p {
    margin-bottom: 5px;
}

/* Tournaments list */
.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tournament-card {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    padding: 25px;
    border-radius: 6px;
    transition: border-color 0.3s, transform 0.2s;
    color: #ccc;
    text-decoration: none;
    display: block;
}

.tournament-card:hover {
    border-color: #c9a84c;
    transform: translateY(-3px);
    color: #f0f0f0;
}

.tournament-date {
    font-size: 0.85rem;
    color: #c9a84c;
    font-weight: 600;
}

.tournament-card h3 {
    margin: 10px 0 5px;
    font-family: 'Cinzel', serif;
    color: #f0f0f0;
}

.badge {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    background: #c9a84c;
    color: #121212;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
}

.upcoming {
    opacity: 0.7;
    pointer-events: none;
}

.upcoming-badge {
    background: #555;
}

/* Tournament single page */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
    color: #c9a84c;
}

.divider {
    border: none;
    border-top: 1px solid #2a2a2a;
    margin: 30px 0;
}

/* Player details (accordion) */
.player-details {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    margin-bottom: 8px;
    overflow: hidden;
}

.player-details summary {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.player-details summary::-webkit-details-marker {
    display: none;
}

.player-details summary:hover {
    background: #252525;
}

.player-name {
    font-weight: 600;
    color: #f0f0f0;
}

.player-army {
    font-style: italic;
    color: #aaa;
    font-size: 0.9rem;
}

.roster {
    padding: 0 20px 20px;
    background: #181818;
    border-top: 1px solid #2a2a2a;
}

.roster h4 {
    margin: 15px 0 5px;
    color: #c9a84c;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
}

.roster pre {
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: #111;
    padding: 10px;
    border-radius: 4px;
    color: #ccc;
    margin-top: 5px;
}

/* Results table */
.bcp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
}

.bcp-table th {
    background: #2c2416;
    color: #c9a84c;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #c9a84c;
}

.bcp-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #2a2a2a;
    color: #ddd;
}

.bcp-table .rank {
    font-weight: 700;
    font-size: 1.1rem;
    color: #c9a84c;
}

.bcp-table .points {
    font-weight: 700;
    color: #e5c87b;
}

.bcp-table tbody tr:hover {
    background: #2a2a2a;
}

.win {
    color: #4caf50;
    font-weight: 700;
}

.loss {
    color: #f44336;
    font-weight: 700;
}

.draw {
    color: #ffb300;
    font-weight: 700;
}

.result-cell {
    width: 40px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 10px;
    }
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}
