/* EventEt Mobile Styles */

:root {
    --primary: #38e07b;
    --background-light: #f6f8f7;
    --background-dark: #122017;
    --text-dark: #122017;
    --text-light: #f6f8f7;
}

/* Dark Mode Support */
.dark {
    --bg-primary: var(--background-dark);
    --text-primary: var(--text-light);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    display: none;
}

.custom-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Slide Animation */
@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.animate-slide {
    animation: slide 15s linear infinite;
}

/* Carousel Animation */
@keyframes carousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-200%);
    }
}

.animate-carousel {
    animation: carousel 20s linear infinite;
}

/* Mobile Header Styles */
.mobile-header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Search Input Styles */
.mobile-search input {
    background-color: rgba(243, 244, 246, 0.5);
}

.dark .mobile-search input {
    background-color: rgba(18, 32, 23, 0.5);
    color: var(--text-light);
}

/* Bottom Navigation Styles */
.mobile-bottom-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem;
}

.mobile-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    padding: 0.175rem 0;
    color: #9ca3af;
    transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-bottom-nav__item p {
    margin: 0;
}

.mobile-bottom-nav__item--active {
    color: var(--primary);
}

.mobile-bottom-nav__item:active {
    transform: scale(0.96);
}

/* Event Card Styles */
.event-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Package Card Styles */
.package-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Banner Section */
.banner-section {
    background: linear-gradient(135deg, var(--primary) 0%, #2dd36f 100%);
}

/* Horizontal Scroll Container */
.horizontal-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

/* Material Icons */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga';
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
}

/* Button Styles */
.btn-primary-mobile {
    background-color: var(--primary);
    color: var(--text-dark);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary-mobile:hover {
    background-color: #2dd36f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 224, 123, 0.3);
}

/* Special Offer Banner */
.special-offer-banner {
    background-color: var(--primary);
    color: var(--text-dark);
    padding: 12px 16px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
}

/* Scrolling Features Section */
.scrolling-features {
    background-color: var(--background-dark);
    padding: 16px 0;
    overflow: hidden;
}

.scrolling-features .feature-item {
    display: inline-flex;
    align-items: center;
    padding: 0 32px;
    white-space: nowrap;
}

.scrolling-features .feature-icon {
    color: var(--primary);
    margin-right: 8px;
    font-size: 20px;
}

.scrolling-features .feature-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

/* Mobile-Only Display - Legacy support for custom classes */
@media (min-width: 768px) {
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }
}

/* Ensure mobile nav is visible on mobile */
@media (max-width: 767px) {
    .mobile-only {
        display: block !important;
    }

    .mobile-bottom-nav.mobile-only {
        display: flex !important;
    }
}

/* Ensure desktop header is visible on desktop and tablets */
@media (min-width: 768px) {
    .desktop-only {
        display: block !important;
    }
}

/* Tablet-specific adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Ensure proper spacing for tablet header */
    header.hidden.md\:block {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Fix for iOS Safe Area */
@supports (padding: max(0px)) {
    .mobile-bottom-nav {
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
}

/* Ensure content doesn't hide behind bottom nav on mobile */
@media (max-width: 767px) {
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}
