/* ==============================================
   СТИЛИ ДЛЯ ТЕСТА "СОВРЕМЕННЫЙ ПЕДАГОГ"
   Обновленная версия с улучшенной кликабельностью
============================================== */

/* Стили для главной страницы с тестами */
.test-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
}

.test-card {
    background: rgba(15, 25, 40, 0.6);
    border-radius: 20px;
    padding: 0;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(119, 225, 255, 0.2);
    backdrop-filter: blur(10px);
    overflow: visible;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.test-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(119, 225, 255, 0.3);
}

/* Контейнер теста */
.test-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Прогресс-бар теста */
.test-progress {
    background: rgba(15, 25, 40, 0.6);
    border-radius: 50px;
    padding: 8px;
    margin-bottom: 40px;
    border: 1px solid rgba(119, 225, 255, 0.2);
    backdrop-filter: blur(10px);
}

.progress-bar {
    height: 12px;
    background: linear-gradient(90deg, var(--bright-green), var(--blue-accent));
    border-radius: 50px;
    transition: width 0.5s ease;
    position: relative;
    box-shadow: 0 0 15px rgba(124, 252, 0, 0.3);
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Карточка вопроса */
.question-card {
    background: rgba(15, 25, 40, 0.6);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid rgba(119, 225, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.question-card.active {
    opacity: 1;
    transform: translateY(0);
}

.question-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(124, 252, 0, 0.05), transparent);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

/* Заголовок вопроса */
.question-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

.question-icon {
    width: 50px;
    height: 50px;
    background: rgba(124, 252, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bright-green);
    font-size: 24px;
    border: 2px solid rgba(124, 252, 0, 0.3);
}

.question-number {
    background: linear-gradient(90deg, var(--bright-green), var(--blue-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 18px;
    font-weight: 700;
}

.question-text {
    font-size: 22px;
    color: white;
    line-height: 1.4;
    flex: 1;
}

/* УЛУЧШЕННЫЕ ВАРИАНТЫ ОТВЕТОВ */
.answers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.answer-option {
    background: rgba(15, 30, 60, 0.4);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 18px 25px;
    cursor: pointer !important;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    z-index: 10;
}

.answer-option:hover {
    border-color: rgba(124, 252, 0, 0.5) !important;
    background: rgba(15, 30, 60, 0.6) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

.answer-option:active {
    transform: translateY(0) !important;
    transition: all 0.1s ease;
}

.answer-option.selected {
    border-color: var(--bright-green) !important;
    background: rgba(124, 252, 0, 0.1) !important;
    box-shadow: 0 0 20px rgba(124, 252, 0, 0.2) !important;
}

.answer-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(124, 252, 0, 0.1), transparent);
    transition: width 0.3s ease;
    z-index: -1;
}

.answer-option.selected::before {
    width: 100%;
}

.answer-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.answer-option.selected .answer-text {
    color: white;
    font-weight: 500;
}

/* Навигация */
.test-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.nav-btn {
    background: linear-gradient(45deg, var(--blue-accent), var(--bright-green));
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 0 20px rgba(89, 255, 58, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(89, 255, 58, 0.5);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.nav-btn i {
    font-size: 14px;
}

/* Тест-бейджи */
.test-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: linear-gradient(135deg, var(--bright-green), var(--blue-accent));
    color: white;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(89, 255, 58, 0.3);
    animation: neonGlow 2s infinite alternate;
    white-space: nowrap;
}

.test-badge.coming-soon {
    background: linear-gradient(135deg, var(--purple-accent), var(--blue-accent));
    box-shadow: 0 4px 10px rgba(192, 115, 255, 0.3);
}

@keyframes neonGlow {
    0% {
        box-shadow: 0 0 5px rgba(89, 255, 58, 0.5);
    }
    100% {
        box-shadow: 0 0 15px rgba(89, 255, 58, 0.8), 0 0 20px rgba(119, 225, 255, 0.4);
    }
}

/* Заголовок теста */
.test-header {
    padding: 30px 30px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.test-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: rgba(119, 225, 255, 0.1);
    border: 2px solid rgba(119, 225, 255, 0.3);
    position: relative;
}

.test-icon.secondary {
    background: rgba(192, 115, 255, 0.1);
    border-color: rgba(192, 115, 255, 0.3);
}

.test-icon i {
    font-size: 32px;
    color: var(--blue-accent);
}

.test-icon.secondary i {
    color: var(--purple-accent);
}

.test-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--blue-accent);
}

.secondary-test .test-title {
    color: var(--purple-accent);
}

/* Контент теста */
.test-content {
    padding: 0 30px;
    flex-grow: 1;
    z-index: 2;
}

.test-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 25px;
    text-align: center;
}

.test-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.test-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(15, 30, 60, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(119, 225, 255, 0.2);
}

.test-feature i {
    font-size: 16px;
    color: var(--blue-accent);
    min-width: 16px;
}

.secondary-test .test-feature i {
    color: var(--purple-accent);
}

.test-feature span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Секции оценки */
.test-sections {
    margin-bottom: 20px;
}

.test-sections h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--bright-green);
    text-align: center;
}

