/* Audio Compressor - Complete Styling */

.tool-page {
    padding-top: 0;
}

.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.breadcrumb a:hover {
    color: #8b5cf6;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #ddd;
}

.breadcrumb .current {
    color: #333;
    font-weight: 600;
}

.tool-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tool-header::before {
    content: '🗜️🎵';
    position: absolute;
    font-size: 300px;
    opacity: 0.05;
    top: -50px;
    right: -50px;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tool-header-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tool-icon-large {
    font-size: 72px;
    margin-bottom: 20px;
    animation: squeeze 2s ease-in-out infinite;
}

@keyframes squeeze {
    0%, 100% { transform: scale(1, 1); }
    50% { transform: scale(1.2, 0.8); }
}

.tool-header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.tool-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 25px;
    line-height: 1.6;
}

.tool-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 16px;
}

.meta-separator {
    opacity: 0.5;
}

.tool-content {
    padding: 60px 20px;
    background: #f8f9fa;
}

.compressor-root {
    max-width: 1000px;
    margin: 0 auto;
}

/* Upload Section */
.upload-section {
    margin-bottom: 40px;
}

.upload-card {
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 3px dashed #8b5cf6;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-card:hover,
.upload-card.drag-over {
    border-color: #7c3aed;
    background: #faf5ff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.upload-card h3 {
    color: #1f2937;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
}

.upload-card p {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 25px;
}

.supported-formats {
    margin-top: 20px;
    color: #9ca3af;
    font-size: 13px;
}

/* File Info Card */
.file-info-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border: 2px solid rgba(139, 92, 246, 0.1);
}

.file-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.file-icon {
    font-size: 42px;
}

.file-details {
    flex: 1;
}

.file-name {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
    word-break: break-all;
}

.file-meta {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: #6b7280;
    flex-wrap: wrap;
}

.file-meta .separator {
    color: #d1d5db;
}

.btn-change {
    padding: 8px 16px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    transition: all 0.3s;
}

.btn-change:hover {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
}

.audio-player {
    margin-top: 15px;
}

.audio-player label {
    display: block;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.audio-player audio {
    width: 100%;
    height: 40px;
}

/* Compression Card */
.compression-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border: 2px solid rgba(139, 92, 246, 0.1);
}

.compression-card h3 {
    color: #8b5cf6;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

/* Setting Group */
.setting-group {
    margin-bottom: 35px;
}

.setting-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #374151;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 15px;
}

.quality-value,
.compression-value {
    color: #8b5cf6;
    font-size: 14px;
}

/* Quality Slider */
.quality-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    outline: none;
    background: linear-gradient(to right, #ef4444, #f59e0b, #10b981);
    cursor: pointer;
    -webkit-appearance: none;
    margin-bottom: 10px;
}

.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border: 3px solid #8b5cf6;
}

.quality-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border: 3px solid #8b5cf6;
}

.quality-marks {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

.quality-marks span {
    flex: 1;
}

/* Compression Options */
.compression-options {
    display: grid;
    gap: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-option:hover {
    background: #faf5ff;
    border-color: #8b5cf6;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-option input[type="radio"]:checked {
    accent-color: #8b5cf6;
}

.radio-label {
    flex: 1;
}

.radio-label strong {
    display: block;
    color: #1f2937;
    font-size: 15px;
    margin-bottom: 3px;
}

.radio-label small {
    color: #6b7280;
    font-size: 13px;
}

/* Format Buttons */
.format-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.format-btn {
    flex: 1;
    min-width: 100px;
    padding: 12px 20px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: #374151;
    transition: all 0.3s;
}

.format-btn:hover {
    background: #faf5ff;
    border-color: #8b5cf6;
    transform: translateY(-2px);
}

.format-btn.active {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
}

/* Compress Action */
.compress-action {
    text-align: center;
    margin-top: 30px;
}

/* Progress Section */
.progress-section {
    margin-bottom: 40px;
}

.progress-card {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
    border: 2px solid rgba(139, 92, 246, 0.1);
}

.progress-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: spin 2s linear infinite;
}

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

.progress-card h4 {
    color: #8b5cf6;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
}

.progress-bar-container {
    background: #e5e7eb;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 6px;
}

.progress-text {
    color: #6b7280;
    font-size: 15px;
    font-weight: 600;
}

/* Comparison Card */
.comparison-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border: 2px solid rgba(139, 92, 246, 0.1);
}

