/* ========================================
   AUDIO ANALYSIS - MODERN DESIGN
   Dedicated CSS for Audio Analysis Feature
   ======================================== */

:root {
    --audio-primary: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    --audio-accent: linear-gradient(135deg, #ffb74d 0%, #ff9800 100%);
    --audio-success: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
    --audio-warning: linear-gradient(135deg, #ffa726 0%, #ff6f00 100%);
    --audio-danger: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    --audio-bg-light: #fff8f0;
    --audio-bg-card: #ffffff;
    --audio-text-dark: #2d1810;
    --audio-text-medium: #5d4037;
    --audio-text-light: #8d6e63;
}

/* Audio Tab Content - Modern Container */
#audio-analysis {
    padding: 0;
    background: transparent;
}

.audio-hero {
    background: var(--audio-primary);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 25px;
    color: white;
    text-align: center;
    box-shadow: 0 10px 40px rgba(255, 152, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.audio-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: rotate-gradient 15s linear infinite;
}

@keyframes rotate-gradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.audio-hero-content {
    position: relative;
    z-index: 1;
}

.audio-hero h4 {
    font-size: 2rem;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: white;
}

.audio-hero-icon {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.audio-hero p {
    font-size: 1.1rem;
    margin: 0;
    color: white;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Limits Card - Premium Design */
.audio-limits-card {
    background: var(--audio-bg-card);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(255, 152, 0, 0.12);
    border: 2px solid #ffe0b2;
    transition: all 0.3s ease;
}

.audio-limits-card:hover {
    box-shadow: 0 15px 40px rgba(255, 152, 0, 0.18);
    transform: translateY(-5px);
}

.audio-limits-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--audio-text-dark);
}

.audio-limits-header svg {
    color: #ff9800;
}

.audio-limits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.audio-limit-box {
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #ffe0b2;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.audio-limit-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--audio-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.audio-limit-box:hover {
    border-color: #ff9800;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.2);
}

.audio-limit-box:hover::before {
    transform: scaleX(1);
}

.audio-limit-box-header {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--audio-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.audio-limit-icon {
    font-size: 1.5rem;
}

.audio-limit-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.audio-limit-box li {
    padding: 10px 0;
    border-bottom: 1px solid #ffe0b2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.audio-limit-box li:last-child {
    border-bottom: none;
}

.audio-limit-label {
    color: var(--audio-text-medium);
    font-weight: 500;
}

.audio-limit-value {
    font-weight: 700;
    color: #ff9800;
    font-size: 1.05rem;
}

.audio-formats-info {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Upload Zone - Premium Design */
.audio-upload-container {
    background: var(--audio-bg-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(255, 152, 0, 0.12);
}

.audio-drop-zone {
    border: 3px dashed #ffcc80;
    border-radius: 20px;
    padding: 60px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.audio-drop-zone::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 152, 0, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.audio-drop-zone:hover::before {
    width: 500px;
    height: 500px;
}

.audio-drop-zone:hover {
    border-color: #ff9800;
    background: linear-gradient(135deg, #ffe0b2 0%, #fff8f0 100%);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 152, 0, 0.2);
}

.audio-drop-zone-content svg {
    color: #ff9800;
    margin-bottom: 20px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.audio-drop-zone:hover .drop-zone-content svg {
    transform: scale(1.1);
    opacity: 1;
}

.audio-drop-zone-text {
    font-size: 1.3rem;
    margin: 15px 0;
    color: var(--audio-text-dark);
    font-weight: 700;
}

.audio-drop-zone-hint {
    font-size: 0.95rem;
    color: var(--audio-text-medium);
    margin: 0;
    line-height: 1.6;
}

/* Audio Preview - Enhanced */
.audio-preview {
    position: relative;
    border-radius: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 2px solid #ffe0b2;
}

#audio-preview-player {
    width: 100%;
    border-radius: 10px;
}

#audio-file-name {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
    color: var(--audio-text-dark);
    font-size: 1.05rem;
}

.remove-audio-btn {
    display: block;
    margin: 15px auto 0;
    background: rgba(239, 68, 68, 0.95);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.remove-audio-btn:hover {
    background: #dc2626;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
}

/* Description Section - Modern */
.audio-description-section {
    margin-top: 30px;
}

.audio-description-section label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--audio-text-dark);
}

#audio-description {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #ffe0b2;
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
    background: #fff8f0;
    color: var(--audio-text-dark);
}

#audio-description:focus {
    outline: none;
    border-color: #ff9800;
    background: white;
    box-shadow: 0 5px 20px rgba(255, 152, 0, 0.15);
}

#audio-description::placeholder {
    color: var(--audio-text-light);
}

#audio-description-hint {
    font-weight: 600;
    color: var(--audio-text-medium);
    transition: color 0.3s ease;
}

#audio-description-counter {
    color: var(--audio-text-light);
    font-weight: 600;
}

