/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.authors {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.affiliation {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.links {
    margin-top: 1rem;
}

.links a {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

.links a:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Abstract Section */
.abstract {
    background: white;
    padding: 2rem;
    margin-bottom: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.abstract h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 400;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.abstract p {
    font-size: 1.05rem;
    text-align: justify;
    color: #444;
}

/* Experiment Sections */
.experiment-section {
    margin-bottom: 4rem;
}

.experiment-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 400;
    text-align: center;
    position: relative;
}

.experiment-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2c3e50);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.experiment-description {
    text-align: center;
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
}

/* Sample Groups */
.sample-group {
    margin-bottom: 2.5rem;
}

.sample-group h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 1.2rem;
    text-align: center;
    font-weight: 400;
    padding: 0.8rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

/* Methods Grid */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding: 0.5rem 0;
}

/* Method Cards */
.method-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #e0e0e0;
}

.method-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 25px rgba(0,0,0,0.15);
}

.method-card.baseline {
    border-left-color: #f39c12;
}

.method-card.ours {
    border-left-color: #27ae60;
    background: linear-gradient(145deg, #ffffff 0%, #f8fff8 100%);
}

.method-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    font-weight: 500;
    text-align: center;
}

.method-card.baseline h4 {
    color: #d68910;
}

.method-card.ours h4 {
    color: #1e8449;
    font-weight: 600;
}

/* Audio Controls */
audio {
    width: 100%;
    margin-bottom: 0.8rem;
    height: 36px;
    border-radius: 4px;
    outline: none;
}

audio::-webkit-media-controls-panel {
    background-color: #f8f9fa;
    border-radius: 5px;
}

/* Spectrogram */
.spectrogram {
    text-align: center;
    margin-top: 0.5rem;
}

.spectrogram img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

.spectrogram img:hover {
    transform: scale(1.02);
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 4rem;
}

footer p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    color: #5dade2;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .authors {
        font-size: 1rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .abstract {
        padding: 1.5rem;
    }
    
    .methods-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .method-card {
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.5rem 0.5rem;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .abstract h2 {
        font-size: 1.5rem;
    }
    
    .audio-demos h2 {
        font-size: 1.5rem;
    }
    
    .sample-group h3 {
        font-size: 1.3rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .method-card {
        border: 2px solid #333;
    }
    
    .method-card.ours {
        border: 2px solid #27ae60;
    }
    
    .method-card.baseline {
        border: 2px solid #f39c12;
    }
}