/* 
 * AntalyaMaps Modern Style
 * Theme Color: #3955A2, #000, #fff
 */

:root {
    --primary-color: #3955A2;
    --secondary-color: #2c4280;
    /* Darker shade of primary */
    --accent-color: #fbbf24;
    /* Amber for warnings/highlights */
    --text-color: #000000;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --navbar-bg: #3955A2;
    --footer-bg: #f8f9fa;
}

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

/* Navbar */
.navbar-custom {
    background: var(--navbar-bg) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: #fff !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
}

.nav-link:hover {
    color: #fff !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 85, 162, 0.4);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(57, 85, 162, 0.8), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1542051841857-5f90071e7989?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    text-align: center;
    border-radius: 0 0 0 0;
    /* Removed rounded corners */
}

/* Cards */
.card {
    border: 1px solid #eee;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

/* Category Cards */
.category-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.category-card:hover {
    background: #fff;
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-title {
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

/* Footer */
.footer {
    margin-top: auto;
    background: var(--primary-color);
    color: #fff;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s;
    margin-right: 0.5rem;
}

.social-icons a:hover {
    background: #fff;
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
}

.mt-4 {
    margin-top: 0 !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .category-card {
        padding: 1.5rem;
    }

    .category-icon {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .footer {
        text-align: center;
    }

    .footer .col-md-3 {
        margin-bottom: 2rem;
    }
}

/* Typography Updates */
p {
    font-size: 14px;
}

h1 {
    font-size: 22px;
}

h2 {
    font-size: 20px;
}

h3, h4, h5, h6 {
    font-size: 16px;
}

/* Swiper Customization */
.swiper-button-next, .swiper-button-prev {
    width: 30px !important;
    height: 30px !important;
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 16px !important;
    font-weight: bold;
}

.swiper-pagination {
    bottom: 0 !important;
}

.categorySwiper {
    padding-bottom: 40px !important;
}

/* Mobile Typography Overrides */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 80%;
        max-width: 300px;
        background-color: var(--navbar-bg);
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%);
        z-index: 1050;
        overflow-y: auto;
        display: block !important; /* Force block to allow transition */
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }
    
    .navbar-toggler {
        z-index: 1060;
    }
    
    .navbar-nav {
         align-items: flex-start !important;
    }
    
    /* Overlay background when menu opens */
    .navbar-collapse.show::before {
        content: '';
        position: fixed;
        top: 0;
        left: -100vw; /* Fill text to left */
        width: 200vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: -1;
    }
}

@media (max-width: 768px) {
    p { font-size: 12px; }
    h1 { font-size: 20px; }
    h2 { font-size: 18px; }
    h3, h4, h5, h6 { font-size: 14px; }
    .hero-section h1 { font-size: 20px; }
    
    /* Specific overrides */
    .category-title { font-size: 12px !important; }
}

