/*
 Theme Name:   OceanWP Child - Fuel for Soul
 Theme URI:    https://fuelforsoul.lt
 Description:  OceanWP child theme for Fuel for Soul moto events
 Author:       Fuel for Soul
 Author URI:   https://fuelforsoul.lt
 Template:     oceanwp
 Version:      1.0.0
 Text Domain:  oceanwp-child
*/

/* ==========================================================================
   Google Fonts
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --accent-primary: #0066b1;
    --accent-primary-hover: #005299;
    --accent-primary-light: #e8f4fc;
    --accent-primary-border: #b3d7f0;
    --accent-secondary: #1e88e5;
    --accent-success: #10b981;
    --accent-warning: #0077c8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.08);
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
}

/* ==========================================================================
   Events Archive (List Page)
   ========================================================================== */

/* Page Hero */
.ffs-page-hero {
    padding: 60px 40px;
    text-align: center;
    background: var(--bg-white);
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.ffs-page-hero h1 {
    font-family: "Poppins", sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.ffs-page-hero h1 span {
    color: var(--accent-primary);
}

.ffs-page-hero p {
    font-family: "Poppins", sans-serif;
    font-size: 17px;
    color: var(--text-light);
    max-width: 550px;
    margin: 0 auto;
    font-weight: 400;
}

/* Events Container */
.ffs-events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 40px 80px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Event Card */
.ffs-event-card {
    position: relative;
    width: 100%;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    font-family: "Poppins", sans-serif;
    opacity: 0;
    transform: translateY(30px);
    animation: ffsFadeInUp 0.6s ease forwards;
}

.ffs-event-card:nth-child(1) {
    animation-delay: 0.1s;
}
.ffs-event-card:nth-child(2) {
    animation-delay: 0.2s;
}
.ffs-event-card:nth-child(3) {
    animation-delay: 0.3s;
}
.ffs-event-card:nth-child(4) {
    animation-delay: 0.4s;
}
.ffs-event-card:nth-child(5) {
    animation-delay: 0.5s;
}
.ffs-event-card:nth-child(6) {
    animation-delay: 0.6s;
}

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

@media (min-width: 900px) {
    .ffs-event-card {
        flex-direction: row;
        align-items: stretch;
    }
}

.ffs-event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Event Map/Image Wrapper */
.ffs-event-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ef 0%, #c9d6e3 100%);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ffs-event-image-wrapper .ffs-event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

@media (min-width: 900px) {
    .ffs-event-image-wrapper {
        width: 45%;
        height: auto;
        min-height: 100%;
    }
}

.ffs-map-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.ffs-event-map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.ffs-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 102, 177, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.ffs-map-overlay-content {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-white);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.ffs-map-overlay-content svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

.ffs-map-overlay-content span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.ffs-map-link:hover .ffs-map-overlay {
    background: rgba(0, 102, 177, 0.1);
}

.ffs-map-link:hover .ffs-map-overlay-content {
    opacity: 1;
    transform: translateY(0);
}

/* Event Content */
.ffs-event-content {
    padding: 25px 30px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: "Poppins", sans-serif;
}

@media (min-width: 900px) {
    .ffs-event-content {
        flex: 1;
        padding: 30px 35px;
    }
}

.ffs-event-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.ffs-event-date {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ffs-event-date svg {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.ffs-event-date span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.ffs-event-location {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 14px;
}

.ffs-event-location svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ffs-spots-left {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-success);
}

.ffs-spots-left svg {
    width: 16px;
    height: 16px;
}

.ffs-event-title {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.ffs-event-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Countdown Timer */
.ffs-countdown-section {
    background: linear-gradient(
        135deg,
        var(--accent-primary-light) 0%,
        #dbeafe 100%
    );
    border: 1px solid var(--accent-primary-border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 20px;
}

.ffs-countdown-section.hidden {
    display: none;
}

.ffs-countdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.ffs-countdown-header svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

.ffs-countdown-label {
    font-size: 13px;
    color: var(--accent-primary);
    letter-spacing: 0.3px;
    font-weight: 600;
}

.ffs-countdown-timer {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.ffs-countdown-item {
    background: var(--bg-white);
    border: 1px solid var(--accent-primary-border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    min-width: 60px;
    flex: 1;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.ffs-countdown-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    letter-spacing: -1px;
}

.ffs-countdown-unit {
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 3px;
    font-weight: 500;
}

@media (max-width: 500px) {
    .ffs-countdown-section {
        padding: 15px;
    }
    .ffs-countdown-timer {
        gap: 6px;
    }
    .ffs-countdown-item {
        padding: 8px 6px;
        min-width: auto;
    }
    .ffs-countdown-number {
        font-size: 18px;
    }
    .ffs-countdown-unit {
        font-size: 7px;
    }
    .ffs-countdown-label {
        font-size: 11px;
    }
    .ffs-countdown-header svg {
        width: 16px;
        height: 16px;
    }
}

/* Registration Ended */
.ffs-registration-ended {
    display: none;
    align-items: center;
    gap: 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    padding: 18px 25px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.ffs-registration-ended.show {
    display: flex;
}

.ffs-registration-ended svg {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.ffs-registration-ended span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* Event Actions */
.ffs-event-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ffs-btn-register {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-primary);
    color: white;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 177, 0.25);
}

.ffs-btn-register:hover {
    background: var(--accent-primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 177, 0.35);
}

.ffs-btn-register svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.ffs-btn-register:hover svg {
    transform: translateX(4px);
}

.ffs-btn-details {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-medium);
    font-size: 13px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    padding: 12px 18px;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.ffs-btn-details:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Archive Responsive */
@media (max-width: 1024px) {
    .ffs-page-hero {
        padding: 50px 20px;
    }
    .ffs-events-container {
        padding: 30px 20px 60px;
    }
    .ffs-event-content {
        padding: 25px;
    }
    .ffs-event-image-wrapper {
        height: 250px;
    }
}

@media (max-width: 640px) {
    .ffs-event-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .ffs-btn-register,
    .ffs-btn-details {
        justify-content: center;
        width: 100%;
    }
    .ffs-event-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ==========================================================================
   SVG Icon Overrides (prevent OceanWP/Elementor from breaking inline SVGs)
   ========================================================================== */
.ffs-events-container svg,
.ffs-main-content svg {
    display: inline-block;
    vertical-align: middle;
    fill: none;
    overflow: visible;
}

.ffs-event-date svg,
.ffs-event-location svg,
.ffs-spots-left svg,
.ffs-countdown-header svg,
.ffs-registration-ended svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
    flex-shrink: 0;
}

.ffs-btn-register svg {
    width: 18px !important;
    height: 18px !important;
}

/* ==========================================================================
   Single Event (Details Page)
   ========================================================================== */

/* Back Link */
.ffs-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: "Poppins", sans-serif;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.ffs-back-link:hover {
    color: var(--accent-primary);
}

.ffs-back-link svg {
    width: 18px;
    height: 18px;
}

/* Main Content */
.ffs-main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 40px 60px;
    font-family: "Poppins", sans-serif;
}

/* Event Header */
.ffs-event-header {
    margin-bottom: 30px;
}

.ffs-event-header .ffs-event-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

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

.ffs-event-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.ffs-event-meta-item svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.ffs-event-meta-item strong {
    color: var(--text-dark);
    font-weight: 600;
}

.ffs-event-meta-item span {
    color: var(--text-medium);
}

/* Main Card */
.ffs-main-card {
    background: var(--bg-white);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

/* Section Header - Sticky */
.ffs-section-header {
    position: sticky;
    top: 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
    padding: 18px 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: "Poppins", sans-serif;
}

.ffs-section-header svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

/* Section Content */
.ffs-section-content {
    padding: 30px;
    border-bottom: 1px solid var(--border-light);
}

.ffs-section-content:last-child {
    border-bottom: none;
}

/* Description Content */
.ffs-description-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-medium);
    font-family: "Poppins", sans-serif;
}

.ffs-description-content .lead-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.7;
}

.ffs-description-content p {
    margin-bottom: 20px;
}

.ffs-description-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 30px 0 15px;
}

.ffs-description-content ul {
    margin: 0 0 20px 0;
    padding-left: 0;
    list-style: none;
}

.ffs-description-content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
}

.ffs-description-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.ffs-description-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 25px 0;
}

/* Timeline */
.ffs-timeline {
    position: relative;
    padding-left: 40px;
}

.ffs-timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--accent-primary-border);
    border-radius: 2px;
}

