/* Enneagram Testi - Stil Dosyası */
:root {
    --primary-color: #5271ff;
    --secondary-color: #8a5cf2;
    --bg-color: #f9f9f9;
    --text-color: #333;
    --light-gray: #e2e2e2;
    --dark-gray: #666;
    --white: #fff;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    overflow: hidden;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.header p {
    color: var(--dark-gray);
    font-size: 1.1rem;
}

/* Giriş Ekranı */
.intro-container {
    text-align: center;
}

.intro-container p {
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(82, 113, 255, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(82, 113, 255, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* Sorular Kısmı */
.question-container {
    display: none;
}

.question {
    text-align: center;
    margin-bottom: 30px;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.5s ease;
}

.question h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.question p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    padding: 0 10px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option {
    background-color: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    text-align: center;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.option:hover {
    border-color: var(--primary-color);
    background-color: rgba(82, 113, 255, 0.05);
}

.option:nth-child(1) { transition-delay: 0.1s; }
.option:nth-child(2) { transition-delay: 0.2s; }
.option:nth-child(3) { transition-delay: 0.3s; }
.option:nth-child(4) { transition-delay: 0.4s; }
.option:nth-child(5) { transition-delay: 0.5s; }

.question.fade-out .option,
.question.fade-in .option {
    opacity: 0;
    transform: translateY(20px);
}

/* İlerleme Çubuğu */
.progress-container {
    width: 100%;
    height: 10px;
    background-color: var(--light-gray);
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
    width: 0;
}

/* Sonuçlar Kısmı */
.results-container {
    display: none;
}

.results-container h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.results-chart {
    margin-bottom: 30px;
    max-width: 500px;
    margin: 0 auto 30px auto;
}

.primary-result {
    background-color: rgba(82, 113, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.primary-result h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.wings {
    margin-bottom: 30px;
}

.wings h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.wings p {
    margin-bottom: 10px;
}

.all-scores h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.score-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.score-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-label {
    width: 200px;
    font-size: 0.9rem;
    text-align: right;
}

.score-bar {
    flex-grow: 1;
    height: 12px;
    background-color: var(--light-gray);
    border-radius: 6px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
}

.score-value {
    width: 40px;
    text-align: right;
    font-weight: 600;
}

/* Responsive tasarım */
@media screen and (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .question p {
        font-size: 1.1rem;
    }
    
    .score-label {
        width: 150px;
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .score-label {
        width: 120px;
        font-size: 0.7rem;
    }
    
    .score-bars {
        gap: 8px;
    }
}

/* Soru Animasyonları */
.question.fade-out {
    opacity: 0;
    transform: translateX(-100px);
}

.question.fade-in {
    opacity: 0;
    transform: translateX(100px);
}

/* Progress Bar Animasyonu */
.progress-bar {
    transition: width 0.5s ease-in-out;
}

/* Seçenek Animasyonları */
.option {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.option:nth-child(1) { transition-delay: 0.1s; }
.option:nth-child(2) { transition-delay: 0.2s; }
.option:nth-child(3) { transition-delay: 0.3s; }
.option:nth-child(4) { transition-delay: 0.4s; }
.option:nth-child(5) { transition-delay: 0.5s; }

.question.fade-out .option,
.question.fade-in .option {
    opacity: 0;
    transform: translateY(20px);
}

/* Detaylı Sonuç Stilleri */
.type-details {
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(82, 113, 255, 0.05);
    border-radius: 12px;
}

.type-details h4 {
    color: var(--primary-color);
    margin: 20px 0 10px 0;
    font-size: 1.2rem;
}

.type-details h4:first-child {
    margin-top: 0;
}

.type-details p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left;
}

.results-chart {
    margin: 40px auto;
    max-width: 600px;
    height: 300px;
}

@media screen and (max-width: 768px) {
    .type-details {
        padding: 15px;
    }

    .type-details h4 {
        font-size: 1.1rem;
    }

    .results-chart {
        height: 250px;
    }
}

@media screen and (max-width: 480px) {
    .type-details {
        padding: 10px;
    }

    .type-details h4 {
        font-size: 1rem;
    }

    .results-chart {
        height: 200px;
    }
}

/* Tablo Stilleri */
.all-types-table {
    margin: 30px 0;
}

.all-types-table h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.all-types-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.all-types-table th,
.all-types-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.all-types-table th {
    background-color: rgba(82, 113, 255, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.all-types-table tr:last-child td {
    border-bottom: none;
}

.all-types-table tr:hover {
    background-color: rgba(82, 113, 255, 0.05);
}

.table-bar-container {
    width: 100%;
    height: 12px;
    background-color: var(--light-gray);
    border-radius: 6px;
    overflow: hidden;
}

.table-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
    transition: width 0.8s ease;
}

@media screen and (max-width: 768px) {
    .all-types-table {
        margin: 20px -15px;
        width: calc(100% + 30px);
    }

    .all-types-table table {
        font-size: 0.9rem;
    }

    .all-types-table th,
    .all-types-table td {
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    .all-types-table table {
        font-size: 0.8rem;
    }

    .all-types-table th,
    .all-types-table td {
        padding: 8px;
    }

    .table-bar-container {
        height: 8px;
    }
}
