/* ola.css — Ola Brand Portal Specifics */

:root {
    --ola-lime: #D7DF23;
    /* The Acidic Yellow-Green */
    --ola-black: #000000;
    --ticker-speed: 20s;
}

#ola-portal {
    background-color: var(--ola-lime);
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    cursor: crosshair;
    /* Brutalist touch */
    padding-bottom: 40px;
}

/* Base structural sections stay above background */
nav,
main,
footer,
.cl-modal-overlay {
    position: relative;
    z-index: 10;
}

.ola-ticker-wrap {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--ola-black);
    color: var(--ola-lime);
    padding: 5px 0;
    font-family: 'Roboto Mono', monospace;
    font-weight: 900;
    font-size: 12px;
    z-index: 9999;
    border-top: 3px solid var(--ola-black);
}

.ola-ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll var(--ticker-speed) linear infinite;
}

.ola-ticker span {
    padding: 0 40px;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

.ola-body {
    --amalgam-bg: var(--ola-lime);
}

body.ola-body {
    background-color: var(--amalgam-bg);
    background-image:
        linear-gradient(#000 1px, transparent 1px),
        linear-gradient(90deg, #000 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Hard Brutalism Overhaul */
.ola-hero .cl-portal-hero-inner {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 6rem 2rem;
    box-shadow: none;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

/* Hero Typography Enhancements */
.ola-hero .cl-portal-name {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3.5rem, 12vw, 14rem);
    font-weight: 900;
    line-height: 0.85;
    text-transform: uppercase;
    margin: 0 0 1.5rem -5px;
    color: var(--ola-black);
    letter-spacing: -6px;
    text-shadow: 8px 8px 0px #fff;
    position: relative;
    z-index: 2;
}

.ola-hero .cl-portal-subline {
    font-family: 'Space Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #000;
    color: var(--ola-lime);
    display: inline-block;
    padding: 0.5rem 1rem;
    box-shadow: 5px 5px 0px #fff;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.ola-hero .cl-portal-logo-wrap {
    margin-bottom: -1.5rem;
    position: relative;
    z-index: 3;
}

.ola-hero .cl-portal-logo-wrap img {
    height: 80px;
    filter: drop-shadow(4px 4px 0px #fff);
}

@media (max-width: 992px) {
    .ola-hero .cl-portal-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 4rem 1.5rem;
    }
}

.cl-feed-controls h2,
.cl-submit-section h2,
#gaslighting-library h2 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 0.9;
}

/* Feed & Form sections: keep the OLA grid on both */
.cl-feed-section {
    background-color: var(--ola-lime);
    background-image:
        linear-gradient(#000 1px, transparent 1px),
        linear-gradient(90deg, #000 1px, transparent 1px);
    background-size: 30px 30px;
    padding: 4rem 0;
    max-width: none;
}

.cl-submit-section {
    background-color: var(--ola-lime);
    background-image:
        linear-gradient(#000 1px, transparent 1px),
        linear-gradient(90deg, #000 1px, transparent 1px);
    background-size: 30px 30px;
    border-bottom: 5px solid #000;
    padding: 6rem 5%;
}

.section-subtitle,
.cl-form-sub {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.cl-portal-hero-stats-panel {
    background: #fff;
    border: 5px solid #000;
    padding: 2.5rem;
    box-shadow: 12px 12px 0px #000;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Stats Panel — Uber-parity Typography */
.ola-hero .cl-ph-stat span {
    font-family: 'Space Mono', monospace;
    font-size: 3rem;
    font-weight: 900;
    color: #000;
    line-height: 1;
    display: block;
}

.ola-hero .cl-ph-stat label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: #000;
    opacity: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-top: 0.5rem;
}

@media (max-width: 992px) {
    .cl-portal-hero-stats-panel {
        flex-direction: row;
        justify-content: space-around;
        padding: 1.5rem;
    }
}

/* Cancellation Chicken Game */
#ola-chicken-game {
    background: var(--ola-lime);
    padding: 2rem;
    text-align: center;
    border: 5px solid black;
    max-width: 500px;
    margin: 4rem auto;
    position: relative;
    overflow: hidden;
    box-shadow: 15px 15px 0px #000;
}

#chicken-timer {
    font-size: 6rem;
    font-family: 'Space Mono', monospace;
    margin: 0;
    font-weight: 900;
    line-height: 1;
}

.timer-subtext {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 2rem;
}

#driver-message-box {
    background: black;
    color: white;
    padding: 20px;
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    margin-bottom: 2rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
}

@keyframes frustration-shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(1deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

.shake-active {
    animation: frustration-shake 0.2s infinite;
}

.hidden {
    display: none;
}

.btn-brutal {
    width: 100%;
    padding: 20px;
    font-weight: 900;
    border: 4px solid black;
    margin-bottom: 15px;
    cursor: pointer;
    text-transform: uppercase;
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    transition: transform 0.1s;
}

.btn-white {
    background: #fff;
    color: #000;
}

.btn-black {
    background: #000;
    color: #fff;
}

.btn-yellow {
    background: var(--ola-lime);
    color: #000;
}

.btn-brutal:active {
    transform: scale(0.98);
}


.cl-form-container {
    background: #fff;
    border: 5px solid var(--ola-black);
    border-radius: 0;
    padding: 3rem;
    box-shadow: 12px 12px 0px var(--ola-black);
    margin-top: 4rem;
    margin-bottom: 4rem;
    max-width: 1500px;
}



.cl-form-group input,
.cl-form-group select,
.cl-form-group textarea {
    border-radius: 0;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
}

.cl-portal-logo-wrap {
    background: transparent;
    display: inline-flex;
    padding: 0;
    border-radius: 0;
    border: none;
    margin-bottom: 2rem;
}

.cl-portal-logo-wrap img {
    width: 120px;
    height: auto;
}

.ola-badge {
    background: #000;
    color: #fff;
    border: 2px solid #000;
    padding: 5px 15px;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 0;
}

.cl-form-group label {
    display: block;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-family: 'Space Mono', monospace;
}

.cl-story-card.ola-card {
    border-radius: 0;
    border: 4px solid #000;
    background: #fff;
    box-shadow: 12px 12px 0px #000;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.ola-cta {
    background: #000;
    color: #fff;
    border: 3px solid #000;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.5);
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 0;
}

.ola-cta:hover {
    transform: translate(-2px, -2px);
    box-shadow: 10px 10px 0px #000;
}

/* Feed Sorting Revamp */
.cl-feed-sort {
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: flex;
    gap: 10px;
    border: none;
    box-shadow: none;
}

.cl-sort-btn {
    border: 2px solid #000 !important;
    border-radius: 0 !important;
    padding: 10px 20px !important;
    background: transparent !important;
    color: #000 !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    font-size: 0.8rem !important;
    transition: all 0.1s !important;
    cursor: pointer;
    box-shadow: 4px 4px 0px #000;
}

.cl-sort-btn.active {
    background: #000 !important;
    color: var(--ola-lime) !important;
    box-shadow: none;
    transform: translate(2px, 2px);
}

.cl-sort-btn:hover:not(.active) {
    background: #fff !important;
}

/* Feed Controls Layout */
.cl-feed-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto 3rem auto;
    padding: 0 2rem;
}

@media (max-width: 992px) {
    .cl-feed-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

/* Grid Layout for Feed */
#ola-feed.cl-feed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 992px) {
    #ola-feed.cl-feed-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Refinement */
.cl-story-card.ola-card {
    border-radius: 0;
    border: 5px solid #000;
    background: #fff;
    box-shadow: 15px 15px 0px #000;
    transition: all 0.2s ease-out;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 450px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Intriguing Hover Effect - Background fill & Stamp */
.cl-story-card.ola-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ola-lime);
    z-index: -1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s cubic-bezier(0.8, 0, 0.2, 1);
}

.cl-story-card.ola-card::after {
    content: 'INCIDENT';
    position: absolute;
    top: -20px;
    right: -20px;
    font-family: 'Syne', sans-serif;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    transform: rotate(10deg);
    pointer-events: none;
    z-index: 0;
    transition: color 0.3s;
}

.cl-story-card.ola-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 19px 19px 0px #000;
    border-color: #000;
    color: #000;
}

.cl-story-card.ola-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.cl-story-card.ola-card:hover::after {
    color: rgba(0, 0, 0, 0.12);
}

/* On hover: all card text switches to black-on-lime (OLA brand) */
.cl-story-card.ola-card:hover .cl-story-location,
.cl-story-card.ola-card:hover .cl-story-category,
.cl-story-card.ola-card:hover .cl-story-title,
.cl-story-card.ola-card:hover .cl-story-excerpt,
.cl-story-card.ola-card:hover .cl-story-body,
.cl-story-card.ola-card:hover .cl-upvote-btn,
.cl-story-card.ola-card:hover .cl-share-row,
.cl-story-card.ola-card:hover .cl-read-more {
    color: #000 !important;
}

.cl-story-card.ola-card:hover .cl-share-btn i {
    color: #000 !important;
}

/* Ensure text stays above background effects */
.cl-story-card.ola-card .cl-story-header,
.cl-story-card.ola-card .cl-story-title,
.cl-story-card.ola-card .cl-story-excerpt,
.cl-story-card.ola-card .cl-story-body,
.cl-story-card.ola-card .cl-story-footer {
    position: relative;
    z-index: 2;
}

.cl-story-card.ola-card .cl-story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
}

.cl-story-card.ola-card .cl-story-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    color: #000;
}

.cl-story-card.ola-card .cl-story-excerpt,
.cl-story-card.ola-card .cl-story-body {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.cl-story-card.ola-card .cl-story-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

.cl-story-card.ola-card .cl-footer-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cl-story-card.ola-card .cl-upvote-btn {
    background: transparent;
    border: none;
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: #000;
}

.cl-story-card.ola-card .cl-share-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: #666;
}

.cl-story-card.ola-card .cl-share-btn {
    color: #000;
    display: flex;
    align-items: center;
}

.cl-story-card.ola-card .cl-read-btn,
.cl-story-card.ola-card .cl-read-more {
    background: transparent;
    border: none;
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    color: #000;
    text-transform: uppercase;
}

.ola-modal h2 {
    color: #000;
    font-weight: 900;
    text-transform: uppercase;
}

/* Modal Refinement */
.cl-modal.ola-modal {
    border-radius: 0;
    border: 5px solid #000;
    box-shadow: 20px 20px 0px #000;
    background: #fff;
    padding: 4rem;
}

.ola-badge {
    background: #000;
    color: #fff;
    border: 3px solid #000;
    padding: 5px 20px;
    font-weight: 900;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 2rem;
}

.cl-modal-meta {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    color: #666;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.ola-modal h2 {
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 2rem;
}

.cl-modal-body {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
}

.ola-modal .cl-modal-close {
    font-size: 2rem;
    font-weight: 900;
    color: #000;
    top: 2rem;
    right: 2rem;
}

/* Gaslighting Library Section */
#gaslighting-library {
    padding: 5rem 5%;
    background: #fff;
    border-top: 5px solid black;
}

.horizontal-scroll-archive {
    width: 100%;
}

.response-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 20px 40px 20px;
}

