/**
 * TWTicker by NetDynamic - Ticker Styles
 * Version: 1.0.0-alpha
 * Dark theme optimized for smooth scrolling ticker display
 */

.twticker-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.twticker-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    clip-path: inset(0);
}

.twticker-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0;
    width: auto;
    flex-wrap: nowrap;
    will-change: transform;
}

.twticker-item {
    flex: 0 0 33.333%;
    width: 33.333%;
    min-width: 33.333%;
    max-width: 33.333%;
    border-radius: 6px;
    padding: 12px;
    box-sizing: border-box;
}

/* Hover effects removed */

.twticker-item-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.twticker-header {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    font-size: 11px;
    line-height: 1.4;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.twticker-date {
    color: #ffd700;
    font-weight: 600;
    font-size: 10px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.twticker-separator {
    color: #999;
    font-weight: 300;
    flex-shrink: 0;
}

.twticker-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.twticker-title a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.4;
}

.twticker-excerpt {
    color: #cccccc;
    font-size: 10px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Controls removed - auto-scroll only */

/* Tablet Styles */
@media (max-width: 1024px) {
    .twticker-item {
        flex: 0 0 50%;
        width: 50%;
        min-width: 50%;
        max-width: 50%;
    }

    .twticker-container {
        padding: 0;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .twticker-item {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .twticker-container {
        padding: 0;
        margin: 0;
    }

    .twticker-item {
        padding: 12px;
    }

    .twticker-header {
        font-size: 10px;
    }

    .twticker-title a {
        font-size: 11px;
    }

    .twticker-excerpt {
        font-size: 10px;
        -webkit-line-clamp: 1;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .twticker-container {
        padding: 0;
    }

    .twticker-item {
        padding: 12px;
        border-radius: 4px;
    }
}

/* Smooth animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.twticker-item {
    animation: fadeIn 0.4s ease-out;
}

/* Loading state */
.twticker-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Accessibility - controls removed */

/* Print styles */
@media print {
    .twticker-track {
        flex-wrap: wrap;
    }

    .twticker-item {
        page-break-inside: avoid;
    }
}
