/*!
 * Seydikemer Portal - Modern Travel Magazine Design
 */

:root {
    /* Nature & Heritage Inspired Color Palette */
    --primary-color: #2d5016;
    --primary-dark: #1a3009;
    --primary-light: #4a7c2a;
    --secondary-color: #8b5a2b;
    --tertiary-color: #d4a574;
    --accent-color: #c17817;
    --success-color: #22c55e;
    --info-color: #0ea5e9;
    --warning-color: #f97316;
    --danger-color: #ef4444;
    --white: #ffffff;
    --cream: #fefcf3;
    --sand: #f5f1e8;
    --sage: #9ca986;
    --forest: #2d5016;
    --earth: #8b5a2b;
    --stone: #a8a29e;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--cream);
    font-size: 16px;
    overflow-x: hidden;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    z-index: 100000;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Header Optimization for Mobile */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--forest) 100%);
    font-size: 0.75rem;
    padding: 0.5rem 0;
}

/* Mobile-first navigation */
.navbar {
    padding: 0.75rem 0;
}

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

.brand-title {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.brand-subtitle {
    font-size: 0.65rem;
    color: var(--sage);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Compact mobile navigation */
.navbar-nav {
    gap: 0;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
    color: var(--gray-600);
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background-color: var(--sand);
}

.navbar-nav .nav-link.active {
    color: var(--white);
    background-color: var(--primary-color);
    font-weight: 600;
}

/* Compact search form */
.navbar .input-group {
    max-width: 200px;
}

.navbar .form-control {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
}

.navbar .btn-outline-primary {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

/* Language switcher optimization */
.language-switcher .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.9);
}

/* Hero Section - Travel Magazine Style */
.hero-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 0 0 2rem 2rem;
    margin-bottom: 2rem;
}

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

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

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.7) 0%, rgba(139, 90, 43, 0.5) 100%);
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

/* Simplified hero controls for mobile */
.hero-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 10;
}

.hero-nav {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.hero-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.hero-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

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

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

/* Travel Magazine Card Style */
.card {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--white);
    box-shadow: var(--shadow);
}

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

/* Category Cards - Travel Magazine Style */
.category-card {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.category-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--tertiary-color), var(--accent-color));
    border-radius: 50%;
    color: white;
}

/* Place Cards - Magazine Style */
.place-card {
    overflow: hidden;
    border: 1px solid var(--gray-200);
    background: var(--white);
}

.place-image {
    position: relative;
    overflow: hidden;
}

.place-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.place-card:hover .place-image img {
    transform: scale(1.05);
}

.place-overlay {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.category-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--forest));
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    box-shadow: var(--shadow);
}

.rating-badge {
    background: rgba(255,255,255,0.95);
    padding: 0.375rem 0.625rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

/* Event Cards */
.event-date {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--white);
    color: var(--primary-color);
    text-align: center;
    padding: 0.5rem;
    border-radius: 8px;
    font-weight: 700;
    min-width: 60px;
    box-shadow: var(--shadow-md);
}

.event-day {
    font-size: 1.25rem;
    line-height: 1;
}

.event-month {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--sage);
    font-weight: 600;
}

/* Fix event meta text visibility issues */
.event-info-card .text-muted,
.contact-info-card .text-muted {
    color: var(--gray-600) !important;
    font-weight: 500;
}

.event-meta {
    color: var(--gray-700) !important;
}

.event-meta small {
    color: var(--gray-600) !important;
    font-weight: 500;
}

.event-meta i {
    color: var(--primary-color) !important;
}

.event-meta .fw-semibold,
.event-meta .text-success {
    color: var(--gray-700) !important;
    font-weight: 600;
}

/* Ensure event quick info is visible on hero sections */
.event-quick-info {
    color: var(--white) !important;
}

.event-quick-info span {
    color: var(--white) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    font-weight: 500;
}

.event-quick-info i {
    color: var(--white) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Sections */
.section-title {
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
}

/* Performance-optimized buttons */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    transition: all 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--forest));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--forest), var(--primary-color));
    transform: translateY(-1px);
    color: white;
}

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

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

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
}

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

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
    margin-top: 3rem;
}

.footer-main {
    padding: 3rem 0;
}

