/* ============================================
   GOOGLE SHEETS TICKER - RESPONSIVE CSS
   ============================================ */

.gs-ticker-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.gs-ticker-container {
    position: relative;
    overflow: hidden;
    flex: 1;
    padding: 8px 0;
}

/* FIX: Animation is on the mover, not individual tracks */
.gs-ticker-mover {
    animation: gs-ticker-scroll linear infinite;
    will-change: transform;
}

.gs-ticker-track {
    will-change: transform;
}

.gs-ticker-item {
    padding: 5px 0px;
    transition: background-color 0.2s ease;
    text-align: center;
}

.gs-ticker-content {
    font-family: 'Oswald', Helvetica, Arial, Lucida, sans-serif;
    letter-spacing: 1px;
    font-size: 1.75vw;
    line-height: 2em;
    color: #fff;
    word-break: break-word;
}

/* Pause on hover */
.gs-ticker-wrapper[data-pause="true"]:hover .gs-ticker-mover {
    animation-play-state: paused;
}

.gs-ticker-column-1 .gs-ticker-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.gs-ticker-column-2 .gs-ticker-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.gs-ticker-column-3 .gs-ticker-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.gs-ticker-column-4 .gs-ticker-header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* FIX: -50% on the mover (2x content height) = one track height. Seamless loop. */
@keyframes gs-ticker-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.gs-ticker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 1200px) {
    .gs-ticker-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gs-ticker-grid {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 15px;
    }
    .gs-ticker-wrapper {
        height: 350px !important;
    }
    .gs-ticker-content {
        font-size: 13px;
    }
}

.gs-ticker-error,
.gs-ticker-empty {
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-style: italic;
}