/* Main Styles for Pre-Hispanic Mesoamerica Study Center */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B4513;
    --secondary-color: #D4AF37;
    --accent-color: #A0522D;
    --background-gradient: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #F4A460 100%);
    --card-background: rgba(255, 255, 255, 0.95);
    --text-color: #2c1810;
    --success-color: #228B22;
    --warning-color: #FF6347;
    --info-color: #4682B4;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-gradient);
    min-height: 100vh;
}

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

.header {
    background: linear-gradient(135deg, #1a1a1a 0%, #3d2914 100%);
    color: var(--secondary-color);
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 3px solid var(--primary-color);
}

.header h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: linear-gradient(135deg, var(--secondary-color), #DAA520);
    color: #1a1a1a;
}

#content-area {
    background: var(--card-background);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
    min-height: 500px;
}

.section-header {
    color: var(--primary-color);
    font-size: 2.2em;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.fact-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.fact-card:hover {
    transform: scale(1.05);
}

.fact-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 10px;
}

.highlight-box {
    background: linear-gradient(135deg, var(--secondary-color), #DAA520);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
}

.timeline {
    background: linear-gradient(135deg, #f8f4e6, #fff);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border-left: 5px solid var(--secondary-color);
}

.timeline-item {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.timeline-date {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1em;
    margin-bottom: 5px;
}

.pyramid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.pyramid-card {
    background: linear-gradient(135deg, #fff 0%, #f8f4e6 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 2px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

.pyramid-card:hover {
    transform: translateY(-5px);
}

.pyramid-card h3 {
    color: var(--primary-color);
    font-size: 1.6em;
    margin-bottom: 15px;
    text-align: center;
}

.study-tools {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tool-button {
    background: linear-gradient(135deg, var(--info-color), #5F9EA0);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 15px;
}

@media (max-width: 768px) {
    .header h1 { font-size: 2.5em; }
    .nav-tabs { flex-direction: column; align-items: center; }
    .tab-button { width: 90%; margin: 5px 0; }
    .fact-grid, .pyramid-grid { grid-template-columns: 1fr; }
}
/* Enhanced styles for new sections */

/* Discovery cards styling */
.discovery-grid {
    display: grid;
    gap: 25px;
    margin: 30px 0;
}

.discovery-card {
    background: linear-gradient(135deg, #fff 0%, #f8f4e6 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-left: 5px solid #8B4513;
    transition: transform 0.3s ease;
}

.discovery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.discovery-card.recent {
    border-left: 5px solid #D4AF37;
    background: linear-gradient(135deg, #fff9e6 0%, #f8f4e6 100%);
}

.discovery-card.major {
    border-left: 5px solid #A0522D;
}

.discovery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.discovery-date {
    background: #D4AF37;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    white-space: nowrap;
}

.discovery-significance {
    margin-top: 15px;
    padding: 15px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    border-left: 3px solid #D4AF37;
}

/* Methods grid for research techniques */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.method-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #4682B4;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.method-card h4 {
    color: #4682B4;
    margin-bottom: 10px;
}

/* Quiz specific styles */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-intro {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f4e6, #fff);
    border-radius: 15px;
    margin: 20px 0;
}

.quiz-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(139, 69, 19, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #8B4513;
}

.btn-primary {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #A0522D, #CD853F);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

.quiz-progress {
    background: #e9ecef;
    height: 8px;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.quiz-progress-bar {
    background: linear-gradient(135deg, #D4AF37, #DAA520);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.question-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #8B4513;
}

.answer-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.answer-option:hover {
    background: #e9ecef;
    border-color: #A0522D;
}

.answer-option.selected {
    background: rgba(212, 175, 55, 0.2);
    border-color: #D4AF37;
}

.hidden {
    display: none;
}

/* Glossary styles */
.glossary-container {
    max-width: 1000px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 15px;
    border: 2px solid #A0522D;
    border-radius: 25px;
    font-size: 1.1em;
    outline: none;
}

.search-input:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.glossary-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.filter-button {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.filter-button.active {
    background: #D4AF37;
    border-color: #8B4513;
    color: white;
}

.filter-button:hover {
    background: #A0522D;
    color: white;
}

.glossary-grid {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.glossary-term {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid #8B4513;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.glossary-term:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.term-name {
    font-size: 1.4em;
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 10px;
}

.term-category {
    display: inline-block;
    background: #A0522D;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-bottom: 10px;
}

.term-definition {
    line-height: 1.7;
    margin-bottom: 10px;
}

.term-context {
    font-style: italic;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
    padding-top: 10px;
    margin-top: 10px;
}
