/* Zihin Okuyucu - Akinator tarzı */

.main-akinator {
    max-width: 500px;
    margin: 0 auto;
}

.akinator-game {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 3px solid #8b5cf6;
}

.akinator-start {
    text-align: center;
}

.genie-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: float-genie 2s ease-in-out infinite;
}

@keyframes float-genie {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.akinator-start h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.akinator-start p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.akinator-start .hint {
    font-size: 0.9rem;
    margin: 1rem 0;
    padding: 0.75rem;
    background: #f5f3ff;
    border-radius: 12px;
}

.btn-begin {
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s;
}

.btn-begin:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.akinator-play .question-bubble {
    background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid #8b5cf6;
    position: relative;
}

.question-bubble::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border: 12px solid transparent;
    border-top-color: #8b5cf6;
}

.question-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #4338ca;
    text-align: center;
}

.question-counter {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #8b5cf6;
    margin-bottom: 0.75rem;
}

.answer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (max-width: 500px) {
    .answer-grid {
        grid-template-columns: 1fr;
    }
}

.btn-option {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 1rem;
    border-radius: 16px;
    border: 3px solid #8b5cf6;
    background: linear-gradient(180deg, #ede9fe 0%, #e0e7ff 100%);
    color: #4338ca;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-option:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-option:nth-child(1) { border-color: #10b981; background: linear-gradient(180deg, #d1fae5 0%, #a7f3d0 100%); color: #065f46; }
.btn-option:nth-child(2) { border-color: #6366f1; background: linear-gradient(180deg, #e0e7ff 0%, #c7d2fe 100%); color: #3730a3; }
.btn-option:nth-child(3) { border-color: #f59e0b; background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%); color: #92400e; }
.btn-option:nth-child(4) { border-color: #ec4899; background: linear-gradient(180deg, #fce7f3 0%, #fbcfe8 100%); color: #9d174d; }

.genie-container {
    position: relative;
    min-height: 80px;
}

.genie-think {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
}

.genie-think span {
    width: 12px;
    height: 12px;
    background: #8b5cf6;
    border-radius: 50%;
    animation: think-bounce 0.6s ease-in-out infinite;
}

.genie-think span:nth-child(2) { animation-delay: 0.1s; }
.genie-think span:nth-child(3) { animation-delay: 0.2s; }

@keyframes think-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.genie-react {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    animation: react-pop 0.4s ease;
}

@keyframes react-pop {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.btn-reset-tree {
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.7;
}

.btn-reset-tree:hover {
    opacity: 1;
}

.btn-answer {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 16px;
    border: 3px solid;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-yes {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.btn-yes:hover {
    background: #a7f3d0;
    transform: scale(1.05);
}

.btn-no {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.btn-no:hover {
    background: #fecaca;
    transform: scale(1.05);
}

.akinator-win {
    text-align: center;
}

.win-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.akinator-win h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.guess-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #8b5cf6;
    margin: 1rem 0;
    padding: 1rem;
    background: #f5f3ff;
    border-radius: 12px;
}

.win-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.learn-form {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #fef3c7;
    border-radius: 16px;
    border: 2px solid #f59e0b;
}

.learn-form h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.learn-form label {
    display: block;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
}

.learn-form input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #f59e0b;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
}

.learn-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-save {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.btn-skip {
    font-family: 'Nunito', sans-serif;
    padding: 0.75rem 1rem;
    background: #e5e7eb;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.akinator-stats {
    text-align: center;
    margin-top: 1rem;
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.95rem;
}

#learned-count {
    color: #8b5cf6;
}