/* Analyze Button - Premium */
#analyze-audio-btn {
    width: 100%;
    margin-top: 25px;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--audio-primary);
    border: none;
    border-radius: 15px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

#analyze-audio-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#analyze-audio-btn:hover::before {
    width: 500px;
    height: 500px;
}

#analyze-audio-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 152, 0, 0.6);
}

#analyze-audio-btn:disabled {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Progress Bar - Enhanced */
#audio-analysis-progress {
    margin-top: 25px;
}

.audio-progress-bar-container {
    background: #ffe0b2;
    border-radius: 15px;
    overflow: hidden;
    height: 40px;
    box-shadow: inset 0 2px 5px rgba(255, 152, 0, 0.15);
}

.audio-progress-bar-fill {
    background: var(--audio-primary);
    height: 100%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(255, 152, 0, 0.5);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

#audio-progress-text {
    text-align: center;
    margin-top: 15px;
    color: var(--audio-text-medium);
    font-weight: 600;
    font-size: 1.05rem;
}

/* Result Section - Premium Design */
#audio-analysis-result {
    margin-top: 30px;
    background: var(--audio-bg-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(255, 152, 0, 0.12);
}

#audio-analysis-result h5 {
    color: #ff9800;
    margin-bottom: 25px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-result-section {
    margin-bottom: 25px;
    border-radius: 15px;
    overflow: hidden;
}

.audio-result-section h6 {
    color: var(--audio-text-dark);
    margin-bottom: 15px;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

#audio-result-analysis {
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 12px;
    line-height: 1.8;
    border-left: 4px solid #ff9800;
    font-size: 1.05rem;
    color: var(--audio-text-dark);
}

.audio-result-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.audio-result-section ul li {
    margin-bottom: 12px;
    padding: 15px 15px 15px 45px;
    position: relative;
    line-height: 1.7;
    border-radius: 10px;
    transition: all 0.3s ease;
    color: var(--audio-text-dark);
}

.audio-result-section ul li:hover {
    transform: translateX(5px);
}

#audio-result-findings {
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
    border-left: 4px solid #2196f3;
}

#audio-result-findings li::before {
    content: "✓";
    position: absolute;
    left: 15px;
    font-weight: bold;
    color: #2196f3;
    font-size: 1.3rem;
}

#audio-result-issues {
    background: linear-gradient(135deg, #fff3cd 0%, #ffffff 100%);
    border-left: 4px solid #ff9800;
}

#audio-result-issues li::before {
    content: "⚠";
    position: absolute;
    left: 15px;
    font-weight: bold;
    color: #ff9800;
    font-size: 1.3rem;
}

#audio-result-recommendations {
    background: linear-gradient(135deg, #ffe0b2 0%, #ffffff 100%);
    border-left: 4px solid #ff6f00;
}

#audio-result-recommendations li::before {
    content: "💡";
    position: absolute;
    left: 15px;
    font-size: 1.2rem;
}

#audio-remaining-info {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: var(--audio-primary);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .audio-hero {
        padding: 20px;
    }

    .audio-hero h4 {
        font-size: 1.5rem;
        flex-direction: column;
    }

    .audio-hero-icon {
        font-size: 2.5rem;
    }

    .audio-limits-grid {
        grid-template-columns: 1fr;
    }

    .audio-drop-zone {
        padding: 40px 20px;
    }

    .audio-drop-zone-text {
        font-size: 1.1rem;
    }

    #analyze-audio-btn {
        font-size: 1.1rem;
        padding: 15px;
    }

    .audio-result-section ul li {
        padding: 12px 12px 12px 40px;
        font-size: 0.95rem;
    }
}