/*
Theme Name:   GeneratePress Child - NDA Study
Theme URI:    https://ndastudy.com
Description:  Custom child theme for NDA Study website with AI summaries and audio player
Author:       mr-mannu-khatait
Author URI:   https://ndastudy.com/author/mr-mannu-khatait/
Template:     generatepress
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  generatepress-child
*/

/* Root Variables */
:root {
    --nda-primary: #0066cc;
    --nda-primary-dark: #004c99;
    --nda-secondary: #667eea;
    --nda-secondary-dark: #764ba2;
    --nda-white: #ffffff;
    --nda-light-gray: #f8f9fa;
    --nda-gray: #e0e0e0;
    --nda-dark-gray: #5f6368;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --radius-lg: 12px;
    --radius-round: 24px;
}

/* Summary Feature Styles */
.nda-article-summary {
    background: linear-gradient(135deg, var(--nda-secondary) 0%, var(--nda-secondary-dark) 100%);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.nda-article-summary::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.summary-icon {
    font-size: 32px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.summary-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.summary-title {
    color: var(--nda-white);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-text {
    color: #f8f8f8;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

/* Audio Player Styles */
.nda-audio-player {
    margin: var(--spacing-lg) 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.listen-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--nda-primary);
    color: var(--nda-white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-round);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.listen-button:hover {
    background: var(--nda-primary-dark);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
    transform: translateY(-2px);
}

.player-controls {
    display: none;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--nda-light-gray);
    border-radius: var(--radius-lg);
    border: 1px solid var(--nda-gray);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.player-controls.active {
    display: flex;
}

.control-btn {
    background: var(--nda-primary);
    color: var(--nda-white);
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
}

.control-btn:hover {
    background: var(--nda-primary-dark);
    transform: scale(1.05);
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--nda-gray);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: var(--nda-primary);
    width: 0%;
    transition: width 0.1s linear;
}

.speed-btn {
    background: transparent;
    border: 1px solid #dadce0;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    color: var(--nda-dark-gray);
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 55px;
}

.speed-btn:hover {
    background: #f1f3f4;
    border-color: var(--nda-primary);
    color: var(--nda-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nda-article-summary {
        padding: var(--spacing-md);
        margin: var(--spacing-md) 0;
        flex-direction: column;
        gap: 15px;
    }
    
    .summary-icon {
        font-size: 28px;
    }
    
    .summary-title {
        font-size: 18px;
    }
    
    .summary-text {
        font-size: 15px;
    }
    
    .listen-button {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .player-controls {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 15px;
    }
    
    .progress-bar {
        flex-basis: 100%;
        order: -1;
        margin-bottom: 8px;
    }
}