/* Reset a základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5282;
    --secondary-color: #3182ce;
    --accent-color: #e53e3e;
    --gold-color: #d4af37;
    --text-dark: #2d3748;
    --text-light: #4a5568;
    --text-muted: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero sekce */
.hero-section {

    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-period {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gold-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-wave {
    display: none;
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3e%3cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23f7fafc'%3e%3c/path%3e%3c/svg%3e") no-repeat center/cover;
    transform: rotate(180deg); /* 🔁 Otočení */
}


/* Animace */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Intro sekce */
.intro-section {
    padding: 80px 0;
    text-align: center;
}

.intro-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 600;
}

.intro-text {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Časová osa */
.timeline-section {
    padding: 60px 0 100px;
    background: var(--bg-white);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin: 60px 0;
    width: 50%;
}

.timeline-item.left {
    left: 0;
    padding-right: 60px;
}

.timeline-item.right {
    left: 50%;
    padding-left: 60px;
}

.timeline-content {
    position: relative;
}

.timeline-marker {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--bg-white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    z-index: 3;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.timeline-item.left .timeline-marker {
    right: -30px;
}

.timeline-item.right .timeline-marker {
    left: -30px;
}

.timeline-marker:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

.timeline-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.timeline-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-period {
    display: inline-block;
    background: var(--gold-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.timeline-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

.timeline-highlights {
    margin-bottom: 30px;
}

.timeline-highlights h4 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.timeline-highlights ul {
    list-style: none;
    padding-left: 0;
}

.timeline-highlights li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: var(--text-light);
}

.timeline-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.timeline-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.timeline-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Resources sekce */
.resources-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.resources-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-weight: 600;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.resource-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.resource-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.resource-card h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.resource-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.resource-card a {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    transition: var(--transition);
}

.resource-card a:hover {
    background: var(--primary-color);
    color: white;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 5px;
    opacity: 0.8;
}

/* Responzivní design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-period {
        font-size: 1.4rem;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding: 0 0 0 80px;
    }
    
    .timeline-item.left .timeline-marker,
    .timeline-item.right .timeline-marker {
    display: none;
    }
    
    .timeline-card {
        padding: 25px;
    }
    
    .timeline-card h3 {
        font-size: 1.5rem;
    }
    
    .intro-section h2,
    .resources-section h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .timeline-card {
        padding: 20px;
    }
    
    .timeline-marker {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
}

/* Animace pro AOS */
[data-aos="fade-right"] {
    transform: translateX(-50px);
    opacity: 0;
}

[data-aos="fade-left"] {
    transform: translateX(50px);
    opacity: 0;
}

[data-aos].aos-animate {
    transform: translateX(0);
    opacity: 1;
}

/* Styly pro detail stránky */
.detail-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.detail-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.detail-header .period {
    font-size: 1.3rem;
    color: var(--gold-color);
}

.detail-content {
    padding: 60px 0;
}

.detail-section {
    margin-bottom: 60px;
    width: 90%;
    margin: auto;
}

.detail-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 25px;
    border-bottom: 3px solid var(--gold-color);
    padding-bottom: 10px;
}

.personalities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.personality-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.personality-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.personality-img {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.personality-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



.personality-info {
    padding: 20px;
    width: 90%;
}

.personality-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.personality-info .years {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text-dark);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    margin-bottom: 40px;
}

.back-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Test styly */
.test-section {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    margin: 40px 0;
}

.test-section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

.question {
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    box-shadow: var(--shadow-light);
}

.question h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: var(--transition);
}

.option:hover {
    background: var(--bg-light);
}

.option input[type="radio"] {
    width: 18px;
    height: 18px;
}

.test-submit {
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    margin: 30px auto 0;
}

.test-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.test-result {
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    font-size: 1.2rem;
    font-weight: 600;
}

.test-result.excellent {
    background: #c6f6d5;
    color: #22543d;
    border: 2px solid #68d391;
}

.test-result.good {
    background: #fef5e7;
    color: #744210;
    border: 2px solid #f6ad55;
}

.test-result.needs-improvement {
    background: #fed7d7;
    color: #742a2a;
    border: 2px solid #fc8181;
}