/* Modern Newsagent Website Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Root variables for consistent theming - Travel Agency Style */
:root {
    --primary: #007BFF;
    --primary-dark: #0056b3;
    --secondary: #6c757d;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
}

/* Dark mode variables */
.dark {
    --primary: #007BFF;
    --primary-dark: #0056b3;
    --secondary: #6c757d;
    --light: #212529;
    --dark: #f8f9fa;
}

/* Base styles */
* {
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
    min-height: 100vh;
    transition: background 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.dark body {
    background: #1a1a1a;
}

/* Ticker animation for announcement bar */
@keyframes ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.ticker-text {
    display: inline-block;
    animation: ticker 20s linear infinite;
}

/* Enhanced navigation styles */
.nav-link {
    position: relative;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--newsagent-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Travel Agency Style Cards */
.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .card {
    background: #2d2d2d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.dark .card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Travel Agency Style Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
}

/* Enhanced mobile menu */
.mobile-nav-link {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: rgba(214, 85, 44, 0.1);
    transform: translateX(4px);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--newsagent-primary), var(--newsagent-secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--newsagent-secondary), var(--newsagent-primary));
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .card {
        padding: 1.5rem;
    }
    
    .ticker-text {
        font-size: 0.875rem;
    }
}

/* Loading states */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form enhancements */
input[type="email"],
input[type="text"],
textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #1f2937;
}

.dark input[type="email"],
.dark input[type="text"],
.dark textarea {
    background: rgba(31, 41, 55, 0.9);
    border: 2px solid rgba(75, 85, 99, 0.2);
    color: #f8fafc;
}

input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--newsagent-primary);
    box-shadow: 0 0 0 3px rgba(214, 85, 44, 0.1);
    background: white;
}

.dark input[type="email"]:focus,
.dark input[type="text"]:focus,
.dark textarea:focus {
    background: rgba(31, 41, 55, 1);
    border-color: var(--newsagent-primary);
}

/* Newsletter section enhancements */
.newsletter-bg {
    background: linear-gradient(135deg, var(--newsagent-primary), var(--newsagent-secondary));
    position: relative;
    overflow: hidden;
}

.newsletter-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    background-size: 50px 50px;
    animation: float 6s ease-in-out infinite;
}

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

/* Social media icons */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide.active {
    display: block;
}

.dot {
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.4) !important;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6) !important;
    transform: scale(1.2);
}

.dot.active {
    background: rgba(255, 255, 255, 0.9) !important;
    transform: scale(1.3);
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark mode transition for all elements */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Dark mode specific styles */
.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6 {
    color: #f8fafc;
}

.dark p {
    color: #e5e7eb;
}

/* Dark mode scrollbar */
.dark::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.5);
}

.dark::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--newsagent-primary), var(--newsagent-secondary));
}

/* Dark mode glass effect */
.dark .glass {
    background: rgba(31, 41, 55, 0.1);
    border: 1px solid rgba(75, 85, 99, 0.2);
}

/* FAQ Slider Styles */
.faq-slider {
    position: relative;
    height: auto;
    min-height: 300px;
    transition: all 0.3s ease;
}

.faq-slide {
    display: none;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-slide.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: slideInFromRight 0.6s ease-out;
}

.faq-slide.prev {
    transform: translateX(-100%);
}

.faq-slide.next {
    transform: translateX(100%);
}

/* Slide animations */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.faq-indicator {
    cursor: pointer;
    outline: none;
    border: none;
    position: relative;
}