.ffs-timeline-item {
    position: relative;
    padding-bottom: 25px;
}

.ffs-timeline-item:last-child {
    padding-bottom: 0;
}

.ffs-timeline-item::before {
    content: "";
    position: absolute;
    left: -40px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    border: 3px solid var(--bg-white);
    box-shadow: 0 0 0 2px var(--accent-primary);
    box-sizing: border-box;
}

.ffs-timeline-day {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.ffs-timeline-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.ffs-timeline-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Important Info List */
.ffs-important-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ffs-important-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.ffs-important-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ffs-important-list li:first-child {
    padding-top: 0;
}

.ffs-important-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ffs-important-icon svg {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
}

.ffs-important-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.ffs-important-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Map Section */
.ffs-section-content-map {
    padding: 0;
    border-bottom: none;
}

.ffs-map-container {
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, #e0e7ef 0%, #c9d6e3 100%);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ffs-map-container img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}

/* Sticky Registration Footer */
.ffs-sticky-registration {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 15px 40px;
}

.ffs-sticky-registration.hidden {
    display: none;
}

.ffs-sticky-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ffs-sticky-info-block {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    padding: 12px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    font-family: "Poppins", sans-serif;
}

.ffs-sticky-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.ffs-sticky-price-label {
    font-weight: 400;
}

.ffs-sticky-divider {
    color: var(--border-medium);
}

.ffs-sticky-date {
    font-size: 13px;
    color: var(--text-light);
}

.ffs-sticky-registration .ffs-btn-register {
    padding: 14px 30px;
    font-size: 14px;
    white-space: nowrap;
}

/* Registration Ended Notice */
.ffs-registration-ended-notice {
    display: none;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    padding: 20px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: 30px;
}

.ffs-registration-ended-notice.show {
    display: block;
}

.ffs-registration-ended-notice p {
    color: var(--text-light);
    font-size: 15px;
}

/* Single Event body padding for sticky footer */
.single-events #main {
    padding-bottom: 100px;
}

/* Single Responsive */
@media (max-width: 768px) {
    .ffs-main-content {
        padding: 30px 20px 40px;
    }
    .ffs-section-header {
        padding: 15px 25px;
        font-size: 15px;
    }
    .ffs-section-content {
        padding: 25px;
    }

    .ffs-sticky-registration {
        padding: 12px 20px;
    }
    .ffs-sticky-inner {
        gap: 15px;
    }
    .ffs-sticky-info-block {
        padding: 10px 15px;
        gap: 6px;
        flex: 1;
        justify-content: center;
    }
    .ffs-sticky-price {
        font-size: 16px;
    }
    .ffs-sticky-date {
        font-size: 12px;
    }
    .ffs-sticky-registration .ffs-btn-register {
        padding: 12px 20px;
        font-size: 13px;
    }
}

@media (max-width: 500px) {
    .ffs-sticky-info-block {
        padding: 8px 12px;
    }
    .ffs-sticky-price {
        font-size: 15px;
    }
    .ffs-sticky-date,
    .ffs-sticky-divider {
        display: none;
    }
    .ffs-sticky-registration .ffs-btn-register {
        flex: 1;
        min-width: 150px;
    }
}

/* Section animations */
.ffs-section {
    opacity: 0;
    transform: translateY(20px);
    animation: ffsFadeInUp 0.5s ease forwards;
}

.ffs-section:nth-child(1) {
    animation-delay: 0.1s;
}
.ffs-section:nth-child(2) {
    animation-delay: 0.2s;
}
.ffs-section:nth-child(3) {
    animation-delay: 0.3s;
}

/* Lightbox */
.ffs-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.ffs-lightbox.active {
    opacity: 1;
}

.ffs-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
