/* Test Page Specific Styles */

/* Рекламные секции */
.ya_ads1,
.ya_ads2 {
    margin: 3rem 0;
    display: none;
}

  .question-title {
   color: #00da48;
   font-weight: 600;
  }

.section {
    --bulma-section-padding: 3rem 1.5rem;

}

.hero-section {
    background: var(--surface);
    padding: 2rem 1rem;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 2rem;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-main {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    display: block;
    font-size: 1.5rem;
    color: var(--text);
    margin-top: 0.5rem;
    font-weight: 500;
}

.alert {
    background: var(--primary-focus);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 800px;
}

.alert-info {
    background: rgba(13, 110, 253, 0.1);
    border-color: var(--primary);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
}

.alert-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-title {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* Progress Section */
.progress-card {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.progress-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar-container {
    flex: 1;
    background: var(--border);
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--primary), #2c5282);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
    min-width: 60px;
}

/* Question Card */
.question-card {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
    margin-bottom: 1rem;
    padding: 2rem;
}

.loading-state {
    text-align: center;
    padding: 3rem 0;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: var(--secondary);
    font-size: 1.1rem;
}

/* Question Styles */
.question-article {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-header {
    margin-bottom: 2rem;
}

.question-number {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.question-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text);
}

/* Answers Styles */
.answers-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.answer-option {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    background: var(--background);
    transition: all 0.3s ease;
    cursor: pointer;
}

.answer-option:hover {
    border-color: var(--primary);
    background: var(--primary-focus);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.answer-option.selected {
    border-color: var(--primary);

}

.answer-option.correct {
    border-color: var(--success);
    background: rgba(25, 135, 84, 0.1);
}

.answer-option.incorrect {
    border-color: var(--danger);
    background: rgba(220, 53, 69, 0.1);
}

.answer-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.answer-letter {
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.answer-option.correct .answer-letter {
    background: var(--success);
}

.answer-option.incorrect .answer-letter {
    background: var(--danger);
}

.answer-text {
    flex: 1;
    line-height: 1.5;
}

/* Comment Card */
.comment-card {
    background: rgba(13, 110, 253, 0.05);
    border: 1px solid var(--primary);
    border-radius: 12px;
    margin-top: 1rem;
    padding: 1.5rem;
}

.comment-card.hidden {
    display: none;
}

.comment-title {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-text {
    line-height: 1.6;
    color: var(--text);
}

/* Navigation */
.navigation-card {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
    padding: 1.5rem;
}

.navigation-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn {
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
}

.hidden {
    display: none !important;
}

/* Stats Section */
.stats-container {
    margin: 2rem 0;
}

.stats-card {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
    overflow: hidden;
}

.stats-header {
    background: var(--success);
    color: white;
    padding: 2rem;
    text-align: center;
}

.stats-title {
    margin: 0;
    font-size: 1.75rem;
}

.stats-content {
    padding: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid;
}

.stat-item.correct {
    border-color: var(--success);
    background: rgba(25, 135, 84, 0.1);
}

.stat-item.incorrect {
    border-color: var(--danger);
    background: rgba(220, 53, 69, 0.1);
}

.stat-item.percentage {
    border-color: var(--primary);
    background: rgba(26, 62, 114, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item.correct .stat-number {
    color: var(--success);
}

.stat-item.incorrect .stat-number {
    color: var(--danger);
}

.stat-item.percentage .stat-number {
    color: var(--primary);
}

.stat-label {
    color: var(--secondary);
    font-weight: 500;
}

.stats-message {
    background: var(--primary-focus);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.stats-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Info Section */
.info-section {
    background: var(--surface);
    padding: 3rem 1rem;
    margin-top: 3rem;
    border-top: 2px solid var(--primary);
}

.info-content {
    max-width: 1200px;
    margin: 0 auto;
}

.info-header {
    text-align: center;
    margin-bottom: 3rem;
}

.info-title {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.info-subtitle {
    color: var(--secondary);
    font-size: 1.2rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tip-card {
    background: var(--background);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow);
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tip-title {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.tip-text {
    color: var(--text);
    line-height: 1.6;
}

/* Ad Sections */
.ad-section {
    margin: 2rem 0;
}

.ad-container {
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder {
    color: var(--secondary);
    font-style: italic;
    font-size: 1.1rem;
}

/* No Script Warning */
.noscript-warning {
    margin: 2rem 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Рекламные секции */
    .ya_ads1,
    .ya_ads2 {
        margin: 0.5rem 0;
        display: block;
    }

    .section {

        padding: 0 !important;
    }

    .hero-main {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .question-card {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .navigation-controls {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .progress-wrapper {
        gap: 0.5rem;
    }

    .progress-text {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .alert-icon {
        display: none;
    }

    .alert-title {
        font-size: 1rem;
    }

    .alert p {
        font-size: 0.8rem;
        margin: 0;
        line-height: 1.5;
        color: var(--text);
    }

    .alert {
        margin: 1rem 0.5rem;
        padding: 1rem;
    }

    .alert-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }


    .question-card {
        padding: 0.5rem;
    }

    .question-title {
        text-align: center;
    }

    .question-text {
        text-align: center;
        font-size: 1rem;
    }

    .answer-option {
        border: 2px solid var(--border);
        border-radius: 12px;
        padding: 0.5rem 1rem;
        background: var(--background);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .answer-text {
        font-size: 0.8rem;
    }

    .comment-title {

        margin-bottom: 0.5rem;
    }

    .comment-text p {
        font-size: 0.8rem
    }

    .navigation-card {
        padding: 0.5rem;
    }

    .btn {
        width: 50%;
        max-width: 50px;
        height: 100%;
        max-height: 30px;
    }

    .btn-large {
        font-size: 0.8rem;
        
  padding: 0.5rem 0rem;

    }


    .info-header {
        text-align: center;
        margin-bottom: 1rem;
    }

    .info-title {
        color: var(--primary);
        font-size: 1rem;
        margin-bottom: 1rem;
        font-weight: 700;
    }

    .tips-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .tip-card {
        padding: 0.5rem;
    }

    .tip-icon {
        display: none;
    }

    .tip-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .tip-text {
        color: var(--text);
        font-size: 0.7rem;
        line-height: 1.6;
        margin: 0;
    }

    .stats-title {
        margin: 0;
        font-size: 1rem;
    }

    .stats-header {
        background: var(--success);
        color: white;
        padding: 0.5rem;
        text-align: center;
    }

    .stats-content {
        padding: 0.5rem;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.2rem;
    }

    .stat-item {
        text-align: center;
        padding: 0rem;
        border-radius: 8px;
        border: 2px solid;
        border-top-color: currentcolor;
        border-right-color: currentcolor;
        border-bottom-color: currentcolor;
        border-left-color: currentcolor;
    }

    .stat-label {
        font-size: 0.7rem;
    }
}

/* Utility Classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.answer-correct {
    background-color: #5fbe00;
}

.answer-incorrect {
    background-color: rgb(177, 2, 2);
}