.sections-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.section-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(124, 252, 0, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(124, 252, 0, 0.2);
}

.section-item i {
    font-size: 14px;
    color: var(--bright-green);
    min-width: 14px;
}

.section-item span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

/* Футер теста */
.test-footer {
    padding: 30px;
    text-align: center;
    z-index: 2;
}

.test-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    min-width: 200px;
    justify-content: center;
}

.test-btn.primary {
    background: linear-gradient(45deg, var(--bright-green), var(--blue-accent));
    color: white;
    box-shadow: 0 0 20px rgba(89, 255, 58, 0.4);
    animation: glowPulse 2s infinite alternate;
}

.test-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(89, 255, 58, 0.6);
}

.test-btn.secondary {
    background: rgba(192, 115, 255, 0.15);
    border: 1px solid rgba(192, 115, 255, 0.4);
    color: rgba(255, 255, 255, 0.7);
}

.test-btn.secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.test-btn.secondary:disabled:hover {
    transform: none;
    box-shadow: none;
}

.test-btn i {
    font-size: 18px;
}

/* Загрузка результатов */
.loading-result {
    text-align: center;
    padding: 80px 20px;
    color: var(--bright-green);
}

.loading-spinner i {
    font-size: 48px;
    color: var(--blue-accent);
    margin-bottom: 30px;
    animation: spin 1s linear infinite;
}

.loading-result h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: white;
}

.loading-result p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

/* Результаты */
.result-header {
    text-align: center;
    margin-bottom: 40px;
    animation: zoomIn 0.8s ease;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: rgba(15, 25, 40, 0.8);
    border: 2px solid var(--bright-green);
    border-radius: 25px;
    padding: 30px 50px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(124, 252, 0, 0.2);
}

.result-icon {
    font-size: 56px;
    color: var(--bright-green);
    text-shadow: 0 0 20px rgba(124, 252, 0, 0.5);
}

.result-title {
    font-size: 36px;
    color: var(--bright-green);
    margin: 0;
    text-shadow: 0 0 10px rgba(124, 252, 0, 0.3);
}

.result-score {
    font-size: 24px;
    color: var(--blue-accent);
    margin-top: 20px;
    font-weight: 600;
}

.result-percentage {
    display: inline-block;
    background: linear-gradient(90deg, var(--bright-green), var(--blue-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* Описание результата */
.result-description {
    background: rgba(15, 25, 40, 0.6);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 40px;
    border: 1px solid rgba(119, 225, 255, 0.2);
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.result-description::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(124, 252, 0, 0.03), transparent);
    animation: rotate 25s linear infinite;
    z-index: -1;
}

.result-profile {
    margin-top: 25px;
}

.result-profile p {
    margin: 12px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Детальная обратная связь */
.detailed-feedback {
    margin-top: 30px;
}

.feedback-toggle {
    background: linear-gradient(45deg, var(--blue-accent), var(--purple-accent));
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 20px;
}

.feedback-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(119, 225, 255, 0.3);
}

.feedback-content {
    animation: slideDown 0.5s ease;
}

.section-feedback {
    margin-bottom: 30px;
    background: rgba(15, 25, 40, 0.4);
    border-radius: 15px;
    padding: 25px;
    border-left: 4px solid;
}

.section-feedback.high {
    border-left-color: var(--bright-green);
}

.section-feedback.medium {
    border-left-color: #ffed00;
}

.section-feedback.low {
    border-left-color: #ff6b6b;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.section-feedback.high .section-title {
    color: var(--bright-green);
}

.section-feedback.medium .section-title {
    color: #ffed00;
}

.section-feedback.low .section-title {
    color: #ff6b6b;
}

.section-score {
    font-size: 14px;
    opacity: 0.8;
    margin-left: auto;
}

.recommendations {
    margin-top: 15px;
}

.recommendations h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--blue-accent);
}

