/* ==========================================================================
   Media Mentions Carousel — Plugin Styles
   ========================================================================== */

/* --- Wrapper --- */
.mm-carousel-wrapper {
    --mm-accent: #1a56db;
    --mm-accent-light: #e8eefb;
    --mm-bg: #ffffff;
    --mm-card-bg: #ffffff;
    --mm-border: #e5e7eb;
    --mm-text: #1f2937;
    --mm-text-muted: #6b7280;
    --mm-radius: 14px;
    --mm-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    --mm-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08), 0 8px 32px rgba(0, 0, 0, 0.06);
    --mm-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --- Header --- */
.mm-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.mm-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--mm-text);
    margin: 0 0 0.75rem;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.mm-subtitle {
    font-size: 1rem;
    color: var(--mm-text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Carousel Layout --- */
.mm-carousel {
    position: relative;
    padding: 0 3rem;
}

.mm-viewport {
    overflow: hidden;
    border-radius: var(--mm-radius);
}

.mm-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.mm-slide {
    flex: 0 0 25%;
    padding: 0.5rem;
    box-sizing: border-box;
}

/* --- Card --- */
.mm-card {
    display: block;
    background: var(--mm-card-bg);
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius);
    text-decoration: none;
    color: var(--mm-text);
    overflow: hidden;
    transition: box-shadow var(--mm-transition), border-color var(--mm-transition), transform var(--mm-transition);
    box-shadow: var(--mm-shadow);
}

.mm-card:hover,
.mm-card:focus-visible {
    box-shadow: var(--mm-shadow-hover);
    border-color: var(--mm-accent);
    transform: translateY(-4px);
}

.mm-card:focus-visible {
    outline: 2px solid var(--mm-accent);
    outline-offset: 2px;
}

.mm-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem 1.5rem;
    gap: 1rem;
    min-height: 180px;
}

/* --- Logo --- */
.mm-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 100%;
}

.mm-logo {
    max-height: 55px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.85;
    transition: filter var(--mm-transition), opacity var(--mm-transition);
}

.mm-card:hover .mm-logo {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Name --- */
.mm-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mm-text);
    text-align: center;
    letter-spacing: 0.01em;
}

/* --- Read More --- */
.mm-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--mm-accent);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--mm-transition), transform var(--mm-transition);
}

.mm-card:hover .mm-read-more {
    opacity: 1;
    transform: translateY(0);
}

.mm-read-more svg {
    transition: transform 0.25s ease;
}

.mm-card:hover .mm-read-more svg {
    transform: translateX(3px);
}

/* --- Navigation Arrows --- */
.mm-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--mm-border);
    background: var(--mm-bg);
    color: var(--mm-text);
    cursor: pointer;
    transition: all var(--mm-transition);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mm-nav svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}

.mm-nav-prev {
    left: -8px;
}

.mm-nav-next {
    right: -8px;
}

.mm-nav:hover {
    background: var(--mm-accent);
    border-color: var(--mm-accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(26, 86, 219, 0.35);
    transform: translateY(-50%) scale(1.08);
}

.mm-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.mm-nav:disabled {
    opacity: 0.25;
    pointer-events: none;
    cursor: default;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablets — 3 columns */
@media (max-width: 1024px) {
    .mm-slide {
        flex: 0 0 33.333%;
    }
}

/* Small tablets — 2 columns */
@media (max-width: 768px) {
    .mm-slide {
        flex: 0 0 50%;
    }

    .mm-carousel {
        padding: 0 2.5rem;
    }

    .mm-nav {
        width: 40px;
        height: 40px;
    }

    .mm-nav svg {
        width: 18px;
        height: 18px;
    }

    .mm-card-inner {
        padding: 1.5rem 1rem 1.25rem;
        min-height: 160px;
    }
}

/* Mobile — 1 column */
@media (max-width: 480px) {
    .mm-slide {
        flex: 0 0 100%;
    }

    .mm-carousel-wrapper {
        margin: 2rem auto;
    }

    .mm-header {
        margin-bottom: 1.5rem;
    }

    .mm-nav {
        display: none;
    }

    .mm-viewport {
        border-radius: 10px;
    }

    .mm-card-inner {
        padding: 1.5rem 1rem;
        min-height: 150px;
    }
}

/* ==========================================================================
   Force hide dots & progress (cleanup from v1.0)
   ========================================================================== */
.mm-carousel-wrapper .mm-dots,
.mm-carousel-wrapper .mm-dot,
.mm-carousel-wrapper .mm-progress,
.mm-carousel-wrapper .mm-progress-bar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}
