/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Language Selector */
.language-selector {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.home-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.home-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.lang-label {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.lang-select {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-select:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-select option {
    background: #333;
    color: white;
}

/* Ad Containers */
.ad-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    margin: 20px 0;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Ad loading state */
.ad-container:empty::before {
    content: "Loading ad...";
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-style: italic;
}

/* Ad placeholder styling */
[id^="ezoic-pub-ad-placeholder"] {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

[id^="ezoic-pub-ad-placeholder"]:empty::before {
    content: "Ad loading...";
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    font-style: italic;
}

/* Ad loaded state */
[id^="ezoic-pub-ad-placeholder"]:not(:empty) {
    background: transparent;
    border: none;
}

[id^="ezoic-pub-ad-placeholder"]:not(:empty)::before {
    display: none;
}

.ad-container .ad-label {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.top-ad {
    margin-top: 0;
    border-top: none;
}

.mid-ad {
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-ad {
    margin-bottom: 0;
}

/* Content Section */
.content-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 0;
    backdrop-filter: blur(10px);
}

.content-wrapper h2 {
    text-align: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.content-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.content-card:hover {
    transform: translateY(-5px);
}

.content-card h3 {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.content-card p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.read-time {
    color: #999;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: auto;
}

.content-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.content-card:active {
    transform: translateY(-5px) scale(0.98);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    border-radius: 15px;
    z-index: 1;
}

.content-card * {
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Article Page Styles */
.article-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.separator {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 10px;
}

.article-meta h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.article-info {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.divider {
    margin: 0 10px;
    opacity: 0.6;
}

.article-content {
    padding: 40px 0;
}

.article-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.article-body {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    line-height: 1.7;
}

.article-body h2 {
    color: #333;
    font-size: 1.8rem;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b6b;
}

.article-body h3 {
    color: #444;
    font-size: 1.4rem;
    margin: 25px 0 15px 0;
}

.article-body h4 {
    color: #555;
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
}

.article-body p {
    color: #666;
    margin-bottom: 16px;
    font-size: 16px;
}

.article-body ul, .article-body ol {
    margin: 16px 0;
    padding-left: 30px;
}

.article-body li {
    color: #666;
    margin-bottom: 8px;
    line-height: 1.6;
}

.article-body strong {
    color: #333;
    font-weight: 600;
}

.related-articles {
    margin-top: 60px;
}

.related-articles h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}


/* Quiz Section */
.quiz-section {
    padding: 40px 0;
}

.quiz-header {
    text-align: center;
    margin-bottom: 40px;
}

.quiz-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.quiz-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 300;
}

.quiz-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 10%;
}

.question-counter {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Quiz Card */
.quiz-card {
    margin-bottom: 30px;
}

.question {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.4;
}

.options {
    display: grid;
    gap: 15px;
}

.option-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 20px;
    border-radius: 15px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-weight: 500;
    color: #333;
}

.option-btn:hover {
    background: #e3f2fd;
    border-color: #2196f3;
    transform: translateX(10px);
}

.option-btn.selected {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border-color: #ff6b6b;
}

.option-btn.selected:hover {
    background: linear-gradient(45deg, #ff5252, #ff6b6b);
}

/* Navigation */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.nav-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.nav-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Result Section */
.result-section {
    text-align: center;
}

.result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin: 20px 0;
}

.result-card h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.result-card p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.restart-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    margin-top: 20px;
}

.restart-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* AdSense Section */
.adsense-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.adsense-section .ad-label {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 14px;
}

.adsense-ad {
    margin-bottom: 30px;
}

.banner-ad .ad-placeholder {
    max-width: 728px;
    margin: 0 auto;
}

.square-ad .ad-placeholder {
    max-width: 300px;
    margin: 0 auto;
}

.demo-ad {
    background: white;
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: #666;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.demo-ad.square {
    min-height: 250px;
}

.demo-ad p {
    font-weight: 600;
    margin-bottom: 5px;
}

.demo-ad small {
    font-size: 12px;
    opacity: 0.7;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.8);
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .lang-wrapper {
        justify-content: center;
    }
    
    .quiz-header h1 {
        font-size: 2rem;
    }
    
    .quiz-subtitle {
        font-size: 1rem;
    }
    
    .quiz-container {
        padding: 20px;
    }
    
    .question {
        font-size: 1.2rem;
    }
    
    .option-btn {
        padding: 15px;
        font-size: 1rem;
    }
    
    
    .nav-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .quiz-header h1 {
        font-size: 1.5rem;
    }
    
    .quiz-container {
        padding: 15px;
    }
    
    .question {
        font-size: 1.1rem;
    }
    
    .option-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .result-card h2 {
        font-size: 2rem;
    }
    
    .result-card p {
        font-size: 1rem;
    }
    
    .content-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .content-card {
        padding: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-card {
    animation: fadeInUp 0.5s ease;
}

.option-btn {
    animation: fadeInUp 0.5s ease;
}

.option-btn:nth-child(1) { animation-delay: 0.1s; }
.option-btn:nth-child(2) { animation-delay: 0.2s; }
.option-btn:nth-child(3) { animation-delay: 0.3s; }
.option-btn:nth-child(4) { animation-delay: 0.4s; }
