/*
Theme Name: Mantep Radio Katalog
Theme URI: https://mantep.dev
Author: Mantep Web Develop
Author URI: https://mantep.dev
Description: Tema direktori dan streaming radio responsif dan modern.
Version: 1.0.0
Text Domain: mantep-radio
*/

:root {
    --player-bg: rgba(20, 20, 25, 0.85);
    --accent-color: #ff0044;
    --bg-color: #f4f7f6;
    --text-color: #333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Standar */
.site-header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.site-title {
    margin: 0;
    font-size: 24px;
}

.site-title a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 800;
}

/* Grid Katalog Radio (Archive/Index) */
.mantep-radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    padding: 20px 0 30px;
    align-items: stretch; /* Memastikan semua card dalam satu baris punya tinggi seragam */
}

.radio-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.radio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.radio-thumbnail {
    position: relative;
    width: 100%;
    background: #f8f9fa; /* Warna latar jika gambar transparan/kecil */
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-thumbnail img {
    width: 100%;
    height: auto; /* Kunci agar proporsi asli tetap terjaga (tidak terpotong) */
    display: block;
    object-fit: contain; /* Memastikan gambar tidak melebar ke luar batas */
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: inline-block;
}

.view-all-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
}

.view-all-link:hover {
    text-decoration: underline;
}

.radio-card-content {
    padding: 20px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.radio-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 15px;
}

.radio-card-play-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.2s;
}

.radio-card:hover .radio-card-play-btn {
    background: #e6003d;
}

/* =========================================
   MOBILE VERSION (List Mendatar ala Aplikasi)
   ========================================= */
@media (max-width: 768px) {
    .mantep-radio-grid {
        grid-template-columns: 1fr; /* Berubah menjadi 1 kolom penuh */
        gap: 12px; /* Jarak antar list lebih rapat */
        padding: 10px 0;
    }

    .radio-card {
        flex-direction: row; /* Tata letak berubah mendatar (kiri ke kanan) */
        align-items: center; /* Teks dan gambar sejajar secara vertikal */
        padding: 10px; /* Padding di dalam card */
        border-radius: 12px;
        text-align: left; /* Teks rata kiri */
    }

    .radio-thumbnail {
        width: 65px;  /* Icon gambar lebih kecil */
        height: 65px; /* Icon gambar lebih kecil */
        border-radius: 10px;
        flex-shrink: 0; /* Mencegah gambar menyusut */
        border: 1px solid #eaeaea; /* Garis halus di pinggir gambar */
    }

    .radio-thumbnail img {
        border-radius: 8px; /* Mengikuti lengkungan container */
    }

    .radio-card-content {
        padding: 0 0 0 15px; /* Hanya memberi jarak di kiri (antara gambar dan teks) */
        flex-direction: row; /* Teks dan tombol sejajar */
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }

    .radio-card-title {
        font-size: 15px;
        margin: 0;
        flex-grow: 1; /* Judul akan mendorong tombol play ke paling kanan */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; /* Jika judul terlalu panjang, akan menjadi "..." */
        padding-right: 10px;
    }

    /* Mencegah tombol play mengecil tertekan teks */
    .radio-card-content > div {
        flex-shrink: 0; 
    }

    .radio-card-play-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%; /* Tombol play menjadi bulat sempurna */
        font-size: 12px;
        margin-top: 0; 
    }
}