/* Radio MusicStar WhatsApp Plugin Styles v1.1.4 */

.rms-wa-widget {
    position: fixed;
    bottom: 24px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.rms-pos-right { right: 24px; }
.rms-pos-left { left: 24px; }

.rms-wa-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 10px 18px 10px 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}
.rms-wa-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.rms-pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #ff3344;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(255, 51, 68, 0.7);
    animation: rmsPulse 1.8s infinite;
}

@keyframes rmsPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 51, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 51, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 51, 68, 0); }
}

.rms-wa-popup {
    display: none;
    position: absolute;
    bottom: 65px;
    width: 320px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
    overflow: hidden;
    animation: rmsFadeIn 0.25s ease-out;
}
.rms-pos-right .rms-wa-popup { right: 0; }
.rms-pos-left .rms-wa-popup { left: 0; }
.rms-wa-popup.is-open { display: block; }

@keyframes rmsFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.rms-wa-popup-header {
    background: #075E54;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}
.rms-wa-popup-header.rms-status-live {
    background: linear-gradient(135deg, #075E54, #128C7E);
}
.rms-wa-header-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rms-wa-header-info strong {
    display: block;
    font-size: 14px;
    line-height: 1.2;
}
.rms-header-status-tag {
    font-size: 11px;
    color: #a7f3d0;
    font-weight: 600;
}
.rms-wa-close-btn {
    position: absolute;
    right: 12px;
    top: 10px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.rms-wa-popup-body {
    padding: 16px;
    background: #E5DDD5;
    background-image: radial-gradient(#d3c6ba 1px, transparent 1px);
    background-size: 16px 16px;
}
.rms-wa-bubble-sub {
    font-size: 12px;
    color: #444;
    margin: 0 0 10px 0;
    line-height: 1.4;
}
.rms-wa-chat-bubble {
    background: #ffffff;
    border-radius: 8px 8px 8px 0;
    padding: 10px 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.rms-wa-sender {
    display: block;
    font-size: 11px;
    font-weight: bold;
    color: #075E54;
    margin-bottom: 4px;
}
.rms-wa-chat-bubble p {
    margin: 0;
    font-size: 13px;
    color: #222;
    line-height: 1.4;
}
.rms-wa-time {
    display: block;
    text-align: right;
    font-size: 10px;
    color: #888;
    margin-top: 4px;
}

.rms-wa-popup-footer {
    padding: 12px 16px;
    background: #ffffff;
    text-align: center;
}
.rms-wa-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: #fff !important;
    text-decoration: none !important;
    width: 100%;
    padding: 10px 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}
.rms-wa-action-btn:hover {
    background: #1ebc59;
}

.rms-hotline-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #f8fafc;
    border: 2px solid #25D366;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.rms-hotline-card-icon {
    flex-shrink: 0;
    background: #e8f9ee;
    padding: 10px;
    border-radius: 50%;
}
.rms-hotline-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 6px;
}
.rms-badge-live { background: #e11d48; color: #fff; }
.rms-badge-offline { background: #64748b; color: #fff; }

.rms-current-show {
    font-size: 13px;
    color: #0f172a;
    margin-bottom: 6px;
}
.rms-hotline-title {
    margin: 0 0 6px 0;
    font-size: 18px;
    color: #1e293b;
}
.rms-hotline-num {
    font-size: 22px;
    font-weight: 800;
    color: #075E54;
    margin: 0 0 6px 0;
}
.rms-hotline-desc {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #64748b;
}
.rms-hotline-link {
    display: inline-block;
    color: #128C7E;
    font-weight: 700;
    text-decoration: none;
}
.rms-hotline-link:hover {
    text-decoration: underline;
}

/* DAB+ Container & Coverage Header */
.rms-dab-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 25px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.rms-dab-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 20px;
}
.rms-dab-title-area {
    flex: 1;
    min-width: 280px;
}
.rms-dab-title-area h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #0f172a;
}
.rms-dab-coverage-info {
    margin: 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}
.rms-dab-coverage-info strong {
    color: #0f172a;
}
.rms-dab-wa-callout {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    flex-shrink: 0;
}
.rms-dab-wa-callout a {
    color: #075E54;
    text-decoration: none;
    margin-left: 5px;
}
.rms-dab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.rms-dab-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
}
.rms-dab-badge {
    display: inline-block;
    background: #0284c7;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.rms-dab-card h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #0f172a;
}
.rms-dab-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.rms-dab-table th, .rms-dab-table td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.rms-dab-table th {
    background: #edf2f7;
    font-weight: 600;
}
