/**
 * Event View Page - Modern UI/UX Enhancement Stylesheet
 * Provides clear, structured, and consistent design
 */

/* ================================
   CSS Custom Properties (Design System)
   ================================ */
:root {
    /* Primary Colors */
    --ev-primary: #dc3545;
    --ev-primary-dark: #bb2d3b;
    --ev-primary-light: #f8d7da;

    /* Secondary Colors */
    --ev-secondary: #6c757d;
    --ev-secondary-dark: #495057;
    --ev-secondary-light: #e9ecef;

    /* Success/Warning/Error */
    --ev-success: #198754;
    --ev-warning: #ffc107;
    --ev-error: #dc3545;
    --ev-info: #0dcaf0;

    /* Neutral Colors */
    --ev-white: #ffffff;
    --ev-gray-100: #f8f9fa;
    --ev-gray-200: #e9ecef;
    --ev-gray-300: #dee2e6;
    --ev-gray-400: #ced4da;
    --ev-gray-500: #adb5bd;
    --ev-gray-600: #6c757d;
    --ev-gray-700: #495057;
    --ev-gray-800: #343a40;
    --ev-gray-900: #212529;

    /* Typography */
    --ev-font-primary: 'DM Sans', 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ev-font-size-xs: 0.75rem;
    --ev-font-size-sm: 0.875rem;
    --ev-font-size-base: 1rem;
    --ev-font-size-lg: 1.125rem;
    --ev-font-size-xl: 1.25rem;
    --ev-font-size-2xl: 1.5rem;
    --ev-font-size-3xl: 1.875rem;

    /* Spacing */
    --ev-space-xs: 0.25rem;
    --ev-space-sm: 0.5rem;
    --ev-space-md: 1rem;
    --ev-space-lg: 1.5rem;
    --ev-space-xl: 2rem;
    --ev-space-2xl: 3rem;

    /* Border Radius */
    --ev-radius-sm: 0.375rem;
    --ev-radius-md: 0.5rem;
    --ev-radius-lg: 0.75rem;
    --ev-radius-xl: 1rem;
    --ev-radius-full: 9999px;

    /* Shadows */
    --ev-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --ev-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --ev-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --ev-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --ev-transition-fast: 150ms ease;
    --ev-transition-normal: 250ms ease;
    --ev-transition-slow: 350ms ease;
}

/* ================================
   Base Typography Enhancements
   ================================ */
/*body {*/
    /*font-family: var(--ev-font-primary);*/
    /*color: var(--ev-gray-800); line-height: 1.6;
}*/

h1, h2, h3, h4, h5, h6 {
    font-weight: 600; line-height: 1.3;
}

/* Section Headers with Modern Styling */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--ev-space-lg);
    padding-bottom: var(--ev-space-md);
    border-bottom: 2px solid var(--ev-gray-200);
}

.section-header h3,
.section-header .h3 {
    font-size: var(--ev-font-size-xl);
    font-weight: 700;
    color: var(--ev-gray-900);
    margin: 0;
}

.section-header i {
    font-size: 1.25em;
    margin-right: var(--ev-space-sm);
    color: var(--ev-primary);
}

/* ================================
   Modern Card Styles
   ================================ */
.ev-card {
    background: var(--ev-white);
    border-radius: var(--ev-radius-lg);
    box-shadow: var(--ev-shadow-md);
    border: 1px solid var(--ev-gray-200);
    transition: transform var(--ev-transition-normal), box-shadow var(--ev-transition-normal);
    overflow: hidden;
}

.ev-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ev-shadow-lg);
}

.ev-card-header {
    padding: var(--ev-space-md) var(--ev-space-lg);
    background: var(--ev-gray-100);
    border-bottom: 1px solid var(--ev-gray-200);
    font-weight: 600;
}

.ev-card-body {
    padding: var(--ev-space-lg);
}

.ev-card-footer {
    padding: var(--ev-space-md) var(--ev-space-lg);
    background: var(--ev-gray-50);
    border-top: 1px solid var(--ev-gray-200);
}

/* Enhanced Event Details Card */
.evt-part-hed {
    border-radius: var(--ev-radius-lg) !important;
    box-shadow: var(--ev-shadow-md) !important;
    border: 1px solid var(--ev-gray-200);
    transition: box-shadow var(--ev-transition-normal);
}