.faq-indicator:hover {
    transform: scale(1.25);
    shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.faq-indicator.active {
    background: linear-gradient(135deg, var(--primary), #4f46e5) !important;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

/* Modern gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced card animations */
.faq-slide .bg-white {
    transform: translateY(0);
    transition: all 0.3s ease;
}

.faq-slide.active .bg-white {
    animation: slideInUp 0.6s ease-out;
}

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

/* Glass morphism effect for modern look */
.faq-slide .bg-white {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
}

.dark .faq-slide .bg-white {
    backdrop-filter: blur(20px);
    background: rgba(31, 41, 55, 0.95);
}

/* Enhance button hover effects */
.faq-slide .bg-gradient-to-r {
    transition: all 0.3s ease;
}

.faq-slide:hover .bg-gradient-to-r {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

/* Navigation button improvements */
#faq-prev, #faq-next {
    position: relative;
    overflow: hidden;
    user-select: none;
}

#faq-prev:disabled, #faq-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

#faq-prev:active, #faq-next:active {
    transform: scale(0.98) translateY(1px);
}

/* Button ripple effect */
#faq-prev::before, #faq-next::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

#faq-prev:active::before, #faq-next:active::before {
    width: 100px;
    height: 100px;
}

/* Indicator improvements */
.faq-indicator {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-indicator:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.faq-indicator:not(:disabled):hover {
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
}

.faq-indicator:not(:disabled):active {
    transform: scale(1.1);
}

/* Loading state for FAQ slides */
.faq-slide.loading {
    pointer-events: none;
}

.faq-answer-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
}

.faq-slide.loading .faq-answer-container::before {
    opacity: 1;
    visibility: visible;
    animation: loading-bar 1.5s infinite;
}

@keyframes loading-bar {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Typing Animation Styles */
.faq-answer {
    min-height: 100px;
    display: block;
    word-wrap: break-word;
    line-height: 1.6;
    white-space: normal;
}

.typing-word {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease-out;
    display: inline;
    margin-right: 0.25rem;
    white-space: nowrap;
}

.typing-word.visible {
    opacity: 1;
    transform: translateY(0);
}

.typing-word.fade-in {
    animation: fadeInWord 0.6s ease-out forwards;
}

/* Ensure proper line breaks */
.faq-answer-container {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

@keyframes fadeInWord {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Cursor animation for typing effect */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--primary);
    animation: blink 1s infinite;
    margin-left: 2px;
    vertical-align: baseline;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Enhanced FAQ container for better typing display */
.faq-content {
    position: relative;
    overflow: hidden;
}

.faq-question {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 123, 255, 0.1);
}

.faq-answer-container {
    position: relative;
    min-height: 120px;
    display: block;
    padding-top: 0.5rem;
    width: 100%;
}

/* Loading state for answers */
.answer-loading {
    position: relative;
}

.answer-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Logo Marquee Styles */
.logo-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0) 10%, 
        rgba(255, 255, 255, 0) 90%, 
        rgba(255, 255, 255, 1) 100%);
}

.dark .logo-marquee-container {
    background: linear-gradient(90deg, 
        rgba(31, 41, 55, 1) 0%, 
        rgba(31, 41, 55, 0) 10%, 
        rgba(31, 41, 55, 0) 90%, 
        rgba(31, 41, 55, 1) 100%);
}

.logo-marquee {
    display: flex;
    animation: marqueeRightToLeft 60s linear infinite;
    width: max-content;
    will-change: transform;
}

.logo-marquee:hover {
    animation-play-state: paused;
}

.logo-item {
    flex: 0 0 auto;
    margin: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    min-width: 120px;
    transition: all 0.3s ease;
}

.logo-item:hover {
    transform: scale(1.1);
}

.logo-image {
    max-height: 60px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-item:hover .logo-image {
    transform: scale(1.1);
}

.dark .logo-image {
    /* No filters - show logos normally in dark mode too */
}

.dark .logo-item:hover .logo-image {
    /* No filters - consistent with light mode */
}

@keyframes marqueeRightToLeft {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-item {
        margin: 0 1rem;
        height: 60px;
        min-width: 100px;
    }
    
    .logo-image {
        max-height: 45px;
        max-width: 100px;
    }
    
    .logo-marquee {
        animation-duration: 45s;
    }
}

@media (max-width: 480px) {
    .logo-item {
        margin: 0 0.75rem;
        height: 50px;
        min-width: 80px;
    }
    
    .logo-image {
        max-height: 35px;
        max-width: 80px;
    }
    
    .logo-marquee {
        animation-duration: 30s;
    }
}