/* ============================================ */
/* TRAVEL HUB SPECIFIC STYLES */
/* ============================================ */

/* Text Size Control Variables */
:root {
    --base-size: 16px;
    --scale-factor: 1;
}

/* Smooth zoom transition */
body {
    transition: zoom 0.4s ease-in-out;
}

/* Text Size Scaling - Using zoom property (affects everything) */
body.text-size-70 {
    zoom: 0.7;
    --scale-factor: 0.7;
}

body.text-size-80 {
    zoom: 0.8;
    --scale-factor: 0.8;
}

body.text-size-100 {
    zoom: 1;
    --scale-factor: 1;
}

body.text-size-120 {
    zoom: 1.2;
    --scale-factor: 1.2;
}

body.text-size-150 {
    zoom: 1.5;
    --scale-factor: 1.5;
}

/* Active Text Size Button */
.active-text-size {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6) !important;
    transform: scale(1.1) !important;
    border: 2px solid #10b981 !important;
}

/* ============================================ */
/* GLASS MORPHISM & EFFECTS */
/* ============================================ */

/* Glass Morphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Glow Text Effect */
.glow-text {
    animation: pulse-glow 5s ease-in-out infinite;
}

/* Card Hover Effect */
.card-hover {
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.4);
}

/* ============================================ */
/* DESTINATION CARDS */
/* ============================================ */

.destination-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.destination-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    transition: all 0.5s ease;
    pointer-events: none;
}

.destination-card:hover::before {
    top: -20%;
    right: -20%;
}

.destination-card:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.5);
}

/* ============================================ */
/* SERVICE CARDS */
/* ============================================ */

.service-card {
    position: relative;
    transition: all 0.4s ease;
}

.service-card:hover {
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.5);
    transform: translateY(-8px);
}

/* ============================================ */
/* MAGIC BUTTON */
/* ============================================ */

.magic-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.magic-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.magic-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.magic-btn:hover::before {
    width: 300px;
    height: 300px;
}

.magic-btn:active {
    transform: scale(0.95);
}

/* ============================================ */
/* TEXT SIZE BUTTONS */
/* ============================================ */

.text-size-btn {
    transition: all 0.3s ease;
    font-weight: bold;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.text-size-btn:hover {
    transform: scale(1.1);
    border-color: #667eea;
}

.text-size-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.text-size-btn:hover::before {
    width: 200px;
    height: 200px;
}

/* ============================================ */
/* STAGGER ANIMATIONS */
/* ============================================ */

.stagger-item {
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }
.stagger-item:nth-child(7) { animation-delay: 0.7s; }
.stagger-item:nth-child(8) { animation-delay: 0.8s; }
.stagger-item:nth-child(9) { animation-delay: 0.9s; }

/* ============================================ */
/* PULSE MAGIC ANIMATION */
/* ============================================ */

.pulse-magic {
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(124, 58, 255, 0.4);
        transform: scale(1);
        opacity: 1;
    }
    50% {
        text-shadow: 0 0 20px rgba(124, 58, 255, 0.7);
        transform: scale(1.1);
        opacity: 0.85;
    }
}

/* ============================================ */
/* SLIDE IN UP ANIMATION */
/* ============================================ */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================ */
/* FLOAT ANIMATION */
/* ============================================ */

.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ============================================ */
/* HEADER STYLING */
/* ============================================ */

