/* Simple Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Gradient Header */
.gradient-header {
    background: linear-gradient(135deg, #2E86AB 0%, #A23B72 50%, #F18F01 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.gradient-header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 400;
    text-align: center;
    margin: 0 auto;
}

/* Main Content */
main {
    margin-bottom: 40px;
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

section {
    margin-bottom: 40px;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2E86AB;
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #444;
}

p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.7;
    color: #555;
}

/* Model Overview Section */
.model-diagram {
    text-align: center;
    margin: 30px 0;
}

.architecture-img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.diagram-caption {
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
    text-align: center !important;
    margin-top: 10px;
    line-height: 1.5;
}

/* Audio Samples Table Layout */
.comparison-table {
    width: 100%;
    margin: 20px 0;
}

.table-header {
    display: grid;
    grid-template-columns: 180px repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 15px;
    padding: 15px 5px;
    background: #f8f9fa;
    border-radius: 8px;
    font-weight: 600;
    color: #2E86AB;
}

.timbre-column {
    /* Empty space for timbre labels */
    display: block;
}

.method-column {
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 5px;
    border: 2px solid #2E86AB;
}

.timbre-row {
    display: grid;
    grid-template-columns: 180px repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    align-items: stretch;
}

.timbre-label {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: #2E86AB;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    gap: 10px;
    border: 2px solid #2E86AB;
}

.timbre-label span {
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.timbre-label audio {
    width: 100%;
    max-width: 140px;
    height: 35px;
    margin-top: auto;
    margin-bottom: auto;
}

.vocal-samples {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f0f7ff;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e1f0ff;
    height: 100%;
}

.vocal-item {
    background: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.vocal-item span {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #555;
    font-size: 0.85rem;
}

.vocal-item audio {
    width: 100%;
    max-width: 180px;
    height: 32px;
}

/* References Section */
#references {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 20px;
    margin-bottom: 20px;
}

.references-list {
    margin-top: 20px;
}

.reference-item {
    display: flex;
    margin-bottom: 15px;
    line-height: 1.6;
}

.reference-number {
    font-weight: 600;
    color: #2E86AB;
    margin-right: 10px;
    min-width: 30px;
}

.reference-text {
    color: #555;
    text-align: justify;
}

.reference-text em {
    font-style: italic;
    color: #2E86AB;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid #eee;
    color: #666;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 20px;
}

footer p {
    margin-bottom: 5px;
}

footer a {
    color: #2E86AB;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .gradient-header {
        padding: 40px 0;
    }
    
    .gradient-header h1 {
        font-size: 1.6rem;
    }
    
    main {
        padding: 25px;
    }
    
    .table-header,
    .timbre-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .method-column {
        margin-bottom: 10px;
    }
    
    .timbre-label {
        min-height: auto;
        margin-bottom: 15px;
    }
}