/**
 * Lift 'N Move - Running Events Plugin Styles
 * Primary Color: #C62128
 * Background: #010101
 * Font: BIG BLACK BEAR (Headers), Migra Extra Bold (Subheaders/Body)
 */

/* ============================================
   FONT IMPORTS
   ============================================ */

/* Note: Add custom fonts to the /fonts directory and uncomment these */
/*
@font-face {
    font-family: 'BIG BLACK BEAR';
    src: url('../fonts/BigBlackBear.woff2') format('woff2'),
         url('../fonts/BigBlackBear.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Migra';
    src: url('../fonts/Migra-ExtraBold.woff2') format('woff2'),
         url('../fonts/Migra-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
}
*/

/* Fallback fonts if custom fonts aren't available */
:root {
    --font-header: 'BIG BLACK BEAR', 'Impact', 'Arial Black', sans-serif;
    --font-body: 'Migra', 'Montserrat', 'Arial', sans-serif;
    --color-primary: #C62128;
    --color-background: #010101;
    --color-white: #FFFFFF;
    --color-gray: #666666;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */

/* Reset and force plugin styles - Override WordPress themes */
.lnm-events-container,
.lnm-events-container * {
    box-sizing: border-box !important;
}

.lnm-events-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: var(--color-background) !important;
    color: var(--color-white) !important;
    display: block !important;
    position: relative !important;
    overflow: visible !important;
}

.lnm-events-container-inner {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* ============================================
   SECTION TITLES
   ============================================ */

.lnm-section-title {
    font-family: var(--font-header);
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 30px;
    font-weight: bold;
}

.lnm-section-subtitle {
    font-family: var(--font-header);
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.lnm-run-text {
    display: block;
    color: var(--color-white);
}

.lnm-own-text {
    display: block;
    color: var(--color-primary);
}

.lnm-section-description {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-gray);
    margin-bottom: 40px;
    max-width: 600px;
}

/* ============================================
   MAIN HEADER (Top Section)
   ============================================ */

.lnm-main-header {
    max-width: 1400px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.lnm-header-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    padding: 8px 20px;
    border-radius: 25px;
    margin-bottom: 30px;
}

.lnm-header-hero {
    font-family: var(--font-header);
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.lnm-hero-line-white {
    display: block;
    color: var(--color-white);
    font-style: italic;
}

.lnm-hero-line-red {
    display: block;
    color: var(--color-primary);
    font-style: italic;
}

.lnm-header-description {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin-bottom: 0;
}

/* ============================================
   HERO EVENT SECTION
   ============================================ */

.lnm-events-container .lnm-upcoming-events-section {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 40px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 60px 0 0 0 !important;
    display: block !important;
    overflow: hidden !important;
}

.lnm-events-container .lnm-upcoming-events-section .lnm-section-title {
    max-width: 1400px !important;
    margin: 0 auto 40px auto !important;
    padding: 0 20px !important;
}

.lnm-events-container .lnm-hero-event {
    position: relative !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    min-height: 700px !important;
    height: auto !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
    padding: 0 !important;
    border-radius: 8px !important;
    border: none !important;
    box-sizing: border-box !important;
}

.lnm-events-container .lnm-hero-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to bottom, rgba(1, 1, 1, 0.2) 0%, rgba(1, 1, 1, 0.85) 100%) !important;
    display: flex !important;
    align-items: flex-end !important;
    margin: 0 !important;
    padding: 0 !important;
}

.lnm-events-container .lnm-hero-content {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 80px 40px !important;
}

.lnm-events-container .lnm-hero-title {
    font-family: var(--font-header) !important;
    font-size: 72px !important;
    line-height: 0.95 !important;
    text-transform: uppercase !important;
    color: var(--color-white) !important;
    margin-bottom: 25px !important;
    margin-top: 0 !important;
    font-weight: 900 !important;
    letter-spacing: -1px !important;
}

.lnm-events-container .lnm-hero-description {
    font-family: var(--font-body) !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
    color: var(--color-white) !important;
    margin-bottom: 45px !important;
    max-width: 650px !important;
    opacity: 0.95 !important;
}

.lnm-events-container .lnm-hero-details {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    margin-bottom: 45px !important;
    max-width: 900px !important;
}

.lnm-events-container .lnm-hero-detail-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.lnm-events-container .lnm-detail-label {
    font-family: var(--font-body) !important;
    font-size: 11px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 800 !important;
}

.lnm-events-container .lnm-detail-value {
    font-family: var(--font-body) !important;
    font-size: 16px !important;
    color: var(--color-white) !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
}