.recommendations ul {
    list-style: none;
    padding: 0;
}

.recommendations li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.recommendations li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--bright-green);
    font-weight: bold;
}

/* Кнопки действий */
.result-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--bright-green), var(--blue-accent));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(89, 255, 58, 0.4);
}

.btn-secondary {
    background: rgba(119, 225, 255, 0.1);
    border: 1px solid rgba(119, 225, 255, 0.3);
    color: var(--blue-accent);
}

.btn-secondary:hover {
    background: rgba(119, 225, 255, 0.2);
    transform: translateY(-2px);
}

/* Анимации */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 2000px;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 10px rgba(89, 255, 58, 0.5), 0 0 20px rgba(89, 255, 58, 0.2);
    }
    100% {
        box-shadow: 0 0 20px rgba(89, 255, 58, 0.8), 0 0 40px rgba(89, 255, 58, 0.4);
    }
}

/* Адаптивность */
@media (max-width: 992px) {
    .test-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .test-card {
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    .test-cards-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }
    
    .test-card {
        min-height: 400px;
    }
    
    .test-header {
        padding: 25px 20px 15px;
    }
    
    .test-icon {
        width: 60px;
        height: 60px;
    }
    
    .test-icon i {
        font-size: 28px;
    }
    
    .test-title {
        font-size: 20px;
    }
    
    .test-content {
        padding: 0 20px;
    }
    
    .test-description {
        font-size: 15px;
    }
    
    .test-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .sections-list {
        grid-template-columns: 1fr;
    }
    
    .test-footer {
        padding: 20px;
    }
    
    .test-btn {
        padding: 12px 25px;
        font-size: 15px;
        min-width: 180px;
    }
    
    .test-container {
        padding: 15px;
    }
    
    .question-card {
        padding: 25px 20px;
    }
    
    .question-text {
        font-size: 18px;
    }
    
    .answer-option {
        padding: 15px 20px;
    }
    
    .answer-text {
        font-size: 15px;
    }
    
    .result-badge {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }
    
    .result-title {
        font-size: 24px;
    }
    
    .result-score {
        font-size: 20px;
    }
    
    .nav-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .test-badge {
        top: -8px;
        right: -8px;
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .test-header {
        padding: 20px 15px 10px;
    }
    
    .test-content {
        padding: 0 15px;
    }
    
    .test-footer {
        padding: 15px;
    }
    
    .test-feature {
        padding: 8px;
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .section-item {
        justify-content: center;
    }
    
    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .question-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .test-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .result-badge {
        padding: 15px;
    }
    
    .result-title {
        font-size: 20px;
    }
    
    .result-description {
        padding: 20px 15px;
        font-size: 15px;
    }
    
    .section-title {
        font-size: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .section-score {
        margin-left: 0;
    }
}

/* Дополнительные улучшения для мобильных устройств */
@media (hover: none) and (pointer: coarse) {
    .answer-option {
        padding: 20px 25px;
        margin-bottom: 5px;
    }
    
    .answer-option:hover {
        transform: none !important;
    }
    
    .answer-option:active {
        background: rgba(124, 252, 0, 0.15) !important;
        border-color: rgba(124, 252, 0, 0.7) !important;
        transform: scale(0.98) !important;
    }
}

/* Улучшения для accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .answer-option {
        transition: none;
    }
}

/* Высокий контраст */
@media (prefers-contrast: high) {
    .answer-option {
        border-width: 3px;
    }
    
    .answer-option.selected {
        border-color: #00ff00 !important;
        background: rgba(0, 255, 0, 0.2) !important;
    }
}




/* Дополнительные стили для WinClass кнопки */
.btn-winclass {
    background: linear-gradient(45deg, #7c4dff, #00bcd4);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-winclass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.btn-winclass:hover::before {
    left: 100%;
}

.btn-winclass:hover {
    background: linear-gradient(45deg, #9c64ff, #00e5ff);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 77, 255, 0.4);
}

/* Обновление количества вопросов в test.php */
.test-info .info-item:nth-child(2) span {
    /* Это для обновления текста "60 вопросов" на "49 вопросов" в HTML */
}