.evt-part-hed:hover {
    box-shadow: var(--ev-shadow-lg) !important;
}

/* Event Title Enhancement */
#h1EventTitle {
    font-size: var(--ev-font-size-2xl);
}

/* ================================
   Stats/Metrics Cards
   ================================ */
.ovarratin {
    border-radius: var(--ev-radius-md);
    transition: background-color var(--ev-transition-fast);
}

.ovarratin:hover {
    background-color: var(--ev-gray-100);
}

/* View count, Interested, Rating boxes */
.bg-white.shadow-sm.rounded {
    border-radius: var(--ev-radius-md) !important;
    border: 1px solid var(--ev-gray-200);
    transition: all var(--ev-transition-normal);
}

.bg-white.shadow-sm.rounded:hover {
    box-shadow: var(--ev-shadow-md) !important;
    border-color: var(--ev-gray-300);
}

/* ================================
   Modern Button Styles
   ================================ */
/*.btn {
    font-weight: 500;
    border-radius: var(--ev-radius-md);
    padding: var(--ev-space-sm) var(--ev-space-md);
    transition: all var(--ev-transition-fast);
}*/

.btn-primary-c {
    background: linear-gradient(135deg, var(--ev-primary) 0%, var(--ev-primary-dark) 100%);
    border: none;
    color: white;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-primary-c:hover {
    background: linear-gradient(135deg, var(--ev-primary-dark) 0%, #a71d2a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
}

.btn-secondary-c {
    background: var(--ev-gray-600);
    border: none;
    color: white;
}

.btn-secondary-c:hover {
    background: var(--ev-gray-700);
    transform: translateY(-1px);
}

/* Register Button Enhancement */
.register-btn {
    border-radius: var(--ev-radius-lg) !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.35);
    transition: all var(--ev-transition-normal);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.45);
}

/* ================================
   Left Navigation Menu Enhancement
   ================================ */
.left-bar-menu {
    background: var(--ev-white);
    border-radius: var(--ev-radius-lg);
    box-shadow: var(--ev-shadow-lg);
}

.leftmenubar .nav-link:hover {
    background-color: var(--ev-gray-100);
    transform: scale(1.02);
}

.leftmenubar .nav-link.active,
.leftmenubar .nav-link:hover {
    background-color: var(--ev-primary) !important;
    color: white !important;
}

.leftmenubar .nav-link.active i,
.leftmenubar .nav-link:hover i {
    color: white !important;
}

.leftmenubar .nav-link small {
    font-size: var(--ev-font-size-xs);
    font-weight: 500;
    transition: color var(--ev-transition-fast);
}

/* ================================
   Event Image/Banner Enhancement
   ================================ */
.event-View-detail {
    border-radius: var(--ev-radius-xl) !important;
    overflow: hidden;
    box-shadow: var(--ev-shadow-lg);
}

.event-View-detail img {
    transition: transform var(--ev-transition-slow);
}

.event-View-detail:hover img {
    transform: scale(1.02);
}

/* Share button enhancement */

/*.share-icon-block .dropdown-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--ev-shadow-lg);
}
*/
/* ================================
   Location Card Enhancement
   ================================ */

#liLocation .icon-location {
    font-size: 1.5rem;
    color: var(--ev-primary);
}

.map-block-box {
    border-radius: var(--ev-radius-md);
    overflow: hidden;
}

/* ================================
   Agenda/Schedule Section
   ================================ */
#Agenda_block {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.agenda_list li {
    border-radius: var(--ev-radius-md);
/*    border: 2px solid transparent;*/
    transition: all var(--ev-transition-normal);
}

.agenda_list li:hover {
    background-color: var(--ev-gray-100);
    border-color: var(--ev-gray-300);
}

/*.agenda_list li.active {
    background-color: var(--ev-primary-light);
    border-color: var(--ev-primary);
}*/

.agenda_list li.active label {
    color: var(--ev-primary-dark);
}

