/* Cyprus Marine Activities - Main Stylesheet */

/* ========================================
   CSS Variables and Theme Colors
   ======================================== */
:root {
    /* Cyprus-inspired color palette */
    --primary-color: #2E86AB;        /* Mediterranean Blue */
    --primary-dark: #1A5A7A;         /* Deep Ocean Blue */
    --secondary-color: #A23B72;       /* Cyprus Sunset Pink */
    --accent-color: #F18F01;          /* Golden Sun */
    --success-color: #28A745;         /* Sea Green */
    --warning-color: #FFC107;         /* Sandy Yellow */
    --danger-color: #DC3545;          /* Coral Red */
    --info-color: #17A2B8;           /* Turquoise */
    
    /* Neutral colors */
    --dark-color: #2C3E50;           /* Deep Navy */
    --light-color: #F8F9FA;          /* Soft White */
    --muted-color: #6C757D;          /* Stone Gray */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2E86AB 0%, #1A5A7A 100%);
    --gradient-sunset: linear-gradient(135deg, #F18F01 0%, #A23B72 100%);
    --gradient-ocean: linear-gradient(180deg, #2E86AB 0%, #17A2B8 100%);
    
    /* Typography */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-max-width: 1200px;
    
    /* Borders and Shadows */
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ========================================
   Base Styles and Typography
   ======================================== */
body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-color);
}

.display-1, .display-2, .display-3, .display-4 {
    font-family: var(--font-family-heading);
    font-weight: 700;
}

/* ========================================
   Bootstrap Customizations
   ======================================== */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--box-shadow-lg);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition-base);
}

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

.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition-base);
}

.card:hover {
    box-shadow: var(--box-shadow-lg);
}

/* ========================================
   Navigation Styles
   ======================================== */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: var(--gradient-primary) !important;
}

.navbar-brand {
    font-family: var(--font-family-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

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

.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
}

/* ========================================
   Layout Components
   ======================================== */
.main-content {
    padding-top: 76px; /* Account for fixed navbar */
    min-height: calc(100vh - 76px);
}

.min-vh-75 {
    min-height: 75vh;
}

.section-padding {
    padding: var(--section-padding);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/hero-pattern.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

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

.hero-image-container {
    position: relative;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--gradient-sunset);
    border-radius: var(--border-radius-lg);
    z-index: -1;
    opacity: 0.3;
}

/* ========================================
   Category Cards
   ======================================== */
.category-card {
    padding: 2rem 1rem;
    border-radius: var(--border-radius-lg);
    background: white;
    transition: var(--transition-base);
    box-shadow: var(--box-shadow);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    background: var(--light-color);
}

.category-icon {
    transition: var(--transition-base);
}

.category-card:hover .category-icon i {
    color: var(--accent-color) !important;
    transform: scale(1.1);
}

/* ========================================
   Listing Cards
   ======================================== */
.listing-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.listing-image {
    height: 200px;
    object-fit: cover;
    transition: var(--transition-base);
}

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

.listing-image-container {
    overflow: hidden;
    position: relative;
}

.favorite-btn {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9) !important;
    border: none;
    transition: var(--transition-fast);
}

.favorite-btn:hover {
    background: var(--danger-color) !important;
    color: white !important;
}

.favorite-btn.favorited {
    background: var(--danger-color) !important;
    color: white !important;
}

.price-badge .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    backdrop-filter: blur(10px);
    background: rgba(40, 167, 69, 0.9) !important;
}

.rating-stars {
    letter-spacing: 0.1em;
}

/* Weather recommendation highlight */
.listing-card.weather-recommended {
    border: 2px solid var(--success-color);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.listing-card.weather-recommended::before {
    content: '🌟 Weather Perfect!';
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--success-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    z-index: 10;
}

/* ========================================
   Weather Widget
   ======================================== */
.weather-widget {
    background: var(--gradient-ocean);
    border-radius: var(--border-radius-lg);
    color: white;
    position: relative;
    overflow: hidden;
}

.weather-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/weather-pattern.svg') no-repeat center;
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.weather-widget > * {
    position: relative;
    z-index: 1;
}

.weather-stat,
.marine-stat {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.weather-stat:hover,
.marine-stat:hover {
    background: rgba(255, 255, 255, 0.2);
}

.forecast-day {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.forecast-day:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ========================================
   Blog Cards
   ======================================== */
.blog-card {
    transition: var(--transition-base);
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-3px);
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--transition-base);
}

.blog-card:hover .card-img-top {
    transform: scale(1.03);
}

.blog-meta {
    color: var(--muted-color);
}

/* ========================================
   Guide Cards
   ======================================== */
.guide-card {
    transition: var(--transition-base);
    border-radius: var(--border-radius-lg);
}

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

.guide-icon {
    transition: var(--transition-base);
}

.guide-card:hover .guide-icon i {
    color: var(--accent-color) !important;
    transform: scale(1.1);
}

/* ========================================
   Search Section
   ======================================== */
.search-section {
    position: relative;
}

.search-form .form-select,
.search-form .form-control {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    transition: var(--transition-fast);
}

.search-form .form-select:focus,
.search-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 134, 171, 0.25);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: var(--gradient-sunset);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/cta-pattern.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

/* ========================================
   Footer Styles
   ======================================== */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
}

.footer a {
    color: var(--muted-color);
    transition: var(--transition-fast);
}

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

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: var(--transition-base);
}

.footer .social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 3rem 0;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .category-card {
        padding: 1.5rem 1rem;
    }
    
    .weather-widget {
        margin: 1rem 0;
    }
    
    .search-form .row > div {
        margin-bottom: 1rem;
    }
    
    .main-content {
        padding-top: 60px;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .forecast-day {
        margin-bottom: 0.5rem;
    }
}

/* ========================================
   Accessibility and Performance
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.loading {
    animation: pulse 2s infinite;
}

/* Skeleton loading for cards */
.skeleton-card {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-sunset {
    background: var(--gradient-sunset);
}

.border-radius-lg {
    border-radius: var(--border-radius-lg) !important;
}

.shadow-soft {
    box-shadow: var(--box-shadow) !important;
}

.shadow-strong {
    box-shadow: var(--box-shadow-lg) !important;
}

.cursor-pointer {
    cursor: pointer;
}

.object-cover {
    object-fit: cover;
}

.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

/* Cyprus-specific decorative elements */
.cyprus-pattern {
    background-image: url('/static/images/cyprus-pattern.svg');
    background-repeat: repeat;
    background-size: 100px 100px;
    opacity: 0.05;
}

.wave-divider {
    position: relative;
}

.wave-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: url('/static/images/wave-divider.svg') repeat-x;
    background-size: 100px 50px;
}