/* Newsletter */
.newsletter-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
    margin: 3rem 0 0 0;
    padding: 3rem 0;
}

/* Back to top */
.btn-back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

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

.btn-back-to-top:hover {
    background: var(--forest);
    transform: translateY(-2px);
}

/* Utility classes */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-light { background-color: var(--sand) !important; }

/* Section styling */
.categories-section { 
    padding: 3rem 0; 
    background: var(--sand); 
}

.featured-places { 
    padding: 3rem 0; 
    background: var(--white); 
}

.events-section { 
    padding: 3rem 0; 
    background: var(--sand); 
}

.blog-section { 
    padding: 3rem 0; 
    background: var(--white); 
}

/* Breadcrumb */
.breadcrumb {
    background: none;
    padding: 0;
}

.breadcrumb-section {
    background-color: var(--sand);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-item {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

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

.breadcrumb-item.active {
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.25rem 0.5rem;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--gray-400);
    font-weight: bold;
}

/* Footer fixes */
.footer-widget h5,
.footer-widget h6 {
    color: white !important;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links a {
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
}

.footer-links a:hover {
    color: white !important;
}

.text-light {
    color: rgba(255,255,255,0.9) !important;
}

.bg-darker {
    background-color: rgba(0,0,0,0.3) !important;
}

/* Footer bottom text fix */
.footer-bottom p {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.875rem;
}

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

.footer-bottom .text-danger {
    color: #ff6b6b !important;
}

.emergency-contacts {
    background: rgba(255,193,7,0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.emergency-item {
    text-align: center;
    padding: 0.5rem;
}

/* Star rating */
.star-rating { display: inline-flex; color: var(--accent-color); }
.star { font-size: 0.9rem; margin-right: 1px; }
.star.full { color: var(--accent-color); }
.star.empty { color: var(--gray-300); }

/* Mobile Responsive - Mobile First Approach */
@media (max-width: 991px) {
    .navbar-nav {
        background: var(--white);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: var(--shadow);
        border: 1px solid var(--gray-200);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--gray-100);
        font-size: 0.95rem;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Hide search on mobile menu */
    .navbar .d-flex {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Top bar optimization */
    .top-bar {
        font-size: 0.7rem;
        padding: 0.375rem 0;
    }
    
    .contact-info {
        font-size: 0.7rem;
    }
    
    .contact-info span {
        margin-right: 0.75rem !important;
    }
    
    /* Header brand */
    .brand-title {
        font-size: 1.1rem;
    }
    
    .brand-subtitle {
        font-size: 0.6rem;
    }
    
    /* Hero section */
    .hero-section {
        height: 50vh;
        min-height: 350px;
        border-radius: 0 0 1.5rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        max-width: 250px;
        margin: 0 auto 0.75rem;
        font-size: 0.85rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Cards */
    .card-body {
        padding: 1.25rem;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .place-image img {
        height: 180px;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* Reduce padding on mobile */
    .categories-section,
    .featured-places,
    .events-section,
    .blog-section {
        padding: 2rem 0;
    }
    
    .newsletter-section,
    .footer-main {
        padding: 2rem 0;
    }
    
    /* Mobile navigation improvements */
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        border: 1px solid var(--gray-300);
    }
    
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 576px) {
    /* Ultra mobile optimization */
    .hero-section {
        height: 45vh;
        min-height: 300px;
        border-radius: 0 0 1rem 1rem;
    }
    
    .display-4 {
        font-size: 1.5rem;
    }
    
    .hero-nav {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    .hero-controls {
        padding: 0 0.75rem;
    }
    
    .hero-indicators {
        bottom: 1rem;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .section-title {
        font-size: 1.375rem;
    }
    
    .btn-back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
    
    /* Card optimization */
    .place-image img {
        height: 160px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Typography optimization */
    .card-title {
        font-size: 0.95rem;
    }
    
    .card-text {
        font-size: 0.85rem;
    }
    
    /* Button optimization */
    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    /* Container padding */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Performance optimizations */
.card,
.btn,
.hero-nav,
.indicator {
    will-change: transform;
}

/* Reduce motion for better performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .btn-back-to-top,
    .hero-controls,
    .hero-indicators,
    .newsletter-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: black;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}