/* ============================================
   DISTANCE BADGES
   ============================================ */

.lnm-distance-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.lnm-distance-badge {
    display: inline-block !important;
    padding: 4px 12px !important;
    background-color: rgba(198, 33, 40, 0.2) !important;
    border: 1px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
    font-family: var(--font-body) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    letter-spacing: 0.5px !important;
}

/* ============================================
   REGISTRATION PRICE BADGES
   ============================================ */

.lnm-price-badge,
.lnm-free-badge {
    display: inline-block !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.lnm-price-badge {
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    border: 2px solid var(--color-primary) !important;
}

.lnm-free-badge {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--color-white) !important;
    border: 2px solid var(--color-white) !important;
}

/* ============================================
   REGISTER BUTTON
   ============================================ */

.lnm-register-btn {
    display: inline-block;
    padding: 18px 50px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.lnm-register-btn:hover {
    background-color: #A01A1F;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(198, 33, 40, 0.5);
    color: var(--color-white);
    text-decoration: none;
}

/* ============================================
   COMMUNITY EVENTS SECTION
   ============================================ */

.lnm-community-events-section {
    max-width: 1400px;
    margin: 0 auto 100px auto;
    padding: 0 20px;
}

.lnm-events-slider-wrapper {
    position: relative;
}

.lnm-events-swiper {
    width: 100%;
    overflow: hidden;
}

.lnm-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

/* ============================================
   EVENT CARDS
   ============================================ */

.lnm-event-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 30px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.lnm-event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), #ff4040);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lnm-event-card:hover::before {
    opacity: 1;
}

.lnm-event-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(198, 33, 40, 0.4);
    background-color: #222;
}

.lnm-event-card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lnm-event-title {
    font-family: var(--font-header);
    font-size: 24px;
    text-transform: uppercase;
    color: var(--color-white);
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.lnm-event-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lnm-event-distances {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lnm-event-distance-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(198, 33, 40, 0.15);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.lnm-event-card:hover .lnm-event-distance-badge {
    background-color: rgba(198, 33, 40, 0.3);
    border-color: #ff4040;
}

.lnm-event-date {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-gray);
    letter-spacing: 0.3px;
}

.lnm-event-action-btn {
    padding: 14px 28px;
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    letter-spacing: 1.5px;
    margin-top: 8px;
}

.lnm-event-action-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 33, 40, 0.4);
}

/* ============================================
   SWIPER PAGINATION
   ============================================ */

.lnm-swiper-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.lnm-swiper-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #333;
    opacity: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lnm-swiper-pagination .swiper-pagination-bullet-active {
    background-color: var(--color-primary);
    width: 30px;
    border-radius: 6px;
}

/* ============================================
   MODAL
   ============================================ */

.lnm-event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.lnm-event-modal.active {
    display: block;
}

.lnm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.lnm-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

.lnm-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--color-white);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.lnm-modal-close:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: rotate(90deg);
}

