/* Custom CSS for EventGo - Modern Redesign */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Base Styles */
:root {
    --primary-color: #ed4a43;
    --primary-hover: #d63c36;
    --primary-light: #ffeeee;
    --primary-dark: #c83933;
    --secondary-color: #2a2d3e;
    --secondary-light: #3a3f54;
    --text-color: #2c2c2c;
    --text-light: #6b7280;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --card-bg: #ffffff;
    --border-light: #e5e7eb;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --info: #3b82f6;
    --black: #111827;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    --btn-shadow: 0 4px 6px -1px rgba(237, 74, 67, 0.2);
    --header-height: 72px;
}

/* Typography */
body {
    font-family: 'Raleway', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
}

/* Text Size Adjustments */
@media (max-width: 992px) {
    p {
        font-size: 14px;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.35rem;
    }
}

@media (min-width: 993px) {
    p {
        font-size: 16px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* Custom Colors and Utility Classes */
.bg-primary {
    background-color: var(--primary-color);
}

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

.bg-secondary {
    background-color: var(--secondary-color);
}

.bg-card {
    background-color: var(--card-bg);
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

/* Legacy support for existing classes */
.bg-ed4a43 {
    background-color: var(--primary-color);
}

.text-ed4a43 {
    color: var(--primary-color);
}

.border-ed4a43 {
    border-color: var(--primary-color);
}

/* Modern Header Styles */
.modern-header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: var(--header-height);
}

/* Modern Navigation */
.nav-link {
    position: relative;
    font-weight: 600;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

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

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

.nav-link.active {
    color: var(--primary-color);
}

/* Modern Card Designs */
.modern-card {
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--card-bg);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid var(--border-light);
}

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

.modern-card img {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.2);
}

.badge-primary {
    background-color: var(--primary-color);
    color: white;
}

.badge-success {
    background-color: var(--success);
    color: white;
}

.badge-warning {
    background-color: var(--warning);
    color: white;
}

/* Modern Buttons */
.btn-modern {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    border: 2px solid var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    -webkit-transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    -moz-transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    -ms-transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    -o-transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.btn-modern.primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--btn-shadow);
}

.btn-modern.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    z-index: -1;
    border-radius: 48px;
}

.btn-modern.primary:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.btn-modern.primary:hover {
    color: var(--primary-color);
}

.btn-modern.secondary {
    background-color: var(--white);
    color: var(--secondary-color);
    border: 1px solid var(--border-light);
}

.btn-modern.secondary:hover {
    background-color: var(--bg-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.1);
}

.btn-modern.border {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    z-index: 1;
}

.btn-modern.border:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    z-index: -1;
    border-radius: 48px;
}


.btn-modern.border:hover {
    color: white;
}

.btn-modern.border:hover:before {
    transform: scaleY(1);
    transform-origin: top;
}

/* Header Buttons - Enhanced */
.header-btn {
    padding: 0.5rem 1.25rem;
}


/* Input Styles */
.input-modern {
    border-radius: 8px;
    padding: 0.75rem 1.75rem 0.75rem 1rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.input-modern:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(210, 180, 140, 0.15);
    outline: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50%;
}

.hero-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%23ed4a43" fill-opacity="0.05" fill-rule="evenodd"/%3E%3C/svg%3E');
    opacity: 0.5;
}

/* Feature Section */
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Category Cards */
.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-card:hover .category-overlay {
    opacity: 0.85;
}

