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

/* Variables */
:root {
    --primary-color: #2b2d42;
    --secondary-color: #ef233c;
    --accent-color: #4361ee;
    --accent-dark: #3451d1;
    --light-color: #edf2f4;
    --dark-color: #1a1b26;
    --gray-color: #8d99ae;
    --success-color: #2ecc71;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    /* Dark theme colors by default */
    --bg-color: #121212;
    --bg-card: #1e1e1e;
    --bg-main: #1a1a1a;
    --card-color: #1e1e1e;
    --text-color: #edf2f4;
    --text-primary: #edf2f4;
    --text-secondary: #8d99ae;
    --border-color: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Light Mode */
.light-mode {
    --bg-color: #f5f5f5;
    --bg-card: #fff;
    --bg-main: #f0f0f0;
    --card-color: #fff;
    --text-color: var(--dark-color);
    --text-primary: var(--dark-color);
    --text-secondary: #666;
    --border-color: rgba(0, 0, 0, 0.1);
    --border: rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    color: var(--light-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    white-space: nowrap;
}

.logo span {
    color: var(--secondary-color);
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

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

nav a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    position: relative;
}

nav a:hover {
    color: var(--secondary-color);
}

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

nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Search */
.search-container {
    position: relative;
    min-width: 250px;
}

.search-container form {
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: none;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.search-btn {
    background: none;
    border: none;
    color: var(--light-color);
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: color 0.3s;
}

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

/* Dark mode toggle */
.dark-mode-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.dark-mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    padding: 4rem 0;
    margin-bottom: 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--light-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.hero .btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.hero .btn:hover {
    background-color: #d81b33;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Links */
a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

.read-more {
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s;
}

.read-more:hover {
    color: var(--accent-dark);
    transform: translateX(5px);
}

/* News Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.news-card {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

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

.news-card-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.4;
}

.news-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-color);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

/* Table (Tabelle) Styles */
.section-title {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.team-name {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.champion {
    background-color: rgba(46, 204, 113, 0.1);
}

.champions-league {
    background-color: rgba(67, 97, 238, 0.1);
}

.relegation {
    background-color: rgba(239, 35, 60, 0.1);
}

.table-container {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.standings-table th,
.standings-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.standings-table th {
    background-color: var(--bg-main);
    color: var(--text-color);
    font-weight: 600;
    white-space: nowrap;
}

.standings-table tr:last-child td {
    border-bottom: none;
}

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

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

.standings-table td {
    color: var(--text-color);
}

/* Stats Section */
.stats-section {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

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

.stat-card {
    background-color: var(--bg-main);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Article Page Styles */
.article-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.article-main {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.article-header {
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-color);
    font-size: 0.9rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.article-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.article-content br {
    display: block;
    content: "";
    margin: 2rem 0;
}

.article-content strong {
    color: var(--accent-color);
    font-weight: 600;
}

.article-tags {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.article-tag {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.article-tag:hover {
    background-color: var(--accent-color);
    color: var(--light-color);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-color);
}

.related-posts-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.related-post-item {
    display: flex;
    gap: 1rem;
    align-items: start;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.related-post-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    transform: translateX(5px);
}

.related-post-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-image {
    transform: scale(1.05);
}

.related-post-content {
    flex: 1;
    min-width: 0;
}

.related-post-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-post-content h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-post-content h4 a:hover {
    color: var(--secondary-color);
}

.related-post-content span {
    color: var(--gray-color);
    font-size: 0.85rem;
    display: block;
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.comments {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.comment {
    display: flex;
    gap: 1.5rem;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--gray-color);
    flex-shrink: 0;
}

.comment-content {
    flex-grow: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.comment-author {
    font-weight: 600;
    color: var(--text-color);
}

.comment-date {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.comment-text {
    color: var(--text-color);
    line-height: 1.6;
}

.comment-form {
    margin-top: 2rem;
}

.comment-form h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.comment-form textarea {
    width: 100%;
    height: 120px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin-bottom: 1rem;
    resize: vertical;
    font-family: inherit;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

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

.footer-about {
    grid-column: span 1;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--light-color);
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.footer-about p {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-color);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    position: relative;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--light-color);
    transform: translateX(5px);
}

.footer-newsletter p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.footer-newsletter input {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light-color);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.footer-newsletter input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-newsletter input::placeholder {
    color: var(--gray-color);
}

.footer-newsletter .btn {
    background-color: var(--secondary-color);
    border: none;
    color: var(--light-color);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-newsletter .btn:hover {
    background-color: #d81b33;
    transform: translateY(-2px);
}

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

.copyright p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #d81b33;
    transform: translateY(-3px);
}

/* Compare Button Styles */
.compare-btn {
    background-color: var(--accent-color);
    color: var(--light-color);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.compare-btn:hover {
    background-color: #3451d1;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.compare-btn:active {
    transform: translateY(0);
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Match Day Styles */
.match-day {
    margin: 3rem 0;
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.match-card {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.match-date {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.match-team {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.match-team:last-child {
    justify-content: flex-end;
    text-align: right;
}

.team-badge {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.match-vs {
    color: var(--gray-color);
    font-weight: 500;
}

.match-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Advertisement Styles */
.ad-widget {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    position: relative;
}

.ad-widget p {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 0.7rem;
    color: var(--gray-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-placeholder {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
    font-weight: 500;
    min-height: 90px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-container {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .article-main {
        padding: 1.5rem;
    }

    .article-header h1 {
        font-size: 1.75rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .comment {
        flex-direction: column;
        gap: 1rem;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
    }

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

@media (max-width: 480px) {
    .article-main {
        padding: 1rem;
    }

    .article-header h1 {
        font-size: 1.5rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .related-post-item {
        flex-direction: column;
    }

    .related-post-image {
        width: 100%;
        height: 150px;
    }

    .header-container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}
