/**
 * Advanced Playlist Manager - Frontend Styles
 * File: assets/css/frontend.css
 */

/* RTL Support for Arabic */
html[dir="rtl"] .apm-link-container,
html[dir="rtl"] .apm-playlist {
    direction: rtl;
    text-align: right;
}

/* Container Styles */
.apm-link-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.apm-link-container:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

/* Title Styles */
.apm-link-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 4px solid #0073aa;
    padding-bottom: 15px;
    line-height: 1.3;
}

/* Actions Bar */
.apm-actions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.apm-action-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Button Styles */
.apm-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
    text-decoration: none;
}

.apm-btn:hover {
    background: linear-gradient(135deg, #005177 0%, #003a56 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 115, 170, 0.4);
}

.apm-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 115, 170, 0.3);
}

.apm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.apm-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Specific Button Colors */
.apm-play-youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

.apm-play-youtube:hover {
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.4);
}

.apm-play-soundcloud {
    background: linear-gradient(135deg, #ff5500 0%, #cc4400 100%);
    box-shadow: 0 2px 8px rgba(255, 85, 0, 0.3);
}

.apm-play-soundcloud:hover {
    background: linear-gradient(135deg, #cc4400 0%, #993300 100%);
    box-shadow: 0 6px 16px rgba(255, 85, 0, 0.4);
}

.apm-download-youtube,
.apm-download-soundcloud {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.apm-download-youtube:hover,
.apm-download-soundcloud:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.apm-copy-text {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.apm-copy-text:hover {
    background: linear-gradient(135deg, #545b62 0%, #3e4347 100%);
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4);
}

.apm-share {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.apm-share:hover {
    background: linear-gradient(135deg, #138496 0%, #0f6674 100%);
    box-shadow: 0 6px 16px rgba(23, 162, 184, 0.4);
}

/* Player Container */
.apm-player-container {
    margin: 30px 0;
    background: #000000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.apm-player-container iframe {
    width: 100%;
    min-height: 480px;
    border: none;
    display: block;
}

/* Text Content */
.apm-text-content {
    line-height: 1.8;
    font-size: 17px;
    color: #495057;
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.apm-text-content p {
    margin-bottom: 15px;
}

.apm-text-content p:last-child {
    margin-bottom: 0;
}

/* Quote Display */
.apm-quote-display {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 35px;
    border-left: 6px solid #0073aa;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.apm-quote-display blockquote {
    font-size: 22px;
    font-style: italic;
    margin: 0 0 20px 0;
    color: #2c3e50;
    line-height: 1.6;
    quotes: """ """ "'" "'";
}

.apm-quote-display blockquote::before {
    content: open-quote;
    font-size: 48px;
    color: #0073aa;
    margin-right: 10px;
    vertical-align: -10px;
}

.apm-quote-display blockquote::after {
    content: close-quote;
    font-size: 48px;
    color: #0073aa;
    margin-left: 10px;
    vertical-align: -10px;
}

.apm-quote-display cite {
    display: block;
    text-align: right;
    color: #6c757d;
    font-size: 18px;
    font-weight: 600;
    font-style: normal;
}

.apm-quote-display cite::before {
    content: "— ";
}

/* Playlist Display */
.apm-playlist {
    max-width: 1200px;
    margin: 30px auto;
}

.apm-link-item {
    margin-bottom: 40px;
    padding: 25px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.apm-link-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.apm-link-item h3 {
    font-size: 24px;
    margin: 0 0 20px 0;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

/* Newsletter Form */
.apm-newsletter-form {
    max-width: 500px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.apm-newsletter-form h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.apm-newsletter-form input[type="text"],
.apm-newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.apm-newsletter-form input[type="text"]:focus,
.apm-newsletter-form input[type="email"]:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.apm-newsletter-form button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.apm-newsletter-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #005177 0%, #003a56 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .apm-link-container {
        padding: 20px;
        margin: 15px;
    }
    
    .apm-link-title {
        font-size: 24px;
    }
    
    .apm-actions-bar {
        flex-direction: column;
        padding: 15px;
    }
    
    .apm-action-group {
        width: 100%;
        flex-direction: column;
    }
    
    .apm-btn {
        width: 100%;
        justify-content: center;
    }
    
    .apm-player-container iframe {
        min-height: 250px;
    }
    
    .apm-text-content {
        font-size: 15px;
        padding: 15px;
    }
    
    .apm-quote-display {
        padding: 20px;
    }
    
    .apm-quote-display blockquote {
        font-size: 18px;
    }
    
    .apm-newsletter-form {
        margin: 15px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .apm-link-title {
        font-size: 20px;
    }
    
    .apm-btn {
        font-size: 14px;
        padding: 12px 18px;
    }
    
    .apm-quote-display blockquote {
        font-size: 16px;
    }
}