header {
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header a {
    transition: all 0.3s ease;
}

/* ============================================ */
/* SECTION STYLING */
/* ============================================ */

.section {
    padding: 2rem 0;
    min-height: 100vh;
    animation: fadeInSection 0.7s ease-out;
}

@keyframes fadeInSection {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Container */
.container {
    max-width: 1200px;
}

/* ============================================ */
/* READING MODE */
/* ============================================ */

body.reading-mode {
    background: #f5f5f5;
}

body.reading-mode .glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-color: rgba(200, 200, 200, 0.3);
    color: #333;
}

body.reading-mode h1,
body.reading-mode h2,
body.reading-mode h3,
body.reading-mode p {
    color: #333 !important;
}

body.reading-mode .text-white {
    color: #333 !important;
}

body.reading-mode .text-white.opacity-90 {
    color: #555 !important;
}

body.reading-mode .text-white.opacity-80 {
    color: #666 !important;
}

/* ============================================ */
/* NOTIFICATIONS */
/* ============================================ */

.notification {
    animation: slideInUp 0.3s ease-out;
    border-radius: 8px;
    padding: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* ============================================ */
/* RESPONSIVE ADJUSTMENTS */
/* ============================================ */

@media (max-width: 768px) {
    .text-size-btn {
        padding: 0.25rem 0.75rem;
        font-size: 0.875rem;
    }

    .stagger-item {
        animation: slideInUp 0.4s ease-out forwards;
    }

    /* Mobile responsive zoom values for text sizes */
    body.text-size-70 { zoom: 0.65; }
    body.text-size-80 { zoom: 0.75; }
    body.text-size-100 { zoom: 0.95; }
    body.text-size-120 { zoom: 1.1; }
    body.text-size-150 { zoom: 1.3; }

    .destination-card:hover {
        transform: scale(1.02) translateY(-4px);
    }

    .service-card:hover {
        transform: translateY(-4px);
    }
}

/* ============================================ */
/* DARK THEME ENHANCEMENT */
/* ============================================ */

/* Background is handled by Tailwind classes in HTML */
body {
    color: #f0f0f0;
}

/* ============================================ */
/* TEXT STYLES */
/* ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: 0.5px;
}

p {
    line-height: 1.8;
}

/* ============================================ */
/* SMOOTH TRANSITIONS */
/* ============================================ */

* {
    transition: color 0.3s ease, background 0.3s ease;
}

/* ============================================ */
/* FOCUS & ACCESSIBILITY */
/* ============================================ */

button:focus,
a:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

.magic-btn:focus {
    box-shadow: 0 0 0 3px rgba(124, 58, 255, 0.5);
}

/* ============================================ */
/* SCROLLBAR STYLING */
/* ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

/* ============================================ */
/* PRINT STYLES */
/* ============================================ */

@media print {
    header, .text-size-btn, .magic-btn {
        display: none;
    }
}

/* ============================================ */
/* ENHANCED CARD STYLES FOR PAGES */
/* ============================================ */

/* Package Cards - Special styling */
.glass-effect.flex-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.glass-effect.flex-col .border-t {
    margin-top: auto;
}

/* Price highlighting */
.text-yellow-400 {
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

/* Bestseller badge */
.border-yellow-400 {
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(251, 191, 36, 0.6);
    }
}

/* ============================================ */
/* FILTER BUTTONS */
/* ============================================ */

.glass-effect.hover\:text-yellow-400:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-2px);
}

/* ============================================ */
/* FORM INPUTS */
/* ============================================ */

input[type="text"],
input[type="email"],
textarea {
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* ============================================ */
/* REVIEW STARS */
/* ============================================ */

button[onclick^="setRating"] {
    cursor: pointer;
    transition: all 0.2s ease;
    filter: grayscale(0.3);
}

button[onclick^="setRating"]:hover {
    transform: scale(1.3);
    filter: grayscale(0);
}

/* ============================================ */
/* RATING DISPLAY */
/* ============================================ */

.text-yellow-400.text-sm {
    letter-spacing: 2px;
}

/* ============================================ */
/* CATEGORY BADGES */
/* ============================================ */

.bg-purple-600,
.bg-blue-600,
.bg-green-600 {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================ */
/* GRID LAYOUTS - Ensure proper display */
/* ============================================ */

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ============================================ */
/* SPACING UTILITIES */
/* ============================================ */

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* ============================================ */
/* VERIFIED BADGE */
/* ============================================ */

.text-green-400 {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* ============================================ */
/* SMOOTH TRANSITIONS FOR ALL INTERACTIVE ELEMENTS */
/* ============================================ */

button,
a,
input,
textarea {
    transition: all 0.3s ease;
}

/* ============================================ */
/* ENHANCED HOVER EFFECTS */
/* ============================================ */

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
}

/* ============================================ */
/* LOADING STATES */
/* ============================================ */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, #ffffff08 0%, #ffffff18 50%, #ffffff08 100%);
    background-size: 1000px 100%;
}
