﻿/* Auth and User Controls */
.regcover {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px;
    gap: 10px;
}

.auth-link {
    text-decoration: none;
    color: black;
    padding: 8px 12px;
    border: 1px solid lightgray;
    border-radius: 4px;
    background-color: white;
    transition: all 0.3s ease;
}

    .auth-link:hover {
        background-color: #f5f5f5;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

.logout-container, .admin-container {
    display: flex;
    align-items: center;
}

.logout-btn, .admin-btn {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

    .logout-btn:hover, .admin-btn:hover {
        transform: scale(1.1);
    }

.user-greeting {
    font-weight: bold;
    color: #d32f2f;
}

/* Category Navigation */
.category-nav {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 10px 0;
    background-color: white;
    border-bottom: 1px solid #eee;
}

.category-btn {
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    border: 1px solid #e4e2e2;
    border-radius: 4px;
    background-color: white;
    transition: all 0.3s ease;
}

    .category-btn:hover, .category-btn.active {
        background-color: #f0f0f0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .category-btn.active {
        color: #8b0000;
        font-weight: bold;
        border-color: #8b0000;
    }

/* Page Header */
.page-header {
    text-align: center;
    margin: 20px 0;
}

    .page-header h1 {
        color: #8b0000;
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

.header-description {
    color: #555;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Slider Container */
.slider-container {
    max-width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Title Slider */
.title-slider {
    width: 100%;
    height: 60px;
    margin-bottom: 10px;
}

.slide-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #333;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
}

/* Main Image Slider */
.main-slider {
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

    .slider-image:hover {
        transform: scale(1.02);
    }

.swiper-button-prev, .swiper-button-next {
    color: white;
    background-color: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

    .swiper-button-prev:hover, .swiper-button-next:hover {
        background-color: rgba(139, 0, 0, 0.8);
    }

    .swiper-button-prev::after, .swiper-button-next::after {
        font-size: 1.2rem;
    }

/* Content Slider */
.content-slider {
    width: 100%;
    height: 100px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.content-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    color: #333;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
}

    .content-link:hover {
        background-color: #f9f9f9;
    }

/* More Articles Button */
.more-articles {
    text-align: center;
    margin: 30px 0;
}

.btn-more {
    display: inline-block;
    padding: 10px 20px;
    background-color: #8b0000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .btn-more:hover {
        background-color: #6b0000;
        box-shadow: 0 2px 10px rgba(139, 0, 0, 0.3);
    }

/* Lifestyle Section */
.lifestyle-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    color: #8b0000;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.subcategory-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.subcategory-link {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

    .subcategory-link:hover {
        background-color: #8b0000;
        color: white;
        border-color: #8b0000;
    }

/* Feature Columns */
.feature-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-column {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

    .feature-column h3 {
        color: #8b0000;
        margin-bottom: 15px;
    }

    .feature-column p {
        color: #555;
        margin-bottom: 15px;
        line-height: 1.6;
    }

.btn-feature {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .btn-feature:hover {
        background-color: #8b0000;
        color: white;
    }

.sport-links, .food-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

    .sport-links a, .food-links a {
        padding: 6px 12px;
        background-color: #f5f5f5;
        border-radius: 4px;
        text-decoration: none;
        color: #333;
        transition: all 0.3s ease;
    }

        .sport-links a:hover, .food-links a:hover {
            background-color: #8b0000;
            color: white;
        }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-slider {
        height: 300px;
    }

    .feature-columns {
        flex-direction: column;
    }

    .regcover {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .main-slider {
        height: 250px;
    }

    .category-nav {
        flex-wrap: wrap;
    }

    .category-btn {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}
