/* Knowledge Section Styles - Islamic Daily Companion */
/* Designed to integrate seamlessly with existing app design system */

/* Main Knowledge Section Container */
.knowledge-section {
    padding: 165px 20px 110px;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* Knowledge Section Header (standardized) */
.knowledge-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 428px;
    z-index: 90;
}

.dark-mode .knowledge-section-header {
    background: rgba(45, 55, 72, 0.95);
}

.knowledge-section-header .back-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4CAF50;
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.knowledge-section-header .back-btn:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: scale(1.05);
}

.knowledge-section-title-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    pointer-events: none;
}

.knowledge-section-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #2d5016;
    margin: 0;
    pointer-events: auto;
}

.dark-mode .knowledge-section-header h2 {
    color: #4CAF50;
}

/* Daily Knowledge Card */
.daily-knowledge-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    margin: 8px auto 8px auto;
    max-width: 428px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark-mode .daily-knowledge-card {
    background: rgba(45, 55, 72, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.knowledge-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.knowledge-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.knowledge-header h3 {
    font-size: 18px;
    font-weight: bold;
    color: #2d5016;
    margin: 0;
}

.dark-mode .knowledge-header h3 {
    color: #4CAF50;
}

.loading-container {
    text-align: center;
    padding: 20px;
}

.loading-text {
    color: #666;
    margin-top: 12px;
}

.dark-mode .loading-text {
    color: #999;
}

/* Explore Topics Section */
.explore-topics {
    margin-bottom: 24px;
}

.explore-topics h3 {
    font-size: 20px;
    font-weight: bold;
    color: #2d5016;
    text-align: center;
    margin-bottom: 20px;
}

.dark-mode .explore-topics h3 {
    color: #4CAF50;
}

.topics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.topic-btn {
    color: white;
    border: none;
    border-radius: 16px;
    padding: 20px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.topic-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

.topic-btn i {
    font-size: 24px;
}

.topic-btn span {
    font-weight: 600;
}

/* Topic Color Variations */
.topic-islam-101 {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.topic-prayer {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.topic-daily-life {
    background: linear-gradient(135deg, #00BCD4, #0097A7);
}

.topic-prophets {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
}

.topic-ethics {
    background: linear-gradient(135deg, #2196F3, #1565C0);
}

.topic-learn-more {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}