/* Topic/Session Cards */
.topic-desi {
    border-radius: var(--ev-radius-lg) !important;
    border: 1px solid var(--ev-gray-200);
}
#TopicDatesul li:hover .iconSize-nor, #TopicDatesul li.active .iconSize-nor {
    --bs-bg-opacity: 0.25;
    background-color: rgba(var(--bs-white-rgb), var(--bs-bg-opacity)) !important;
}
#TopicDatesul li:hover .iconSize-nor i, #TopicDatesul li.active .iconSize-nor i {
    color: #fff !important;
}

/* ================================
   Skeleton Loaders
   ================================ */
.skeleton-loader {
    background: linear-gradient(90deg, var(--ev-gray-200) 25%, var(--ev-gray-300) 50%, var(--ev-gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--ev-radius-md);
}

.skeleton-text {
    height: 1em;
    margin-bottom: var(--ev-space-sm);
}

.skeleton-text.short { width: 40%; }
.skeleton-text.medium { width: 70%; }
.skeleton-text.long { width: 90%; }

.skeleton-image {
    width: 100%;
    height: 200px;
}

.skeleton-card {
    padding: var(--ev-space-lg);
    background: var(--ev-white);
    border-radius: var(--ev-radius-lg);
    box-shadow: var(--ev-shadow-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty state for partial-data containers */
.partial-data:empty {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.partial-data:empty::before {
    content: '';
    position: absolute;
    inset: var(--ev-space-md);
    background: linear-gradient(90deg, var(--ev-gray-200) 25%, var(--ev-gray-300) 50%, var(--ev-gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--ev-radius-md);
}

/* ================================
   Loading States
   ================================ */
#loading-dots {
    background: linear-gradient(135deg, var(--ev-warning) 0%, #ffda6a 100%) !important;
    border-radius: 0 0 var(--ev-radius-lg) var(--ev-radius-lg);
    box-shadow: var(--ev-shadow-lg);
}

#loading-dots .loading-dot {
    width: 12px;
    height: 12px;
    background: var(--ev-gray-800);
    border-radius: 50%;
    margin: 0 4px;
    animation: dot-bounce 1.4s ease-in-out infinite both;
}

#loading-dots .loading-dot:nth-child(1) { animation-delay: -0.32s; }
#loading-dots .loading-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes dot-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Button loading state */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 1.2em;
    height: 1.2em;
    top: 50%;
    left: 50%;
    margin: -0.6em 0 0 -0.6em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner 0.75s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* ================================
   Alert Messages Enhancement
   ================================ */
#divWarningAlert,
#divSuccessAlert,
#divErrorAlert {
    max-width: 450px;
    border-radius: var(--ev-radius-lg) !important;
    box-shadow: var(--ev-shadow-xl);
    border: none;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#divSuccessAlert {
    background: linear-gradient(135deg, #d1e7dd 0%, #badbcc 100%);
    border-left: 4px solid var(--ev-success);
}

#divWarningAlert {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border-left: 4px solid var(--ev-warning);
}

#divErrorAlert {
    background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
    border-left: 4px solid var(--ev-error);
}

/* ================================
   Sponsors/Exhibitors Section
   ================================ */
.sponsor-card,
.exhibitor-card {
    border-radius: var(--ev-radius-lg);
    overflow: hidden;
    transition: all var(--ev-transition-normal);
    border: 1px solid var(--ev-gray-200);
}

.sponsor-card:hover,
.exhibitor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ev-shadow-lg);
    border-color: var(--ev-primary);
}

/* ================================
   Speakers Section
   ================================ */
.speaker-card {
    text-align: center;
    padding: var(--ev-space-lg);
    border-radius: var(--ev-radius-lg);
    background: var(--ev-white);
    border: 1px solid var(--ev-gray-200);
    transition: all var(--ev-transition-normal);
}

.speaker-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ev-shadow-lg);
}

.speaker-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ev-gray-200);
    transition: border-color var(--ev-transition-normal);
}

.speaker-card:hover img {
    border-color: var(--ev-primary);
}

/* ================================
   FAQ Section
   ================================ */
.accordion-item {
    border: 1px solid var(--ev-gray-200) !important;
    border-radius: var(--ev-radius-md) !important;
    margin-bottom: var(--ev-space-sm);
    overflow: hidden;
}

