/* ============================================
   TRADE SHOWS 2026 - Dynamic Interactive Page
   ============================================ */

/* Hero Section with Parallax */
.ts-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.ts-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ts-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Fallback for image if needed */
.ts-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.ts-hero-slide.active {
    opacity: 1;
}

.ts-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

.ts-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.ts-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 30px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease 0.3s both;
}

.ts-hero-title {
    font-size: clamp(48px, 10vw, 120px);
    font-weight: 200;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin: 0 0 20px;
    line-height: 1;
    animation: fadeInUp 1s ease 0.5s both;
}

.ts-hero-title span {
    display: block;
    font-size: 0.5em;
    font-weight: 300;
    letter-spacing: 20px;
    margin-top: 10px;
    background: linear-gradient(90deg, #fff 0%, #ccc 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ts-hero-subtitle {
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.8;
    margin: 0;
    animation: fadeInUp 1s ease 0.7s both;
}

.ts-hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeIn 1s ease 1.2s both;
}

.ts-hero-scroll span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    opacity: 0.6;
}

.ts-scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin: 0 auto;
    position: relative;
}

.ts-scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}

/* Timeline Navigation */
.ts-timeline {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    border-bottom: 1px solid var(--color-border, #e5e5e5);
    padding: 0;
    transition: box-shadow 0.3s ease;
}

.ts-timeline.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ts-timeline-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 25px 0;
    max-width: 900px;
    margin: 0 auto;
}

.ts-timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-light, #666);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    padding: 0 15px;
}

