/* Activities Page Styles */

/* General Styles */
:root {
    --primary-color: #FF7722;
    --secondary-color: #FFA162;
    --accent-color: #FFD700;
    --text-color: #333333;
    --light-text: #777777;
    --background-color: #FFFFFF;
    --light-background: #F8F8F8;
    --border-color: #EEEEEE;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --info-color: #17a2b8;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Page Banner */
.page-banner {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #FF7722, #FFA162);
    color: #fff;
    overflow: hidden;
}

.page-banner .banner-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.page-banner h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-banner p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.page-banner .banner-image {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-banner .banner-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.section-header p {
    color: var(--light-text);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Daily Quote Section */
.daily-quote-section {
    background-color: var(--light-background);
}

.quote-container {
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.quote-content {
    position: relative;
    padding: 20px 0;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 0;
    left: 0;
}

blockquote {
    font-size: 1.5rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--text-color);
    margin: 0 0 20px 0;
    padding: 0 0 0 40px;
}

.quote-source {
    text-align: right;
    font-size: 1.1rem;
    color: var(--light-text);
}

.quote-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-background);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.share-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Quiz Section */
.quiz-section {
    background-color: var(--background-color);
}

.quiz-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: var(--light-background);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon img {
    max-width: 100%;
    max-height: 100%;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.category-card p {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Quiz Modal */
.quiz-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow: auto;
}

.quiz-modal-content {
    background-color: var(--background-color);
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-modal-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 30px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close-quiz {
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.quiz-modal-body {
    padding: 30px;
}

.quiz-start-screen,
.quiz-question-screen,
.quiz-result-screen {
    text-align: center;
}

.quiz-question-screen,
.quiz-result-screen {
    display: none;
}

.quiz-progress {
    margin-bottom: 30px;
}

.progress-bar {
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 10%;
    transition: width 0.3s ease;
}

.question-counter {
    text-align: right;
    font-size: 0.9rem;
    color: var(--light-text);
}

.question h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.options {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.option {
    position: relative;
    background-color: var(--light-background);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.option:hover {
    background-color: var(--border-color);
}

.option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.option label {
    display: block;
    cursor: pointer;
    padding-left: 30px;
    position: relative;
}

.option label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

.option input[type="radio"]:checked + label::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.quiz-actions {
    margin-top: 20px;
}

.result-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.score-display {
    margin: 20px 0;
}

.score {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.result-message {
    margin-bottom: 30px;
    color: var(--text-color);
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Forum Section */
.forum-section {
    background-color: var(--light-background);
}

.forum-container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 30px;
}

.forum-sidebar {
    background-color: var(--background-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.forum-user {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.forum-categories,
.forum-stats {
    margin-bottom: 20px;
}

.forum-categories h3,
.forum-stats h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.forum-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.forum-categories li {
    margin-bottom: 10px;
}

.forum-categories li a {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 5px;
    color: var(--text-color);
    transition: var(--transition);
}

.forum-categories li.active a,
.forum-categories li a:hover {
    background-color: var(--primary-color);
    color: white;
}

.stat-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 119, 34, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-weight: 700;
    color: var(--text-color);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--light-text);
}

.forum-content {
    background-color: var(--background-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.forum-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-forum {
    flex: 1;
    display: flex;
    max-width: 400px;
}

.search-forum input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    outline: none;
}

.search-forum button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.forum-filters select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    outline: none;
    background-color: var(--background-color);
}

.topic-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.topic-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.topic-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
    flex-wrap: wrap;
    gap: 10px;
}

.topic-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.topic-header h3 a {
    color: var(--text-color);
    transition: var(--transition);
}

.topic-header h3 a:hover {
    color: var(--primary-color);
}

.topic-tags {
    display: flex;
    gap: 5px;
}

.tag {
    font-size: 0.7rem;
    padding: 3px 8px;
    background-color: rgba(255, 119, 34, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
}

.topic-meta {
    font-size: 0.8rem;
    color: var(--light-text);
}

.topic-meta a {
    color: var(--primary-color);
}

.topic-stats {
    display: flex;
    gap: 15px;
}

.topic-stats .stat {
    text-align: center;
}

.topic-stats .stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

.topic-stats .stat-label {
    font-size: 0.7rem;
    color: var(--light-text);
}

.topic-last-reply {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reply-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
}

.reply-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reply-info {
    font-size: 0.8rem;
}

.reply-author {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
}

.reply-date {
    color: var(--light-text);
    font-size: 0.7rem;
}

.forum-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 5px;
}

.forum-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    background-color: var(--light-background);
    color: var(--text-color);
    transition: var(--transition);
}

.forum-pagination a.active,
.forum-pagination a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Games Section */
.games-section {
    background-color: var(--background-color);
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background-color: var(--light-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.game-image {
    height: 200px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.game-content {
    padding: 20px;
}

.game-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.game-content p {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--light-background);
}

.newsletter-container {
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.newsletter-content p {
    color: var(--light-text);
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.5;
}

.newsletter-form .form-group {
    display: flex;
    margin-bottom: 15px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    outline: none;
}

.newsletter-form button {
    border-radius: 0 5px 5px 0;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check label {
    font-size: 0.9rem;
    color: var(--light-text);
}

.newsletter-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.newsletter-image img {
    max-width: 100%;
    max-height: 300px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #e66a1e;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-banner .banner-image {
        display: none;
    }
    
    .page-banner .banner-content {
        max-width: 100%;
    }
    
    .forum-container {
        grid-template-columns: 1fr;
    }
    
    .newsletter-container {
        grid-template-columns: 1fr;
    }
    
    .newsletter-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 60px 0;
    }
    
    .page-banner h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .quote-container {
        padding: 20px;
    }
    
    blockquote {
        font-size: 1.2rem;
    }
    
    .topic-item {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "avatar content"
            "stats stats"
            "reply reply";
    }
    
    .topic-avatar {
        grid-area: avatar;
    }
    
    .topic-content {
        grid-area: content;
    }
    
    .topic-stats {
        grid-area: stats;
        justify-content: flex-start;
        margin-top: 10px;
    }
    
    .topic-last-reply {
        grid-area: reply;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .page-banner p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .quote-actions {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .forum-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-forum {
        max-width: 100%;
        width: 100%;
    }
    
    .topic-header {
        flex-direction: column;
    }
}