.response-card {
    border: 4px solid black;
    padding: 2rem;
    background: white;
    box-shadow: 10px 10px 0px black;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
}

@media (max-width: 992px) {
    .response-grid {
        grid-template-columns: 1fr;
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.bot-id {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    opacity: 0.6;
    font-weight: 700;
}

.status-tag {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.response-title {
    font-weight: 900;
    text-transform: uppercase;
    margin: 10px 0 20px 0;
    font-size: 1.5rem;
    line-height: 1.1;
}

.response-body {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 30px;
    color: #000;
    flex-grow: 1;
}

.btn-copy-fail {
    background: black;
    color: white;
    border: none;
    padding: 15px;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.1s;
    font-family: 'Syne', sans-serif;
}

/* Flash Red on Error */
.copy-error {
    background: #ff0000 !important;
    color: white !important;
    animation: jitter 0.1s infinite;
}

@keyframes jitter {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(3px, -2px);
    }

    50% {
        transform: translate(-3px, 2px);
    }

    75% {
        transform: translate(2px, -3px);
    }

    100% {
        transform: translate(-2px, 3px);
    }
}

@media (max-width: 768px) {
    .cl-portal-hero-stats-panel {
        flex-direction: column;
        gap: 1.5rem;
    }
    .cl-story-card.ola-card,
    .cl-form-container,
    .cl-modal.ola-modal,
    .response-card {
        padding: 1.5rem !important;
    }
    .ola-hero .cl-portal-subline {
        font-size: 1rem;
    }
    .cl-feed-controls h2, .cl-submit-section h2, #gaslighting-library h2 {
        font-size: 2.2rem;
    }
}
/* =========================================
   MOBILE OPTIMIZATION — Added breakpoints
   ========================================= */

/* ---- 992px: fix feed gap ---- */
@media (max-width: 992px) {
  #ola-feed.cl-feed-grid {
    gap: 2rem;
    padding: 0 1.5rem;
  }
}

