/* ============================
   PRZYCISKI
   ============================ */
.btn {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    /* Fix dla niebieskiego podświetlenia na telefonach */
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #764ba2 0%, #667eea 100%);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.3rem;
    margin-top: 30px;
}

/* Efekt świecenia dla głównego przycisku */
.btn-large::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    z-index: -1;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-large:hover::after {
    opacity: 0.7;
}

/* ============================
   KARTY CYTATÓW
   ============================ */
.quotes-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.quote-card {
    background: rgba(255, 255, 255, 0.12);
    padding: 25px;
    border-radius: 15px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.quote-card::before {
    content: '"';
    font-size: 4rem;
    color: #ffd700;
    position: absolute;
    top: -10px;
    left: 15px;
    opacity: 0.7;
    font-family: serif;
}

.quote-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    padding-left: 20px;
    font-style: italic;
    color: #fff;
}

.quote-author {
    font-size: 0.9rem;
    color: #ffd700;
    font-weight: bold;
    text-align: right;
    opacity: 0.9;
}

/* ============================
   SEKCJA PYTAŃ
   ============================ */
.question-counter {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    opacity: 0.8;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 8px;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.question-text {
    font-size: 1.4rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #fff;
}

.answer-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.option-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fix dla niebieskiego podświetlenia na telefonach */
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-touch-callout: none;
    /* Zapobieganie zaznaczaniu tekstu i drag & drop */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-drag: none;
    user-drag: none;
    /* Zapobieganie ikonie zakazu */
    pointer-events: auto;
    outline: none;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.option-btn:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

.option-btn.selected {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1e3c72;
    border-color: #ffd700;
    transform: scale(1.15);
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ============================
   SEKCJA WYNIKÓW
   ============================ */
.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #ffd700;
}

.domain-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.domain-card {
    background: rgba(255, 255, 255, 0.12);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Wydruk: proste karty, brak efektów i ostrych kolorów tła */
@media print {
    .btn { display: none !important; }
    .domain-card, .talent-highlight, .career-recommendation { background: #fff !important; box-shadow: none !important; border: 1px solid #e0e0e0; }
    .score-bar { background: #eee; }
    .score-fill { background: #667eea !important; }
}

.domain-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #ffd700;
}

.domain-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ffd700;
}

.score-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.score-fill {
    background: linear-gradient(90deg, #667eea, #764ba2);
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
}

.score-text {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Wyróżnienie top talentów */
.talent-highlight {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.talent-rank {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 10px;
}

.career-recommendation {
    background: rgba(255, 215, 0, 0.1);
    border-left: 3px solid #ffd700;
    padding: 15px;
    border-radius: 0 10px 10px 0;
    margin-top: 15px;
}

.talent-description {
    line-height: 1.6;
    margin: 15px 0;
    opacity: 0.95;
}

/* ============================
   RESPONSYWNOŚĆ KOMPONENTÓW
   ============================ */
@media (max-width: 768px) {
    .answer-options {
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .option-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        margin: 5px;
    }

    .quotes-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 1rem;
        margin: 5px;
    }

    .btn-large {
        padding: 15px 25px;
        font-size: 1.1rem;
        margin: 10px 5px;
    }

    .domain-results {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
        margin: 3px;
    }

    .btn-large {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .option-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .scale-labels {
        font-size: 0.8rem;
    }

    .domain-results {
        grid-template-columns: 1fr;
    }
}

/* Progressywne ładowanie kart wyników */
.domain-card:nth-child(1) { animation-delay: 0.1s; }
.domain-card:nth-child(2) { animation-delay: 0.2s; }
.domain-card:nth-child(3) { animation-delay: 0.3s; }
.domain-card:nth-child(4) { animation-delay: 0.4s; }
.domain-card:nth-child(5) { animation-delay: 0.5s; }
.domain-card:nth-child(6) { animation-delay: 0.6s; }