.accordion-button {
    font-weight: 500;
    padding: var(--ev-space-md) var(--ev-space-lg);
}

.accordion-button:not(.collapsed) {
    background-color: var(--ev-primary-light);
    color: var(--ev-primary-dark);
}

.accordion-body {
    padding: var(--ev-space-lg);
    background: var(--ev-gray-100);
}

/* ================================
   Rating Stars Enhancement
   ================================ */
.jstars-filled {
    color: #ffc107 !important;
}

.rating_box {
    padding: var(--ev-space-md);
    border-radius: var(--ev-radius-md);
}

/* ================================
   Contact Card Enhancement
   ================================ */
.contact-card {
    background: var(--ev-white);
    border-radius: var(--ev-radius-lg);
    padding: var(--ev-space-lg);
    box-shadow: var(--ev-shadow-md);
    border: 1px solid var(--ev-gray-200);
}

.contact-card .icon-whatsapp {
    color: #25d366;
    font-size: 1.25rem;
}

/* ================================
   Accessibility Improvements
   ================================ */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--ev-primary);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ev-gray-900);
    color: var(--ev-white);
    padding: var(--ev-space-sm) var(--ev-space-lg);
    border-radius: 0 0 var(--ev-radius-md) var(--ev-radius-md);
    z-index: 10000;
    text-decoration: none;
    font-weight: 500;
    transition: top var(--ev-transition-fast);
}

.skip-link:focus {
    top: 0;
    color: var(--ev-white);
}

/* ================================
   Form Enhancements
   ================================ */
.form-control,
.form-select {
    border-radius: var(--ev-radius-md);
    border: 1px solid var(--ev-gray-300);
    padding: var(--ev-space-sm) var(--ev-space-md);
    transition: all var(--ev-transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ev-primary);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.form-control.is-invalid {
    border-color: var(--ev-error);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

/* Search input enhancement */
#searchoftopics {
    border-radius: var(--ev-radius-full);
    padding-left: var(--ev-space-lg);
}

/* ================================
   Modal Enhancements
   ================================ */
.modal-content {
    border-radius: var(--ev-radius-xl);
    border: none;
    box-shadow: var(--ev-shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--ev-gray-200);
    padding: var(--ev-space-lg);
}

.modal-body {
    padding: var(--ev-space-xl);
}

.modal-footer {
    border-top: 1px solid var(--ev-gray-200);
    padding: var(--ev-space-lg);
}

/* ================================
   Toast Enhancement
   ================================ */
.toast {
    border-radius: var(--ev-radius-lg);
    box-shadow: var(--ev-shadow-xl);
    border: none;
}

.toast-header {
    border-radius: var(--ev-radius-lg) var(--ev-radius-lg) 0 0;
    border-bottom: 1px solid var(--ev-gray-200);
}

/* ================================
   Coupon/Discount Banner
   ================================ */
#CodeDiv {
    border-radius: var(--ev-radius-lg);
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%) !important;
    border: 1px dashed var(--ev-warning);
    animation: pulse-subtle 2s infinite;
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

/* ================================
   Responsive Adjustments
   ================================ */
@media (max-width: 991px) {
    .left-bar-menu {
        border-radius: var(--ev-radius-md);
    }

    .evt-part-hed {
        border-radius: var(--ev-radius-md) !important;
    }

    #h1EventTitle {
        font-size: var(--ev-font-size-xl);
    }
}

@media (max-width: 575px) {
    .register-btn {
        border-radius: var(--ev-radius-md) !important;
    }

    .ev-card-body {
        padding: var(--ev-space-md);
    }

    #h1EventTitle {
        font-size: var(--ev-font-size-lg);
    }
}

/* ================================
   Reduced Motion Support
   ================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .skeleton-loader {
        animation: none;
        background: var(--ev-gray-200);
    }

    .ev-card:hover,
    .sponsor-card:hover,
    .exhibitor-card:hover,
    .speaker-card:hover {
        transform: none;
    }
}

/* ================================
   Print Styles
   ================================ */
@media print {
    .left-bar-menu,
    .share-icon-block,
    .btn,
    #loading-dots,
    .skip-link {
        display: none !important;
    }

    .ev-card,
    .evt-part-hed {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
}
