/**
 * Mementor Text-to-Speech Advanced Page Styles
 * 
 * This file contains styles specific to the advanced settings page.
 */

/* Advanced Container */
.mementor-tts-advanced-container {
    position: relative;
    background-color: #f9f9f9;
    border-radius: 0 0 8px 8px;
    padding: 20px;
    margin-top: 0;
}

.mementor-tts-advanced-container.locked {
    min-height: 300px;
}

/* Advanced Grid Layout */
.mementor-tts-advanced-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* Card Styles */
.mementor-tts-advanced-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mementor-tts-advanced-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Card Header */
.mementor-tts-advanced-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    border-bottom: 1px solid #e2e4e7;
    display: flex;
    align-items: center;
}

.mementor-tts-advanced-card-header span.dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    color: #2271b1;
}

.mementor-tts-advanced-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

/* Card Content */
.mementor-tts-advanced-card-content {
    padding: 20px;
}

/* Toggle Switch Improvements */
.mementor-tts-advanced-container .mementor-tts-toggle {
    margin-bottom: 20px;
}

.mementor-tts-advanced-container .mementor-tts-toggle:last-child {
    margin-bottom: 0;
}

.mementor-tts-toggle-label {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-left: 20px !important;
}
.mementor-tts-toggle .label-text {
    font-weight: 500 !important;
    color: #1d2327 !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
}
.mementor-tts-toggle .slider {
    margin-bottom: 15px !important;
}

.mementor-tts-setting-description {
    font-size: 13px !important;
    color: #6c757d !important;
    margin-top: 2px !important;
    line-height: 1.8 !important;
    display: block !important;
}


/* Field Styles */
.mementor-tts-advanced-container .mementor-tts-field {
    margin-bottom: 20px;
}

.mementor-tts-advanced-container .mementor-tts-field:last-child {
    margin-bottom: 0;
}

.mementor-tts-advanced-container .mementor-tts-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1d2327;
}

.mementor-tts-advanced-container .mementor-tts-field input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
    transition: border-color 0.15s ease-in-out;
}

.mementor-tts-advanced-container .mementor-tts-field input[type="number"]:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

/* Button Container */
.mementor-tts-button-container {
    margin-top: 15px;
}

.mementor-tts-button-container button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    color: #2c3338;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mementor-tts-button-container button:hover {
    background-color: #f0f0f1;
    border-color: #c5c5c7;
}

.mementor-tts-button-container button .dashicons {
    margin-right: 8px;
}

/* Import/Export Buttons */
.mementor-tts-import-export {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.mementor-tts-import-export button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    color: #2c3338;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mementor-tts-import-export button:hover {
    background-color: #f0f0f1;
    border-color: #c5c5c7;
}

.mementor-tts-import-export button .dashicons {
    margin-right: 8px;
}

/* Description Text */
.mementor-tts-advanced-container .description {
    color: #646970;
    font-size: 13px;
    margin-top: 5px;
    font-style: italic;
}

/* Spinning Animation */
.mementor-tts-spinning {
    animation: mementor-tts-spin 1.5s linear infinite;
}

@keyframes mementor-tts-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Styles */
@media screen and (max-width: 782px) {
    .mementor-tts-advanced-grid {
        grid-template-columns: 1fr;
    }
    
    .mementor-tts-import-export {
        flex-direction: column;
    }
    
    .mementor-tts-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 16px;
    background: none;
    border: none;
}
    display: flex;
    align-items: center;
    justify-content: space-between;
    }
    
    .mementor-tts-section-header h3 {
        flex: 1;
        text-align: left;
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: #1d2327;
    }
    
    .mementor-tts-section-header .section-icon {
        margin-left: auto;
    }
    
    .mementor-tts-section-content {
        padding: 15px;
    }
}

/* PRO Lock Overlay Specific Styles */
.mementor-tts-advanced-container .mementor-tts-lock-overlay {
    border-radius: 0 0 8px 8px;
    z-index: 10;
    top: 0;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mementor-tts-advanced-container .mementor-tts-lock-message {
    text-align: center;
    max-width: 500px;
}

.mementor-tts-advanced-container .mementor-tts-lock-message h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1d2327;
}

.mementor-tts-advanced-container .mementor-tts-lock-icon {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #2271b1;
    margin: 0 auto 20px;
    display: block;
}

.mementor-tts-advanced-container .mementor-tts-lock-message .button.mementor-tts-upgrade-button {
    padding: 10px 20px;
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.mementor-tts-advanced-container .mementor-tts-lock-message .description {
    font-size: 14px;
    margin-top: 15px;
    color: #646970;
    font-style: italic;
}