.category-card:hover .category-img {
    transform: scale(1.1);
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.category-name {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    z-index: 5;
}

/* Swiper Modifications */
.swiper {
    width: 100%;
    padding-bottom: 35px;
}

.swiper-slide {
    height: auto;
}

.swiper-button-next,
.swiper-button-prev {
    background-color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

.swiper-pagination {
    bottom: 0 !important;
    line-height: 1;
}

/* Testimonial Styles */
.testimonial-card {
    border-radius: 16px;
    background-color: var(--primary-light);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    position: relative;
    height: 100%;
}

.testimonial-rating {
    color: #facc15;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* Custom Animations */
.fade-in {
    animation: fadeIn 1s forwards;
}

.slide-up {
    animation: slideUp 0.6s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Menu Styling */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu-close {
    font-size: 1.5rem;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-items {
    padding: 0 1.5rem 2rem;
}

.mobile-menu-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu-link.active {
    color: var(--primary-color);
}

/* FAQ accordion styles */
.faq-item {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.25rem;
    background-color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: var(--primary-light);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 1rem 1.25rem 1.25rem;
    background-color: white;
}

.faq-question.active {
    background-color: var(--primary-light);
}

/* Form validation styles */
input.error,
textarea.error,
select.error {
    border-color: var(--danger);
}

.error-message {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Status indicators */
.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.status-confirmed {
    background-color: #dcfce7;
    color: #166534;
}

.status-pending {
    background-color: #fef9c3;
    color: #92400e;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #b91c1c;
}

/* Utility Styles */
.shadow-soft {
    box-shadow: var(--card-shadow);
}

.rounded-xl {
    border-radius: 12px;
}

.rounded-2xl {
    border-radius: 16px;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Banner styles */
.banner-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8575 100%);
    padding: 3rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -20px rgba(210, 180, 140, 0.4);
}

.banner-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.banner-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.banner-content {
    position: relative;
    z-index: 10;
}

.banner-section .btn-modern {
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Modern Footer Styles */
.modern-footer {
    background-color: #111;
    color: white;
    padding-top: 5rem;
    padding-bottom: 2rem;
    position: relative;
}

.footer-logo {
    margin-bottom: 1.5rem;
    max-width: 180px;
}

.footer-description {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-contact-item i {
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.footer-links-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-links-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li:not(:last-of-type) {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--white);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 20px;
}

.footer-links a:hover::before {
    transform: translateX(5px);
}

.footer-stream {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.footer-stream-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.footer-stream-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.footer-stream-item:hover img {
    transform: scale(1.1);
}

.footer-stream-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(237, 74, 67, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-stream-item:hover .footer-stream-overlay {
    opacity: 1;
}

.footer-subscribe-form {
    margin-top: 1.5rem;
}

.footer-subscribe-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    color: white;
    margin-bottom: 0.75rem;
    width: 100%;
}

.footer-subscribe-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.15);
}

.footer-subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.footer-subscribe-btn {
    width: 100%;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-modern.footer-subscribe-btn::before,
.btn-modern.newsletter-submit-btn::before {
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    -ms-border-radius: 0;
    -o-border-radius: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 1.5rem;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Fix for older browsers */
.flex {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.grid {
    display: -ms-grid;
    display: grid;
}

/* 8-05 */
.input-checkbox {
    accent-color: var(--primary-color);
}

.input-select {
    appearance: none;
    background-image: url(../images/down-arrow.svg);
    background-repeat: no-repeat;
    background-size: 13px;
    background-position: 96% 50%;
}

.mobile-menu.active {
    transform: translateX(0);
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
}

.event-detail-tab::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
}

.event-detail-tab::-webkit-scrollbar-track {
    background-color: var(--border-light);
}

.event-detail-tab::-webkit-scrollbar {
    height: 6px;
}

.review-active #review-modal {
    display: flex;
}

#newsletter-form .input-modern::placeholder {
    color: var(--white);
}

/* radio button css */
.custom-radio-card {
    cursor: pointer;
    user-select: none;
}

.radio-input {
    display: none;
}

.radio-card {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.radio-card:hover {
    border-color: var(--primary-color);
}

.radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
}

.radio-circle:after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

.radio-input:checked+.radio-card {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.radio-input:checked+.radio-card .radio-circle {
    border-color: var(--primary-color);
}

.radio-input:checked+.radio-card .radio-circle:after {
    transform: translate(-50%, -50%) scale(1);
}

/* Responsive Css  */

@media screen and (max-width:1279px) {

    body,
    .hero-subtitle {
        font-size: 16px !important;
    }

    .modern-footer {
        padding-top: 4rem;
    }

    .footer-description {
        margin-bottom: 1rem;
    }
}

@media screen and (max-width:1023px) {
    .btn-modern {
        padding: 10px 15px;
        font-size: 14px;
    }

    .testimonial-card {
        padding: 1rem;
    }
}

@media screen and (max-width:767px) {

    body,
    .hero-subtitle {
        font-size: 14px !important;
    }

    /* feature sec  */
    .feature-icon,
    .footer-links-title {
        margin-bottom: 1rem;
    }

    .footer-bottom {
        margin-top: 2rem;
    }

    .modern-footer {
        padding-top: 3rem;
    }

    /* category page css  */
    #list-view {
        display: none;
    }

    button[data-view="list"] {
        display: none;
    }

    .mobile-menu-items {
        padding: 0 1rem 2rem;
    }
}