.ts-timeline-item:hover,
.ts-timeline-item.active {
    color: var(--color-primary, #000);
}

.ts-timeline-month {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.ts-timeline-days {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 2px;
}

.ts-timeline-item:hover .ts-timeline-days,
.ts-timeline-item.active .ts-timeline-days {
    opacity: 1;
}

.ts-timeline-city {
    font-size: 13px;
    margin-top: 4px;
    font-weight: 400;
}

.ts-timeline-dot {
    width: 12px;
    height: 12px;
    background: var(--color-border, #e5e5e5);
    border-radius: 50%;
    margin-top: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.ts-timeline-item:hover .ts-timeline-dot,
.ts-timeline-item.active .ts-timeline-dot {
    background: var(--color-primary, #000);
    transform: scale(1.3);
}

.ts-timeline-item.active .ts-timeline-dot::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid var(--color-primary, #000);
    border-radius: 50%;
    animation: pulseDot 2s ease infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0; }
}

.ts-timeline-progress {
    position: absolute;
    bottom: 31px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-border, #e5e5e5);
    z-index: 1;
}

.ts-timeline-progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: var(--color-primary, #000);
    transition: width 0.3s ease;
}

/* Intro Section */
.ts-intro {
    padding: 100px 0;
    background: var(--color-bg, #fff);
}

.ts-intro-content {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
}

.ts-intro-content h2 {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 25px;
    color: var(--color-primary, #000);
}

.ts-intro-lead {
    font-size: 20px;
    line-height: 1.8;
    color: var(--color-text, #333);
    margin: 0 0 15px;
    font-weight: 300;
}

.ts-intro-content p:last-of-type {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-light, #666);
    margin: 0;
}

.ts-intro-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.ts-stat {
    text-align: center;
}

.ts-stat-number {
    display: block;
    font-size: 64px;
    font-weight: 200;
    color: var(--color-primary, #000);
    line-height: 1;
    margin-bottom: 10px;
}

.ts-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-light, #666);
}

/* Event Cards */
.ts-events {
    padding: 60px 0 120px;
    background: linear-gradient(180deg, var(--color-bg-light, #f9f9f9) 0%, white 100%);
}

.ts-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: white;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.ts-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.ts-card:nth-child(even) {
    direction: rtl;
}

.ts-card:nth-child(even) > * {
    direction: ltr;
}

.ts-card:last-child {
    margin-bottom: 0;
}

.ts-card-media {
    position: relative;
    overflow: hidden;
    min-height: 450px;
}

.ts-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.ts-card:hover .ts-card-media img {
    transform: scale(1.05);
}

.ts-card-countdown {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 4px;
}

.ts-card:nth-child(even) .ts-card-countdown {
    left: auto;
    right: 20px;
}

.ts-countdown-item {
    text-align: center;
    color: white;
    min-width: 50px;
}

.ts-countdown-value {
    display: block;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
}

.ts-countdown-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-top: 5px;
    display: block;
}

.ts-card-booth {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary, #000);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ts-card:nth-child(even) .ts-card-booth {
    left: auto;
    right: 20px;
}

.ts-card-body {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ts-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--color-border, #e5e5e5);
}

.ts-card-date {
    text-align: left;
}

.ts-card-day {
    display: block;
    font-size: 48px;
    font-weight: 200;
    line-height: 1;
    color: var(--color-primary, #000);
}

.ts-card-month-year {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-light, #666);
    margin-top: 8px;
    display: block;
}

.ts-card-location {
    text-align: right;
}

.ts-card-city {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary, #000);
}

.ts-card-country {
    font-size: 13px;
    color: var(--color-text-light, #666);
    display: block;
    margin-top: 4px;
}

.ts-card-title {
    font-size: 26px;
    font-weight: 400;
    margin: 0 0 15px;
    color: var(--color-primary, #000);
    letter-spacing: 0.5px;
}

.ts-card-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-light, #666);
    margin: 0 0 20px;
}

.ts-card-venue {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--color-text-light, #666);
    margin-bottom: 30px;
    padding: 15px;
    background: var(--color-bg-light, #f9f9f9);
    border-radius: 4px;
}

.ts-card-venue svg {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.5;
}

.ts-card-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ts-card-bg-accent {
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(0,0,0,0.02) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Buttons */
.ts-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ts-btn-primary {
    background: var(--color-primary, #000);
    color: white;
    border-color: var(--color-primary, #000);
}

.ts-btn-primary:hover {
    background: transparent;
    color: var(--color-primary, #000);
}

.ts-btn-outline {
    background: transparent;
    color: var(--color-primary, #000);
    border-color: var(--color-border, #e5e5e5);
}

.ts-btn-outline:hover {
    border-color: var(--color-primary, #000);
    background: var(--color-primary, #000);
    color: white;
}

.ts-btn-lg {
    padding: 18px 40px;
    font-size: 13px;
}

/* Map Section */
.ts-map-section {
    padding: 100px 0;
    background: var(--color-bg-light, #f9f9f9);
    position: relative;
    z-index: 1;
}

.ts-section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 60px;
    color: var(--color-primary, #000);
}

.ts-europe-map {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Leaflet map */
.ts-leaflet-map {
    width: 100%;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

/* Flag marker styling */
.ts-flag-marker {
    background: transparent;
    border: none;
}

.ts-flag-marker img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ts-flag-marker:hover img {
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

/* Popup styling */
.ts-map-popup {
    font-family: inherit;
    line-height: 1.5;
}

.ts-map-popup strong {
    font-size: 14px;
}

.ts-map-popup small {
    color: #666;
}

.ts-map-popup a {
    display: inline-block;
    margin-top: 6px;
    color: var(--color-primary, #1a1a1a);
    font-weight: 500;
    text-decoration: none;
}

.ts-map-popup a:hover {
    text-decoration: underline;
}

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.leaflet-popup-content {
    margin: 12px 14px;
}

@media (max-width: 768px) {
    .ts-leaflet-map {
        height: 350px;
        border-radius: 12px;
    }
}

@keyframes markerPulse {
    0% { opacity: 0.4; r: 8; }
    100% { opacity: 0; r: 30; }
}

.ts-marker-label {
    font-size: 11px;
    font-weight: 600;
    text-anchor: middle;
    fill: var(--color-text, #333);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.ts-cta {
    padding: 120px 0;
    background: var(--color-primary, #000);
    color: white;
}

.ts-cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.ts-cta h2 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    margin: 0 0 20px;
}

.ts-cta p {
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.85;
    margin: 0 0 40px;
}

.ts-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.ts-cta .ts-btn-primary {
    background: white;
    color: var(--color-primary, #000);
    border-color: white;
}

.ts-cta .ts-btn-primary:hover {
    background: transparent;
    color: white;
}

.ts-cta .ts-btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.ts-cta .ts-btn-outline:hover {
    background: white;
    color: var(--color-primary, #000);
    border-color: white;
}

.ts-cta-contact {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.ts-contact-item {
    text-align: center;
}

.ts-contact-item strong {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
    margin-bottom: 8px;
    font-weight: 400;
}

.ts-contact-item a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: opacity 0.3s ease;
}

.ts-contact-item a:hover {
    opacity: 0.7;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AOS-like scroll animations */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
    .ts-card {
        grid-template-columns: 1fr;
    }

    .ts-card:nth-child(even) {
        direction: ltr;
    }

    .ts-card-media {
        min-height: 350px;
    }

    .ts-card:nth-child(even) .ts-card-countdown,
    .ts-card:nth-child(even) .ts-card-booth {
        left: 20px;
        right: auto;
    }

    .ts-card-body {
        padding: 40px;
    }

    .ts-intro-stats {
        gap: 50px;
    }

    .ts-stat-number {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .ts-hero {
        height: 80vh;
        min-height: 500px;
    }

    .ts-hero-title {
        letter-spacing: 4px;
    }

    .ts-hero-title span {
        letter-spacing: 10px;
    }

    .ts-timeline-track {
        overflow-x: auto;
        justify-content: flex-start;
        gap: 10px;
        padding: 20px 10px;
        -webkit-overflow-scrolling: touch;
    }

    .ts-timeline-item {
        flex-shrink: 0;
        padding: 0 10px;
    }

    .ts-intro {
        padding: 60px 0;
    }

    .ts-intro-content h2 {
        font-size: 28px;
    }

    .ts-intro-lead {
        font-size: 18px;
    }

    .ts-intro-stats {
        flex-direction: column;
        gap: 30px;
    }

    .ts-stat-number {
        font-size: 56px;
    }

    .ts-events {
        padding: 40px 0 80px;
    }

    .ts-card {
        margin-bottom: 50px;
    }

    .ts-card-media {
        min-height: 280px;
    }

    .ts-card-body {
        padding: 30px 25px;
    }

    .ts-card-header {
        flex-direction: column;
        gap: 15px;
    }

    .ts-card-location {
        text-align: left;
    }

    .ts-card-day {
        font-size: 36px;
    }

    .ts-card-title {
        font-size: 22px;
    }

    .ts-card-actions {
        flex-direction: column;
    }

    .ts-btn {
        width: 100%;
        justify-content: center;
    }

    .ts-countdown-value {
        font-size: 22px;
    }

    .ts-countdown-item {
        min-width: 40px;
    }

    .ts-map-section {
        padding: 60px 0;
    }

    .ts-section-title {
        font-size: 22px;
        margin-bottom: 40px;
    }

    .ts-cta {
        padding: 80px 0;
    }

    .ts-cta h2 {
        font-size: 26px;
    }

    .ts-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .ts-btn-lg {
        width: 100%;
        max-width: 300px;
    }

    .ts-cta-contact {
        flex-direction: column;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .ts-hero {
        height: 70vh;
    }

    .ts-hero-badge {
        font-size: 10px;
        padding: 8px 20px;
        letter-spacing: 2px;
    }

    .ts-hero-subtitle {
        letter-spacing: 2px;
    }

    .ts-card-countdown {
        padding: 12px 15px;
        gap: 8px;
    }

    .ts-countdown-value {
        font-size: 18px;
    }

    .ts-countdown-label {
        font-size: 8px;
    }

    .ts-countdown-item {
        min-width: 35px;
    }

    .ts-card-booth {
        font-size: 11px;
        padding: 10px 15px;
    }
}

/* Print styles */
@media print {
    .ts-hero,
    .ts-timeline,
    .ts-map-section,
    .ts-card-countdown {
        display: none;
    }

    .ts-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
