/**
 * Podcast Admin Styles
 * ستايلات صفحة إعدادات البودكاست
 *
 * @package Qedama
 */

/* Reset WordPress admin styles for Bootstrap */
.podcast-settings-wrap {
    font-family: 'Tajawal', sans-serif;
    margin-right: 0;
    padding: 20px;
    max-width: 1200px;
}

.podcast-settings-wrap * {
    box-sizing: border-box;
}

/* Header */
.podcast-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 30px;
    border-radius: 12px;
    color: #fff;
    margin-bottom: 30px;
}

.podcast-header h1 {
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.podcast-header h1 .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.podcast-header .badge {
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
}

.podcast-header .badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-left: 4px;
}

/* Cards */
.podcast-settings-wrap .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.podcast-settings-wrap .card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.podcast-settings-wrap .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 16px 20px;
    border-radius: 12px 12px 0 0 !important;
}

.podcast-settings-wrap .card-header h5 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.podcast-settings-wrap .card-header .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.podcast-settings-wrap .card-body {
    padding: 24px;
}

/* Character Cards */
.podcast-settings-wrap .card-header.bg-primary {
    background: linear-gradient(135deg, #0077B5 0%, #005885 100%) !important;
    border: none;
}

.podcast-settings-wrap .card-header.bg-dark {
    background: linear-gradient(135deg, #2d3436 0%, #1a1a2e 100%) !important;
    border: none;
}

.podcast-settings-wrap .card-header.bg-info {
    background: linear-gradient(135deg, #00cec9 0%, #0984e3 100%) !important;
    border: none;
}

/* Form Controls */
.podcast-settings-wrap .form-label {
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 8px;
}

.podcast-settings-wrap .form-control,
.podcast-settings-wrap .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.podcast-settings-wrap .form-control:focus,
.podcast-settings-wrap .form-select:focus {
    border-color: #0077B5;
    box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.15);
}

.podcast-settings-wrap textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.podcast-settings-wrap .font-monospace {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    direction: ltr;
    text-align: left;
}

/* Form Switch */
.podcast-settings-wrap .form-check-input {
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.podcast-settings-wrap .form-check-input:checked {
    background-color: #0077B5;
    border-color: #0077B5;
}

.podcast-settings-wrap .form-check-label {
    margin-right: 10px;
    cursor: pointer;
}

/* Text Colors */
.podcast-settings-wrap .text-danger {
    color: #e74c3c !important;
}

.podcast-settings-wrap .text-success {
    color: #27ae60 !important;
}

.podcast-settings-wrap .text-muted {
    color: #6c757d !important;
    font-size: 13px;
}

/* Submit Button */
.podcast-settings-wrap .btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
}

.podcast-settings-wrap .button-primary,
.podcast-settings-wrap .btn-primary {
    background: linear-gradient(135deg, #0077B5 0%, #005885 100%);
    border: none;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.podcast-settings-wrap .button-primary:hover,
.podcast-settings-wrap .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.4);
}

/* Alerts */
.podcast-settings-wrap .alert {
    border: none;
    border-radius: 8px;
    padding: 16px 20px;
}

.podcast-settings-wrap .alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
}

.podcast-settings-wrap .alert .dashicons {
    vertical-align: middle;
}

/* List in help section */
.podcast-settings-wrap ol {
    padding-right: 20px;
    line-height: 2;
}

.podcast-settings-wrap ol li {
    margin-bottom: 8px;
}

.podcast-settings-wrap ol a {
    color: #0077B5;
    text-decoration: none;
}

.podcast-settings-wrap ol a:hover {
    text-decoration: underline;
}

/* Settings Errors */
.podcast-settings-wrap .notice {
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .podcast-settings-wrap {
        padding: 10px;
    }
    
    .podcast-header {
        padding: 20px;
    }
    
    .podcast-header h1 {
        font-size: 20px;
    }
    
    .podcast-settings-wrap .col-md-6 {
        margin-bottom: 20px;
    }
}

/* RTL Adjustments */
[dir="rtl"] .podcast-settings-wrap .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .podcast-settings-wrap .dashicons {
    margin-left: 8px;
    margin-right: 0;
}

/* =============================================
   Podcast Player Styles - Frontend (Slim Design)
   ============================================= */

.podcast-player--slim {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 16px 40px;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Right Side - Icon & Text */
.podcast-player__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.podcast-player--slim .podcast-player__icon {
    background: linear-gradient(135deg, #0077B5 0%, #00a8cc 100%);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.podcast-player--slim .podcast-player__icon svg {
    width: 20px;
    height: 20px;
}

.podcast-player__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.podcast-player--slim .podcast-player__title {
    font-size: 15px;
    font-weight: 600;
    color: #2d3436;
    line-height: 1.3;
}

.podcast-player--slim .podcast-player__hosts {
    font-size: 12px;
    color: #636e72;
    line-height: 1.3;
}

/* Left Side - Controls */
.podcast-player__left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.podcast-player__time-display {
    font-size: 12px;
    color: #636e72;
    font-family: 'Monaco', 'Menlo', monospace;
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 70px;
}

.podcast-player__separator {
    color: #b2bec3;
}

.podcast-player--slim .podcast-player__progress {
    width: 120px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    border-radius: 2px;
    cursor: pointer;
    transition: height 0.2s;
}

.podcast-player--slim .podcast-player__progress:hover {
    height: 6px;
}

.podcast-player--slim .podcast-player__progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #0077B5;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 119, 181, 0.3);
    transition: transform 0.2s;
}

.podcast-player--slim .podcast-player__progress:hover::-webkit-slider-thumb {
    transform: scale(1.2);
}

.podcast-player--slim .podcast-player__progress::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #0077B5;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.podcast-player--slim .podcast-player__play-btn {
    background: #0077B5;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    color: #fff;
}

.podcast-player--slim .podcast-player__play-btn:hover {
    background: #005885;
    transform: scale(1.05);
}

.podcast-player--slim .podcast-player__play-btn .play-icon {
    margin-right: -2px;
}

.podcast-player--slim .podcast-player__play-btn .pause-icon {
    display: none;
}

.podcast-player--slim .podcast-player__play-btn.playing .play-icon {
    display: none;
}

.podcast-player--slim .podcast-player__play-btn.playing .pause-icon {
    display: block;
}

.podcast-player--slim .podcast-player__volume-btn {
    background: none;
    border: none;
    color: #636e72;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.podcast-player--slim .podcast-player__volume-btn:hover {
    color: #0077B5;
    background: rgba(0, 119, 181, 0.1);
}

.podcast-player--slim .podcast-player__volume {
    width: 60px;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    border-radius: 2px;
    cursor: pointer;
}

.podcast-player--slim .podcast-player__volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    background: #636e72;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.podcast-player--slim .podcast-player__volume:hover::-webkit-slider-thumb {
    background: #0077B5;
}

.podcast-player--slim .podcast-player__volume::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: #636e72;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.podcast-player__audio {
    display: none;
}

/* Responsive Slim Player */
@media (max-width: 768px) {
    .podcast-player--slim {
        padding: 14px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    
    .podcast-player__left {
        width: 100%;
        justify-content: space-between;
    }
    
    .podcast-player--slim .podcast-player__progress {
        flex: 1;
        width: auto;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .podcast-player--slim {
        padding: 12px 16px;
    }
    
    .podcast-player--slim .podcast-player__volume,
    .podcast-player__time-display {
        display: none;
    }
    
    .podcast-player__left {
        gap: 10px;
    }
    
    .podcast-player--slim .podcast-player__title {
        font-size: 14px;
    }
    
    .podcast-player--slim .podcast-player__hosts {
        font-size: 11px;
    }
    
    .podcast-player--slim .podcast-player__icon {
        width: 36px;
        height: 36px;
    }
    
    .podcast-player--slim .podcast-player__play-btn {
        width: 34px;
        height: 34px;
    }
}

