/*==================================================
    Radiyox 2026 - Cards Styles (Optimized)
==================================================*/

/*========== GRID SYSTEM ==========*/
.station-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
    width: 100%;
}

@media (min-width: 768px) {
    .station-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (min-width: 1024px) {
    .station-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (min-width: 1400px) {
    .station-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 22px;
    }
}

/*========== CARD ==========*/
.station-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    text-decoration: none;
    color: inherit;
    isolation: isolate;
    will-change: transform;
}

.station-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.10), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.station-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, 0.45);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}
.station-card:hover::before { opacity: 1; }

.station-card:active { transform: scale(0.985); }

.station-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/*========== IMAGE ==========*/
.station-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: var(--surface-2);
    transition: transform 0.35s ease, filter 0.35s ease;
    will-change: transform;
    image-rendering: auto;
}

.station-card:hover .station-image {
    transform: scale(1.04);
    filter: brightness(1.04);
}

.station-image[src=""],
.station-image:not([src]) {
    background: linear-gradient(135deg, var(--surface-2), var(--surface));
}

/*========== INFO ==========*/
.station-title {
    display: block;
    width: 100%;
    min-width: 0;
    height: 34px;
    box-sizing: border-box;
    padding: 10px 12px 5px;
    font-size: 14px;
    font-weight: 600;
    line-height: 19px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    border-top: 1px solid var(--border);
    transition: color 0.25s ease, background 0.25s ease;
}

.station-card:hover .station-title { color: var(--text); }

.station-meta {
    display: block;
    width: 100%;
    min-width: 0;
    height: 28px;
    min-height: 28px;
    box-sizing: border-box;
    padding: 0 12px 11px;
    margin-top: 0 !important;
    font-size: 12px;
    font-weight: 400;
    line-height: 17px;
    color: var(--text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.station-meta span {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .station-title {
        height: 31px;
        padding: 8px 7px 4px;
        font-size: 13px;
        line-height: 19px;
    }

    .station-meta {
        height: 26px;
        min-height: 26px;
        padding: 0 7px 10px;
        font-size: 10.5px;
        line-height: 16px;
    }
}

@media (min-width: 768px) {
    .station-title {
        font-size: 14px;
    }
}

@media (min-width: 1400px) {
    .station-title {
        padding-left: 14px;
        padding-right: 14px;
    }

    .station-meta {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/*========== BADGE ==========*/
.station-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

/*========== SKELETON ==========*/
.station-card.loading {
    pointer-events: none;
    user-select: none;
}

.station-card.loading .station-image,
.station-card.loading .station-title {
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 37%, var(--surface-2) 63%);
    background-size: 400% 100%;
    animation: skeletonLoading 1.2s linear infinite;
    color: transparent;
}

@keyframes skeletonLoading {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/*========== REDUCED MOTION ==========*/
@media (prefers-reduced-motion: reduce) {
    .station-card,
    .station-image {
        transition: none;
    }
}
/*
|--------------------------------------------------------------------------
| Radiyox Light Theme Card Polish
|--------------------------------------------------------------------------
*/

.light-mode .station-card {
    background: linear-gradient(
        180deg,
        var(--surface),
        var(--surface-2)
    );
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.light-mode .station-card:hover {
    border-color: rgba(124, 58, 237, 0.30);
    box-shadow: var(--shadow);
}

.light-mode .station-card .station-title {
    color: var(--text);
}

.light-mode .station-card .station-meta,
.light-mode .station-card .station-description {
    color: var(--text-muted);
}

.light-mode .station-card .station-image-placeholder {
    background: var(--surface-2);
    border-color: var(--border);
}

.light-mode .station-card .station-overlay {
    background: rgba(255, 255, 255, 0.90);
    color: var(--text);
}

.light-mode .station-card .skeleton {
    background: linear-gradient(
        90deg,
        var(--surface-2) 25%,
        var(--surface) 37%,
        var(--surface-2) 63%
    );
}

