/**
 * Geo2Mo Réalisations Slider Styles
 * Modern, animated design matching React component inspiration
 */

/* CSS Variables */
:root {
    --geo2mo-primary: #F1D612;
    --geo2mo-dark: #0f172a;
    --geo2mo-white: #ffffff;
    --geo2mo-gray-300: #cbd5e1;
    --geo2mo-gray-400: #94a3b8;
    --geo2mo-gray-500: #64748b;
    --geo2mo-transition-fast: 0.3s ease;
    --geo2mo-transition-medium: 0.5s ease;
    --geo2mo-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --geo2mo-shadow-lg: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
}

/* Container */
.geo2mo-rs-container {
    padding: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .geo2mo-rs-container {
        padding: 2rem;
    }
}

/* Header */
.geo2mo-rs-header {
    text-align: center;
    margin-bottom: 3rem;
}

.geo2mo-rs-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--geo2mo-white);
    margin: 0 0 0.5rem 0;
}

@media (min-width: 768px) {
    .geo2mo-rs-title {
        font-size: 3rem;
    }
}

.geo2mo-rs-subtitle {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    font-size: 1rem;
}

/* Cards Container */
.geo2mo-rs-cards-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .geo2mo-rs-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .geo2mo-rs-cards-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Card Styles */
/* Card Styles - Editorial Grid Layout */
.geo2mo-rs-card {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 0;
    /* Minimal/Sharp edges */
    overflow: visible;
    /* Allow content to sit outside if needed, though mostly contained */
    box-shadow: none;
    /* Removed shadow */
    background: transparent;
    /* Removed background */
    border: none;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.4s ease;
    display: none;
}

.geo2mo-rs-card.visible {
    display: flex;
}

.geo2mo-rs-card:hover {
    transform: none;
    /* No lift */
    box-shadow: none;
}

/* Image Box - Top Section */
.geo2mo-rs-card-image-box {
    position: relative;
    width: 100%;
    /* aspect-ratio: 9 / 16; */
    /* Vertical Editorial Ratio */
    overflow: hidden;
    flex-shrink: 0;
    margin-bottom: 1.5rem;
    /* Space between image and text */
}

.geo2mo-rs-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.9);
    /* Slightly muted for editorial feel */
}

.geo2mo-rs-card:hover .geo2mo-rs-card-image {
    transform: scale(1.05);
    /* Subtle zoom */
    filter: brightness(1);
}

.geo2mo-rs-card-placeholder {
    width: 100%;
    height: 100%;
    background: #1e293b;
}

/* Content Box - Bottom Section (Transparent, Editorial Type) */
.geo2mo-rs-card-content-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
    padding: 0;
    color: var(--geo2mo-white);
    position: relative;
    border: none;
}

/* Date Text (New placement) */
.geo2mo-rs-date-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    /* Muted */
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.geo2mo-rs-card-title {
    color: var(--geo2mo-white);
    font-size: 1.5rem;
    /* Large Headline */
    font-weight: 400;
    /* Lighter weight for elegance */
    line-height: 1.2;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    /* Editorial Style */
    letter-spacing: 0.02em;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: none;
}

.geo2mo-rs-card-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    font-weight: 300;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Link */
.geo2mo-rs-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--geo2mo-white);
    /* White link */
    font-weight: 500;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    margin-top: auto;
    width: fit-content;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.geo2mo-rs-card-link:hover {
    border-bottom-color: var(--geo2mo-white);
    gap: 0.75rem;
}

/* Icons */
.geo2mo-rs-arrow-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.geo2mo-rs-card:hover .geo2mo-rs-arrow-icon {
    transform: translateX(4px);
}

/* Removed old badge/overlay styles */
.geo2mo-rs-date-badge,
.geo2mo-rs-card-overlay {
    display: none;
}

/* Removed old overlay components */
.geo2mo-rs-card-overlay,
.geo2mo-rs-content-wrapper,
.geo2mo-rs-content-top {
    display: none;
}

/* Navigation Controls */
.geo2mo-rs-nav-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3rem;
}

.geo2mo-rs-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--geo2mo-dark);
    border: none;
    cursor: pointer;
    box-shadow: var(--geo2mo-shadow);
    transition: all var(--geo2mo-transition-fast);
}

.geo2mo-rs-nav-btn:hover {
    background: var(--geo2mo-white);
    transform: scale(1.1);
}

.geo2mo-rs-nav-btn:active {
    transform: scale(0.95);
}

.geo2mo-rs-nav-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Dots */
.geo2mo-rs-dots {
    display: flex;
    gap: 0.5rem;
}

