/* assets/css/site.css */

:root {
    --primary: #002f6c;
    /* Navy Blue */
    --primary-light: #004ba0;
    --accent: #d32f2f;
    /* Red */
    --accent-hover: #b71c1c;
    --bg-body: #f1f5f9;
    /* Professional Light Gray */
    --bg-white: #ffffff;
    --text-main: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-stack: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-stack);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons - High End */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 47, 108, 0.2);
    transition: all 0.2s ease;
}

.btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 47, 108, 0.3);
}

.btn-danger {
    background: var(--accent);
    box-shadow: 0 2px 4px rgba(211, 47, 47, 0.2);
}

.btn-danger:hover {
    background: var(--accent-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    box-shadow: none;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* Form Elements - Professional & Clean */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    background: #fff;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 47, 108, 0.1);
    outline: none;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.file-upload-wrapper {
    border: 2px dashed var(--border);
    padding: 1.5rem;
    text-align: center;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    background: #f8fafc;
}

.file-upload-wrapper:hover {
    border-color: var(--primary);
    background: #f0f9ff;
}

/* Header */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

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

.header-main {
    padding: 1.25rem 0;
    border-bottom: 3px solid var(--accent);
}

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

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    line-height: 1;
}

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

.slogan {
    font-size: 0.85rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Adjusted gap */
.nav-links a.nav-item {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    text-transform: uppercase;
    padding: 0.5rem 0;
    position: relative;
}

/* separate class for text links */
.nav-links a.nav-item:hover {
    color: var(--primary);
}

.nav-links a.nav-item::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

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

/* Layouts */
.main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.content-col,
.sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Widgets */
.widget {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
}

/* Writer Block */
.writer-block {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.writer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.writer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.writer-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

.writer-info span {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
    margin-top: 2px;
}

.column-title-link {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    display: block;
    margin-top: 0.3rem;
    line-height: 1.4;
}

.column-title-link:hover {
    color: var(--accent);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: #475569;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: #334155;
}

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

tr:hover td {
    background: #fdfdfd;
}

/* Badges */
.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef9c3;
    color: #854d0e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* Slider, Match... */
.slider-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 450px;
    box-shadow: var(--shadow);
    background: #eee;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
    width: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 4rem 2rem 2rem;
}

.slide-caption h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slider-dots {
    display: flex;
    gap: 8px;
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-img {
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--text-main);
}

.news-meta {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.match-card {
    text-align: center;
}

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

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
}

.team-logo {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-logo img {
    max-width: 100%;
    max-height: 100%;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.info-label {
    color: #64748b;
    font-weight: 600;
}

.info-val {
    color: var(--primary);
    font-weight: 700;
}

/* Mobile Optimization */
@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
        margin-top: 1rem;
    }

    /* Header Compact Mode */
    .header-main {
        padding: 0.5rem 0;
    }

    .header-main .container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.6rem;
    }

    .slogan {
        display: none;
        /* Save space on mobile */
    }

    /* Scrollable Horizontal Nav for News Site Feel */
    .nav-links {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        padding-bottom: 5px;
        /* Space for scrollbar if visible */
        gap: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    /* Hide scrollbar but allow functionality */
    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a.nav-item {
        font-size: 0.85rem;
        padding: 0.5rem 0;
        flex-shrink: 0;
    }

    /* Adjust button in nav */
    .nav-links .btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
}

/* Footer */
.site-footer {
    background: var(--primary);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    font-size: 0.9rem;
}

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

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #93c5fd;
    /* Light blue accent */
    text-transform: uppercase;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: 0.2s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}