.lnm-modal-swiper {
    width: 100%;
    max-width: 900px;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.lnm-modal-swiper::-webkit-scrollbar {
    width: 8px;
}

.lnm-modal-swiper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.lnm-modal-swiper::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

.lnm-modal-event {
    width: 100%;
    min-height: auto;
    height: auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.lnm-modal-overlay-inner {
    position: relative;
    width: 100%;
    min-height: 500px;
    height: auto;
    background: linear-gradient(to bottom, rgba(1, 1, 1, 0.3) 0%, rgba(1, 1, 1, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 60px;
    box-sizing: border-box;
}

.lnm-modal-event-content {
    width: 100%;
    max-width: 700px;
}

.lnm-modal-title {
    font-family: var(--font-header);
    font-size: 52px;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 20px;
}

.lnm-modal-description {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-white);
    margin-bottom: 35px;
    max-width: 600px;
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
}

.lnm-modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.lnm-modal-detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ============================================
   MODAL NAVIGATION
   ============================================ */

.lnm-modal-nav-prev,
.lnm-modal-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--color-white);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    user-select: none;
}

.lnm-modal-nav-prev:hover,
.lnm-modal-nav-next:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.lnm-modal-nav-prev {
    left: 20px;
}

.lnm-modal-nav-next {
    right: 20px;
}

/* ============================================
   RESPONSIVE DESIGN - TABLET
   ============================================ */

@media (max-width: 1024px) {
    .lnm-events-container .lnm-hero-event {
        min-height: 650px !important;
    }

    .lnm-events-container .lnm-hero-content {
        padding: 60px 30px !important;
    }

    .lnm-events-container .lnm-hero-title {
        font-size: 56px !important;
    }

    .lnm-events-container .lnm-hero-details {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }

    .lnm-events-container .lnm-modal-title {
        font-size: 48px !important;
    }

    .lnm-events-container .lnm-section-subtitle {
        font-size: 38px !important;
    }

    .lnm-events-container .lnm-events-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    }

    .lnm-header-hero {
        font-size: 56px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */

@media (max-width: 768px) {
    .lnm-upcoming-events-section {
        margin-bottom: 30px;
        padding: 40px 0 0 0;
    }

    .lnm-main-header {
        margin-bottom: 40px;
    }

    .lnm-header-label {
        font-size: 10px;
        padding: 6px 16px;
    }

    .lnm-header-hero {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .lnm-header-description {
        font-size: 16px;
    }

    .lnm-hero-event {
        min-height: 600px;
    }

    .lnm-hero-content {
        padding: 40px 20px;
    }

    .lnm-hero-title {
        font-size: 42px;
        line-height: 1;
        margin-bottom: 20px;
    }

    .lnm-hero-description {
        font-size: 15px;
        margin-bottom: 30px;
        line-height: 1.6;
    }

    .lnm-hero-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 35px;
    }

    .lnm-detail-label {
        font-size: 10px;
    }

    .lnm-detail-value {
        font-size: 14px;
    }

    .lnm-register-btn {
        padding: 16px 40px;
        font-size: 12px;
        width: 100%;
        text-align: center;
    }

    .lnm-community-events-section {
        padding: 0 20px;
        margin-bottom: 70px;
    }

    .lnm-section-subtitle {
        font-size: 32px;
    }

    .lnm-section-description {
        font-size: 15px;
    }

    .lnm-events-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .lnm-event-card {
        padding: 25px 20px;
    }

    .lnm-event-title {
        font-size: 20px;
    }

    .lnm-event-action-btn {
        width: 100%;
    }

    /* Modal Mobile Styles */
    .lnm-modal-content {
        padding: 70px 10px 30px 10px;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .lnm-modal-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 28px;
        position: fixed;
        z-index: 10001;
    }

    .lnm-modal-swiper {
        max-height: calc(100vh - 100px);
        height: auto;
        overflow-y: auto;
    }

    .lnm-modal-event {
        min-height: auto;
        height: auto;
    }

    .lnm-modal-overlay-inner {
        padding: 40px 20px;
        min-height: auto;
        align-items: flex-start;
        padding-top: 60px;
    }

    .lnm-modal-title {
        font-size: 32px;
        line-height: 1.1;
        margin-bottom: 15px;
    }

    .lnm-modal-description {
        font-size: 14px;
        margin-bottom: 25px;
        max-height: none;
        line-height: 1.5;
    }

    .lnm-modal-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 25px;
    }

    .lnm-modal-nav-prev,
    .lnm-modal-nav-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .lnm-modal-nav-prev {
        left: 10px;
    }

    .lnm-modal-nav-next {
        right: 10px;
    }

    .lnm-distance-badges {
        gap: 6px;
    }

    .lnm-distance-badge {
        font-size: 10px;
        padding: 3px 10px;
    }

    .lnm-event-distance-badge {
        font-size: 10px;
        padding: 5px 12px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - SMALL MOBILE
   ============================================ */

@media (max-width: 480px) {
    .lnm-hero-event {
        min-height: 550px;
    }

    .lnm-hero-title {
        font-size: 36px;
        line-height: 0.95;
    }

    .lnm-hero-description {
        font-size: 14px;
    }

    .lnm-hero-details {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .lnm-section-subtitle {
        font-size: 28px;
    }

    .lnm-header-hero {
        font-size: 32px;
    }

    .lnm-header-description {
        font-size: 15px;
    }

    .lnm-modal-title {
        font-size: 28px;
        line-height: 1.05;
    }

    .lnm-modal-description {
        font-size: 13px;
        max-height: none;
    }

    .lnm-modal-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .lnm-modal-overlay-inner {
        padding: 40px 15px;
        padding-top: 50px;
    }

    .lnm-distance-badge {
        font-size: 9px;
        padding: 3px 8px;
    }

    .lnm-event-distance-badge {
        font-size: 9px;
        padding: 4px 10px;
    }

    .lnm-modal-swiper {
        max-height: calc(100vh - 80px);
    }
}

/* ============================================
   LOADING STATE
   ============================================ */

.lnm-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-gray);
    font-family: var(--font-body);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.lnm-register-btn:focus,
.lnm-event-action-btn:focus,
.lnm-modal-close:focus,
.lnm-modal-nav-prev:focus,
.lnm-modal-nav-next:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