.geo2mo-rs-dot {
    height: 0.75rem;
    width: 0.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all var(--geo2mo-transition-fast);
    padding: 0;
}

.geo2mo-rs-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.geo2mo-rs-dot.active {
    background: var(--geo2mo-white);
    width: 2rem;
}

/* Counter */
.geo2mo-rs-counter {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--geo2mo-gray-400);
    font-size: 0.875rem;
}

/* Desktop/Mobile Visibility */
.geo2mo-rs-desktop {
    display: none;
}

.geo2mo-rs-mobile {
    display: block;
}

@media (min-width: 768px) {
    .geo2mo-rs-desktop {
        display: block;
    }

    .geo2mo-rs-mobile {
        display: none;
    }
}

/* Mobile Slider */
.geo2mo-rs-mobile-slider {
    position: relative;
    width: 100%;
    /* Let height be determined by content or maintain a good ratio */
    height: auto;
    padding-bottom: 2rem;
    /* Add some space for shadows */
}

/* Mobile Card - Same split layout */
.geo2mo-rs-mobile-card {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: auto;
    /* border-radius: 1rem; */
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    /* background: #0f172a; */
    border: none;
    flex-direction: column;
}

.geo2mo-rs-mobile-card.active {
    display: flex;
    position: relative;
    /* Needs to flow in document now to have height */
    animation: fadeInSlide 0.3s ease forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

/* Inherits image-box and content-box styles from above */
.geo2mo-rs-mobile-card .geo2mo-rs-card-content-box {
    padding: 15px;
    margin-top: 1rem;
    /* Compact margin */
}

/* Compact Typography for Mobile */
.geo2mo-rs-mobile-card .geo2mo-rs-card-title {
    font-size: 1.25rem;
    /* Smaller than desktop 1.5rem */
    margin-bottom: 0.5rem;
}

.geo2mo-rs-mobile-card .geo2mo-rs-card-description {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    -webkit-line-clamp: 4;
    /* Allow a bit more text since fonts are smaller */
}

.geo2mo-rs-mobile-card .geo2mo-rs-date-text {
    margin-bottom: 0.25rem;
}

.geo2mo-rs-mobile-card .geo2mo-rs-card-image-box {
    margin-bottom: 0.75rem;
    /* Tighter spacing between image and content */
}

/* Remove old mobile overrides */
.geo2mo-rs-mobile-card .geo2mo-rs-content-top,
.geo2mo-rs-mobile-card .geo2mo-rs-card-overlay {
    display: none;
}

/* Mobile Navigation */
.geo2mo-rs-mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.geo2mo-rs-mobile-dots {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 70%;
}

.geo2mo-rs-mobile-dot {
    height: 0.5rem;
    width: 0.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all var(--geo2mo-transition-fast);
    padding: 0;
}

.geo2mo-rs-mobile-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.geo2mo-rs-mobile-dot.active {
    background: var(--geo2mo-white);
    width: 1.5rem;
}

.geo2mo-rs-mobile-nav .geo2mo-rs-nav-btn {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
}

.geo2mo-rs-mobile-nav .geo2mo-rs-nav-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* CTA Section */
.geo2mo-rs-cta {
    text-align: center;
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.geo2mo-rs-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 200;
    padding: 1.5rem 3rem;
    font-size: 1.125rem;
    border-radius: 1rem;
    box-shadow: var(--geo2mo-shadow-lg);
    transition: all var(--geo2mo-transition-fast);
    text-decoration: none;
}

.geo2mo-rs-cta-link:hover {
    background: var(--geo2mo-primary);
    border-color: var(--geo2mo-primary);
    color: var(--geo2mo-dark);
    transform: scale(1.02);
}

.geo2mo-rs-cta-link .geo2mo-rs-linkedin-icon {
    width: 1.25rem;
    height: 1.25rem;
    opacity: 0.8;
    transition: opacity var(--geo2mo-transition-fast);
}

.geo2mo-rs-cta-link:hover .geo2mo-rs-linkedin-icon {
    opacity: 1;
}

.geo2mo-rs-chevron-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform var(--geo2mo-transition-fast);
}

.geo2mo-rs-cta-link:hover .geo2mo-rs-chevron-icon {
    transform: translateX(0.25rem);
}

.geo2mo-rs-cta-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 1rem 0 0 0;
    font-weight: 500;
}

/* No Posts Message */
.geo2mo-rs-no-posts {
    text-align: center;
    color: var(--geo2mo-gray-400);
    padding: 3rem;
}