/* Confused Page Specific Styles */

/* Page Specific Styles */
.article-hero {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid #ddd6fe;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    color: #1e293b;
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    color: #334155;
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 20px;
}

.article-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.content-section {
    margin-bottom: 60px;
}

.section-title {
    color: #1e293b;
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #8b5cf6;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: #10b981;
}

.point-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-left: 5px solid #8b5cf6;
    transition: transform 0.3s ease;
}

.point-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.point-number {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    margin-bottom: 20px;
}

.point-card h3 {
    color: #1e293b;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.point-card p {
    color: #334155;
    line-height: 1.7;
    font-size: 1.05rem;
}

.clarify-box {
    background: #f0f9ff;
    border: 2px solid #bae6fd;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
}

.clarify-box::before {
    content: '💡';
    position: absolute;
    top: -15px;
    left: 20px;
    background: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 1.2rem;
    border: 2px solid #bae6fd;
}

.clarify-box h4 {
    color: #075985;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.decision-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.decision-step {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 4px solid #8b5cf6;
    transition: all 0.3s ease;
}

.decision-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.step-title {
    color: #1e293b;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.confusion-quiz {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    border: 3px solid #f59e0b;
}

.quiz-question {
    color: #78350f;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    background: white;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #fde68a;
}

.quiz-option:hover {
    background: #fffbeb;
    border-color: #f59e0b;
}

.back-to-home {
    text-align: center;
    margin: 60px 0 40px;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.6);
    gap: 15px;
}

/* Share buttons */
.share-section {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

.share-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #334155;
}

.share-btn:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
    transform: translateY(-2px);
}

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

.confusion-type {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.confusion-type h4 {
    color: #1e293b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Breadcrumb */
.breadcrumb-nav {
    margin: 10px 0;
    font-size: 0.9rem;
    color: #64748b;
}

.breadcrumb-nav a {
    color: #8b5cf6;
    text-decoration: none;
}

.breadcrumb-nav .active {
    color: #7c3aed;
    font-weight: 600;
}

/* Internal Linking */
.internal-linking-section {
    background: #f8fafc;
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    border: 2px solid #e2e8f0;
}

.internal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.internal-link-btn {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    transition: all 0.3s ease;
}

.internal-link-btn:hover {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .article-hero {
        padding: 60px 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .point-card {
        padding: 20px;
    }
    
    .decision-steps {
        grid-template-columns: 1fr;
    }
    
    .confusion-types {
        grid-template-columns: 1fr;
    }
    
    .internal-links {
        flex-direction: column;
    }
    
    .internal-link-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .breadcrumb-nav {
        font-size: 0.8rem;
    }
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0,0,0,0.1);
    z-index: 9999;
}

.progress-bar {
    height: 100%;
    width: 100%;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B5CF6, #6366F1);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 12px;
    color: #666;
    background: white;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Quiz Results Styling */
.quiz-result-content {
    animation: slideIn 0.3s ease;
}

.quiz-result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.result-icon {
    font-size: 24px;
}

.quiz-result-body {
    line-height: 1.6;
    margin-bottom: 20px;
}

.quiz-result-footer {
    text-align: right;
}

.next-step-btn, .save-plan-btn, .retake-btn {
    background: #8B5CF6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.next-step-btn:hover, .save-plan-btn:hover {
    background: #7C3AED;
    transform: translateY(-2px);
}

.retake-btn {
    background: #6B7280;
    margin-left: 10px;
}

.retake-btn:hover {
    background: #4B5563;
}

.next-steps-content {
    animation: fadeIn 0.5s ease;
}

.next-steps-body ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.next-steps-body li {
    margin-bottom: 10px;
    padding-left: 5px;
}

.next-steps-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Night Mode */
.night-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

.night-mode .article-content,
.night-mode .point-card,
.night-mode .clarify-box {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #444;
}

/* Install Prompt */
.install-prompt-btn {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.install-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

/* Ad Placeholder */
.ad-placeholder {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
}

.ad-label {
    font-size: 10px;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.ad-mock {
    max-width: 300px;
    margin: 0 auto;
    padding: 15px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ad-text {
    margin-bottom: 10px;
    color: #666;
}

.ad-link {
    display: inline-block;
    background: #8B5CF6;
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .progress-text {
        display: none;
    }
    
    .next-steps-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .retake-btn {
        margin-left: 0;
    }
}