/* ---- 768px: card height and padding ---- */
@media (max-width: 768px) {
  .cl-story-card.ola-card {
    min-height: auto;
    padding: 1.5rem !important;
    gap: 1rem;
  }
  .cl-story-card.ola-card .cl-story-title {
    font-size: 1.4rem;
  }
  .cl-story-card.ola-card .cl-story-excerpt,
  .cl-story-card.ola-card .cl-story-body {
    font-size: 1rem;
  }
  .cl-modal.ola-modal {
    padding: 1.5rem !important;
  }
}

/* ---- 600px: response grid ---- */
@media (max-width: 600px) {
  #gaslighting-library .response-grid {
    grid-template-columns: 1fr;
    padding: 10px 10px 20px 10px;
  }
  #gaslighting-library .response-card {
    min-height: auto;
    padding: 1.25rem;
  }
}

/* ---- 479px: phone ---- */
@media (max-width: 479px) {
  #ola-feed.cl-feed-grid {
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .cl-feed-controls h2 {
    font-size: 1.75rem;
  }
  #ola-chicken-game {
    margin: 1.5rem auto;
    padding: 1.25rem;
  }
  #chicken-timer {
    font-size: 4rem;
  }
  .cl-modal.ola-modal {
    padding: 1rem !important;
  }
  .ola-modal h2 {
    font-size: 1.75rem;
  }
}