.comparison-card h3 {
    color: #1f2937;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
}

.comparison-item {
    text-align: center;
    padding: 25px;
    border-radius: 12px;
    background: #f9fafb;
}

.comparison-item.original {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
}

.comparison-item.compressed {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
}

.comparison-label {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.comparison-size {
    color: #1f2937;
    font-size: 32px;
    font-weight: 900;
}

.comparison-arrow {
    font-size: 32px;
    color: #8b5cf6;
}

.savings-info {
    text-align: center;
}

.savings-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 25px;
    border: 2px solid #f59e0b;
}

.savings-icon {
    font-size: 24px;
}

.savings-text {
    color: #92400e;
    font-weight: 600;
    font-size: 16px;
}

.savings-text strong {
    color: #78350f;
    font-size: 18px;
}

/* Download Card */
.download-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 2px solid rgba(139, 92, 246, 0.1);
}

.download-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.download-icon {
    font-size: 52px;
}

.download-details h4 {
    color: #1f2937;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 5px;
}

.download-details p {
    color: #6b7280;
    font-size: 14px;
}

.download-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.download-actions .btn {
    flex: 1;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.btn-compress {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-download {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.btn-ghost {
    background: white;
    border: 2px solid rgba(0,0,0,0.1);
    color: #1f2937;
    box-shadow: none;
}

.btn-ghost:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-left: 5px solid #8b5cf6;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.info-box h4 {
    color: #6b21a8;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.info-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    line-height: 1.7;
    font-size: 14px;
    color: #555;
    border: 2px solid rgba(139, 92, 246, 0.2);
}

.info-item strong {
    color: #6b21a8;
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

/* Tips Box */
.tips-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(59, 130, 246, 0.2);
}

.tips-box h4 {
    color: #1e40af;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.tips-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-box li {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    color: #1e3a8a;
    font-size: 14px;
    line-height: 1.6;
    border: 2px solid rgba(59, 130, 246, 0.1);
}

.tips-box li strong {
    color: #1e40af;
}

/* SEO Content */
.seo-content {
    padding: 80px 20px;
    background: white;
}

.content-article {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-article h2 {
    font-size: 32px;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #333;
}

.content-article h2:first-child {
    margin-top: 0;
}

.content-article p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

.content-article strong {
    color: #333;
    font-weight: 700;
}

/* Related Tools */
.related-tools {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
}

.related-tools h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    color: #8b5cf6;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.related-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.related-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #8b5cf6;
}

.related-tool-card .tool-icon {
    font-size: 42px;
}

.related-tool-card .tool-name {
    font-weight: 700;
    color: #333;
    font-size: 16px;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 15px 22px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    font-size: 15px;
    font-weight: 600;
    z-index: 10000;
    animation: slideInUp 0.3s ease-out;
}

.notification-toast.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 32px;
    }
    
    .tool-subtitle {
        font-size: 16px;
    }
    
    .tool-icon-large {
        font-size: 52px;
    }
    
    .upload-card {
        padding: 40px 25px;
    }
    
    .file-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-change {
        width: 100%;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-arrow {
        transform: rotate(90deg);
    }
    
    .download-actions {
        flex-direction: column;
    }
    
    .content-article h2 {
        font-size: 26px;
    }
}

@media (max-width: 520px) {
    .tool-header {
        padding: 40px 20px;
    }
    
    .tool-header h1 {
        font-size: 28px;
    }
    
    .tool-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .meta-separator {
        display: none;
    }
    
    .format-buttons {
        flex-direction: column;
    }
    
    .notification-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        font-size: 14px;
    }
}

html {
    scroll-behavior: smooth;
}