/* ========================================
   CSS Custom Properties & Design Tokens
   ======================================== */
:root {
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --glass-bg: rgba(0, 0, 0, 0.02);
    --glass-border: rgba(0, 0, 0, 0.08);
}

/* ========================================
   Base Styles
   ======================================== */
html {
    scroll-behavior: smooth;
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.light-theme {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* ========================================
   Glassmorphism Components
   ======================================== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-dark {
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-gradient {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(77, 150, 255, 0.1));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ========================================
   Navigation Styles
   ======================================== */
#navbar.scrolled {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.light-theme #navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF6B6B, #f97316);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

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

.light-theme .nav-link {
    color: rgba(15, 23, 42, 0.6);
}

.light-theme .nav-link:hover,
.light-theme .nav-link.active {
    color: #0f172a;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-smooth);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
}

/* ========================================
   Button Styles
   ======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #FF6B6B, #f97316);
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

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

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-smooth);
}

.btn-outline:hover {
    border-color: #FF6B6B;
    color: #FF6B6B;
    transform: translateY(-2px);
}

/* ========================================
   Filter Buttons
   ======================================== */
.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

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

.filter-btn.active {
    color: white;
    background: linear-gradient(135deg, #FF6B6B, #f97316);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.light-theme .filter-btn {
    color: rgba(15, 23, 42, 0.6);
    background: rgba(0, 0, 0, 0.03);
}

.light-theme .filter-btn:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.06);
}

.light-theme .filter-btn.active {
    color: white;
}

/* ========================================
   Blog Card Styles
   ======================================== */
.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 107, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.light-theme .blog-card {
    background: white;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.light-theme .blog-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .card-image {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.card-category {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
}

.card-content {
    padding: 1.5rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
}

.light-theme .card-meta {
    color: rgba(15, 23, 42, 0.5);
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.blog-card:hover .card-title {
    color: #FF6B6B;
}

.card-excerpt {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.light-theme .card-excerpt {
    color: rgba(15, 23, 42, 0.6);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #FF6B6B;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.card-link:hover {
    gap: 0.75rem;
}

/* ========================================
   Destination Card Styles
   ======================================== */
.destination-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    aspect-ratio: 1;
    transition: var(--transition-smooth);
}

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

.destination-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.destination-card:hover .destination-image {
    transform: scale(1.1);
}

.destination-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.destination-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
}

.destination-country {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   Stats Card Styles
   ======================================== */
.stat-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(77, 150, 255, 0.05));
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 107, 0.2);
}

.stat-number {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    background: linear-gradient(135deg, #FF6B6B, #FFD93D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.light-theme .stat-label {
    color: rgba(15, 23, 42, 0.6);
}

/* ========================================
   Social Icons
   ======================================== */
.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: linear-gradient(135deg, #FF6B6B, #f97316);
    color: white;
    transform: translateY(-2px);
}

.light-theme .social-icon {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(15, 23, 42, 0.6);
}

/* ========================================
   Footer Links
   ======================================== */
.footer-link {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #FF6B6B;
}

.light-theme .footer-link {
    color: rgba(15, 23, 42, 0.6);
}

.light-theme .footer-link:hover {
    color: #FF6B6B;
}

/* ========================================
   Animations
   ======================================== */
@keyframes slowZoom {
    0%, 100% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.15);
    }
}

.animate-slow-zoom {
    animation: slowZoom 20s ease-in-out infinite;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

@keyframes pulseSlow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-pulse-slow {
    animation: pulseSlow 3s ease-in-out infinite;
}

@keyframes bounceSlow {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

.animate-bounce-slow {
    animation: bounceSlow 2s ease-in-out infinite;
}

@keyframes scrollIndicator {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(8px);
    }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

/* Animation Delays */
.animation-delay-1 {
    animation-delay: 0.1s;
}

.animation-delay-2 {
    animation-delay: 0.2s;
}

.animation-delay-3 {
    animation-delay: 0.3s;
}

.animation-delay-4 {
    animation-delay: 0.4s;
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Back to Top Button
   ======================================== */
#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .card-content {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 640px) {
    .destination-card {
        aspect-ratio: 16/10;
    }
}

/* ========================================
   Loading Animation (optional)
   ======================================== */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

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

/* ========================================
   Theme Toggle Icons
   ======================================== */
.light-theme .sun-icon {
    display: none;
}

.light-theme .moon-icon {
    display: block;
}

/* ========================================
   Custom Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF6B6B, #f97316);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f97316, #FF6B6B);
}

.light-theme::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

/* ========================================
   Blog Modal Styles
   ======================================== */
.blog-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.blog-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(15, 15, 26, 0.98));
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-modal.active .modal-container {
    transform: scale(1) translateY(0);
}

.light-theme .modal-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: #FF6B6B;
    border-color: #FF6B6B;
    transform: rotate(90deg);
}

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.modal-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-category {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
}

.modal-body {
    padding: 2rem;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.light-theme .modal-meta {
    color: rgba(15, 23, 42, 0.6);
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.light-theme .modal-title {
    background: linear-gradient(135deg, #0f172a, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-article {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.8;
}

.light-theme .modal-article {
    color: rgba(15, 23, 42, 0.8);
}

.modal-article p {
    margin-bottom: 1.25rem;
}

.modal-article h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #FF6B6B;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.modal-article ul {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.modal-article li {
    margin-bottom: 0.5rem;
    position: relative;
}

.modal-article li::marker {
    color: #FF6B6B;
}

.modal-article strong {
    color: #FFD93D;
    font-weight: 600;
}

.light-theme .modal-article strong {
    color: #f97316;
}

/* Modal Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 107, 0.5);
    border-radius: 3px;
}

/* Blog Card Cursor */
.blog-card {
    cursor: pointer;
}

/* Modal Responsive Styles */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 95vh;
        border-radius: 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-article {
        font-size: 0.95rem;
    }
    
    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
    }
}
