/* Quiz Component Styles */
:root {
    --primary-color: #0891a7;
    --primary-light: #0aa7c2;
    --primary-dark: #067a8d;
    --secondary-color: #444;
    --background-color: #f5f5f5;
    --white: #fff;
    --shadow: 0 4px 20px rgba(187,187,187,.25);
    --border-radius: 8px;
    --gradient-bg: linear-gradient(to bottom, rgba(14, 162, 189, 0.05) 0%, rgba(14, 162, 189, 0.1) 100%);
    --border-color: rgba(14, 162, 189, 0.2);
}

/* Main Content Area */
.main {
    padding-top: 160px;
}

/* Quiz Container */
.quiz-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.hero-content {
    background: var(--gradient-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero-content-wrapper {
    display: flex;
    gap: 1.5rem;
    flex: 1;
}

.hero-image {
    flex: 0 0 40%;
    max-height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
}

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    flex: 1;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.info-card {
    background: var(--gradient-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

    .info-card i {
        font-size: 3.5rem;
        color: var(--primary-color);
        margin-bottom: 0.5rem;
        display: block;
    }

    .info-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        color: var(--secondary-color);
        font-weight: 500;
    }

    .info-card p {
        font-size: 1.2rem;
        color: var(--primary-color);
        font-weight: 500;
    }

/* Content Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1rem;
}

/* Main Content */
.main-content {
    background: var(--gradient-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    width: 100%;
    overflow-x: hidden;
}

/* Tabs */
.content-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    font-size: 1.1rem;
    color: var(--secondary-color);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-weight: 500;
}

    .tab-btn.active {
        color: var(--primary-color);
        border-bottom-color: var(--primary-color);
    }

/* Tab Content */
.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

/* Description Content */
.description-content {
    font-size: 1.1rem;
    line-height: 1.8;
    width: 100%;
}

    .description-content img {
        max-width: 100%;
        height: auto;
        margin: 1rem 0;
    }

    .description-content h2 {
        font-size: 1.5rem;
        margin: 1.5rem 0 0.75rem;
        font-weight: 700;
    }

    .description-content h3 {
        font-size: 1.3rem;
        margin: 1rem 0 0.75rem;
        font-weight: 600;
    }

    .description-content p {
        margin-bottom: 1rem;
        text-align: justify;
    }

    .description-content ul,
    .description-content ol {
        margin: 1rem 2rem;
    }

    .description-content hr {
        margin: 2rem 0;
        border: none;
        border-top: 1px solid #eee;
    }

/* Comments */
.comments-container {
    margin-top: 1.5rem;
}

.comment {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

    .comment:last-child {
        border-bottom: none;
    }

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.comment-date {
    color: #666;
    font-size: 0.9rem;
}

.comment-rating i {
    -webkit-text-stroke: 1px #b39700;
    text-stroke: 1px #b39700;
}

.comment-rating {
    color: #ffd700;
    font-size: 1.2rem;
    direction: ltr;
}

.comment-text {
    font-size: 1rem;
    line-height: 1.6;
}

/* Sidebar */
.sidebar {
    align-self: start;
    position: sticky;
    top: 8.5rem; /* header height (160px) + 20px margin */
}

.start-quiz-card {
    background: var(--gradient-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.card-icon {
    margin-bottom: 3.5rem;
}

    .card-icon i {
        font-size: 12rem;
        color: var(--primary-color);
    }

.start-quiz-btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    width: 100%;
    font-weight: 500;
    color: var(--white);
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color), var(--primary-light), var(--primary-color), var(--primary-dark) );
    background-size: 300% 300%;
    animation: gradient-shift 5s ease infinite;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .start-quiz-btn:hover {
        opacity: 1;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(8, 145, 167, 0.3);
    }

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-wrapper {
        margin-right: 0;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        padding: 1rem;
    }

    .description-content {
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        width: 100%;
    }

    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero {
        flex-direction: column;
    }

    .StartQuiz {
        width: 100% !important;
    }

    .hero-content-wrapper {
        flex-direction: column;
    }

    .hero-image {
        flex: 0 0 100%;
        max-height: 300px;
    }

    .start-quiz-card {
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .card-icon i {
        font-size: 3rem;
        margin: 0;
    }

    .start-quiz-btn {
        margin: 0;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }

    .main-content {
        padding: 0.75rem;
    }

    .description-content {
        font-size: 0.95rem;
    }

        .description-content h2 {
            font-size: 1.3rem;
        }

        .description-content h3 {
            font-size: 1.1rem;
        }

    .comment {
        padding: 0.75rem 0;
    }

    .comment-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .comment-info h4 {
        font-size: 1rem;
    }

    .comment-text {
        font-size: 0.9rem;
    }

    .start-quiz-card {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .main-content {
        padding: 0.5rem;
        margin: 0 -0.5rem;
        border-radius: 0;
    }

    .description-content {
        padding: 0 0.5rem;
    }

    .comments-container {
        padding: 0 0.5rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .start-quiz-card {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .card-icon i {
        font-size: 2.5rem;
    }

    .start-quiz-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

.StartQuiz {
    width: 300px;
    display: flex;
}

    .StartQuiz .start-quiz-card {
        background: var(--gradient-bg);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        padding: 1.5rem;
        text-align: center;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border: 1px solid var(--border-color);
    }

    .StartQuiz .card-icon {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .StartQuiz .card-icon i {
            font-size: 12rem;
            color: var(--primary-color);
        }

/* Pagination Styles */
.simple-pagination {
    padding: 20px 0;
    font-family: 'Vazir', sans-serif;
}

    .simple-pagination ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        gap: 8px;
        justify-content: center;
        align-items: center;
    }

    .simple-pagination li {
        display: inline-block;
    }

    .simple-pagination .page-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        height: 36px;
        padding: 0 12px;
        margin: 0;
        text-decoration: none;
        background-color: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        color: #333;
        font-size: 14px;
        transition: all 0.3s ease;
    }

        .simple-pagination .page-link:hover {
            background-color: #f5f5f5;
            border-color: #ddd;
            color: #000;
        }

    .simple-pagination li span.page-link {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: #fff;
        cursor: default;
    }

    .simple-pagination .prev,
    .simple-pagination .next {
        font-weight: 500;
        min-width: 36px !important;
        padding: 0 !important;
    }

        .simple-pagination .prev i,
        .simple-pagination .next i {
            font-size: 1.2rem;
        }

    .simple-pagination .disabled {
        pointer-events: none;
        background-color: #f5f5f5;
        border-color: #e0e0e0;
        color: #999;
    }

/* Light Theme Specific Styles */
.light-theme.simple-pagination .page-link {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

    .light-theme.simple-pagination .page-link:hover {
        background-color: #f8f9fa;
        border-color: var(--primary-color);
    }

.light-theme.simple-pagination li span.page-link {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    box-shadow: 0 2px 4px rgba(8, 145, 167, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .simple-pagination .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
    }

    .simple-pagination ul {
        gap: 4px;
    }
}
