/* Main Stylesheet for Chitipa United FC */

:root {
    --primary: #c41e3a;
    --primary-dark: #a01830;
    --secondary: #1a1a2e;
    --secondary-light: #16213e;
    --accent: #ffd700;
    --light: #f8f9fa;
    --dark: #0a0a0a;
    --gray: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --white: #ffffff;
    --black: #000000;
}

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

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

/* Section Styles */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary);
}

.section-title.center {
    text-align: center;
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 3rem;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(196, 30, 58, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-light);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-accent {
    background: var(--accent);
    color: var(--dark);
}

.btn-accent:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-ticket {
    background: var(--accent);
    color: var(--dark);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
    text-decoration: none;
}

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

.btn-login {
    background: var(--secondary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.btn-login:hover {
    background: var(--primary);
    color: var(--white);
}

/* Navigation */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 10, 10, 0.98);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.navbar-brand span {
    color: var(--primary);
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

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

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

.nav-link:hover {
    color: var(--primary) !important;
}

.dropdown-menu {
    background: var(--secondary);
    border: none;
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.dropdown-item {
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--primary);
    color: var(--white);
}

/* Hero Banner */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 76px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(196, 30, 58, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

/* Cards */
.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(196, 30, 58, 0.2);
}

.news-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
}

.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.news-excerpt {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Match Card */
.match-card {
    background: linear-gradient(135deg, var(--secondary), #2a2a3a);
    border-radius: 20px;
    padding: 2rem;
    color: var(--white);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

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

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

.team-logo {
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    border: 3px solid var(--primary);
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.vs {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    padding: 0 2rem;
}

.match-info {
    text-align: center;
    font-size: 1.1rem;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Tables */
.results-table {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.result-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.result-item:hover {
    background: #f8f9fa;
    transform: translateX(10px);
}

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

.result-teams {
    flex: 1;
    padding: 0 2rem;
}

/* Standings */
.standings-table {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.standings-table table {
    margin-bottom: 0;
}

.standings-table th {
    background: var(--secondary);
    color: var(--white);
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.standings-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

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

.standings-table tr:hover td {
    background: #f8f9fa;
}

.position-1, .position-2, .position-3 {
    font-weight: 700;
}

.position-1 { color: gold; }
.position-2 { color: silver; }
.position-3 { color: #cd7f32; }

.chitipa-row {
    background: rgba(196, 30, 58, 0.05);
    font-weight: 700;
}

/* Player Cards */
.player-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.player-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(196, 30, 58, 0.3);
}

.player-image {
    height: 250px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
    overflow: hidden;
}

.player-number {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
}

.player-info {
    padding: 1.5rem;
}

.player-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.player-role {
    color: var(--primary);
    font-weight: 600;
}

.player-position {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Partners Section */
.partners-section {
    background: var(--white);
    padding: 3rem 0;
}

.partner-item {
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.partner-item:hover {
    background: #f8f9fa;
    transform: translateY(-5px);
}

.partner-logo {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary);
    font-size: 2rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact i {
    color: var(--primary);
    margin-right: 10px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: var(--white);
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: #999;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: var(--white);
    padding: 1rem;
    z-index: 9999;
    display: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.btn-cookie {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.5rem 2rem;
    border-radius: 5px;
    margin-left: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cookie:hover {
    background: var(--primary-dark);
}

/* Admin Login Button */
.admin-login {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.admin-login a {
    background: var(--dark);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.admin-login a:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* Breadcrumb */
.breadcrumb {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    padding: 100px 0 50px;
    margin-top: 76px;
    color: var(--white);
    text-align: center;
}

.breadcrumb h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.breadcrumb-links a {
    color: var(--white);
    opacity: 0.8;
}

.breadcrumb-links a:hover {
    opacity: 1;
}

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

/* Contact Page */
.contact-info {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
}

.contact-info i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-info p {
    color: var(--gray);
    margin: 0;
}

.contact-form {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

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

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

/* Shop Page */
.shop-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.shop-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(196, 30, 58, 0.2);
}

.shop-image {
    height: 250px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
}

.shop-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--dark);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.shop-content {
    padding: 1.5rem;
}

.shop-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.shop-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.btn-shop {
    background: var(--secondary);
    color: var(--white);
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-shop:hover {
    background: var(--primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin-top: 3rem;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    display: block;
    padding: 8px 15px;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link:hover,
.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .match-teams {
        flex-direction: column;
    }
    
    .vs {
        padding: 1rem 0;
    }
    
    .team-logo {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }
    
    .team-name {
        font-size: 1.2rem;
    }
    
    .breadcrumb {
        padding: 80px 0 40px;
    }
    
    .breadcrumb h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .result-item {
        flex-direction: column;
        text-align: center;
    }
    
    .result-teams {
        padding: 0.5rem 0;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        text-align: center;
    }
}

/* Utility Classes */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.text-white { color: var(--white) !important; }
.text-dark { color: var(--dark) !important; }
.text-gray { color: var(--gray) !important; }

.bg-primary { background: var(--primary) !important; }
.bg-secondary { background: var(--secondary) !important; }
.bg-light { background: var(--light) !important; }
.bg-white { background: var(--white) !important; }
.bg-dark { background: var(--dark) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.flex-wrap { flex-wrap: wrap !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }

.overflow-hidden { overflow: hidden !important; }
.rounded { border-radius: 10px !important; }
.rounded-circle { border-radius: 50% !important; }

.shadow { box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important; }
.shadow-lg { box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important; }
.shadow-none { box-shadow: none !important; }