/* ========================================
   CONTENT PAGES STYLES (flags-of-, hardest-, similar-, easy-)
   ======================================== */

/* Page Hero Section */
.content-page .page-hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 20px;
    margin-bottom: 40px;
}

.content-page .page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.content-page .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    font-weight: 500;
}

/* Content Wrapper */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

/* SEO Content Section */
.seo-content {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 6px var(--shadow);
}

.seo-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.seo-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--accent-primary);
}

.seo-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.seo-content p {
    line-height: 1.8;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.seo-content ul, .seo-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.seo-content li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.seo-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.content-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.content-link:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* Region Sections */
.region-section {
    background: var(--bg-tertiary);
    padding: 24px;
    border-radius: 16px;
    margin: 24px 0;
    border-left: 4px solid var(--accent-primary);
}

.region-section h4 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.3rem;
}

/* Country Lists */
.country-list {
    columns: 2;
    column-gap: 20px;
    list-style: none;
    padding: 0;
}

.country-list li {
    margin-bottom: 10px;
    padding-left: 0;
    break-inside: avoid;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .country-list {
        columns: 1;
    }
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.cta-box h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.8rem;
}

.cta-box p {
    color: rgba(255,255,255,0.95);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: white;
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* FAQ Section */
.faq {
    margin: 32px 0;
}

.faq-item {
    background: var(--bg-tertiary);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 16px;
    border-left: 4px solid var(--accent-primary);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 8px var(--shadow);
}

.faq-item h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--accent-primary);
    font-size: 1.15rem;
}

.faq-item p {
    margin-bottom: 0;
}

/* Related Pages Sidebar */
.related-pages {
    position: sticky;
    top: 20px;
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    height: fit-content;
}

.related-pages h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.continent-grid {
    display: grid;
    gap: 16px;
}

.continent-card {
    display: block;
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 16px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.continent-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px var(--shadow-lg);
}

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

.continent-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}

.continent-card p {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin: 0;
}

/* ========================================
   HARDEST FLAGS PAGE SPECIFIC
   ======================================== */

.flag-ranking {
    margin: 32px 0;
}

.rank-item {
    display: flex;
    gap: 24px;
    background: var(--bg-tertiary);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-primary);
    transition: all 0.3s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 12px var(--shadow);
}

.rank-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.rank-content h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.4rem;
}

.rank-content p {
    margin-bottom: 12px;
}

.rank-content p strong {
    color: var(--accent-primary);
}

.rank-content p em {
    color: var(--text-tertiary);
    font-style: italic;
}

.hardest-list {
    list-style: none;
    padding: 0;
}

.hardest-list li {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 3px solid var(--accent-secondary);
}

/* ========================================
   SIMILAR FLAGS PAGE SPECIFIC
   ======================================== */

.similar-flags-section {
    margin: 32px 0;
}

.flag-pair {
    background: var(--bg-tertiary);
    padding: 32px;
    border-radius: 20px;
    margin-bottom: 32px;
    border: 2px solid var(--border-color);
}

.flag-pair h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.6rem;
    color: var(--accent-primary);
}

.flag-pair > p {
    color: var(--text-tertiary);
    font-style: italic;
    margin-bottom: 20px;
}

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
}

@media (max-width: 768px) {
    .comparison {
        grid-template-columns: 1fr;
    }
}

.flag-detail {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
}

.flag-detail h4 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.flag-detail ul {
    list-style: none;
    padding: 0;
}

.flag-detail li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.flag-detail li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--accent-primary);
    font-weight: bold;
}

.pro-tip {
    background: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.1), rgba(var(--accent-secondary-rgb), 0.1));
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-primary);
    margin-top: 20px;
    font-size: 1.05rem;
}

.flag-groups {
    margin: 32px 0;
}

.flag-groups h3 {
    font-size: 1.4rem;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--accent-primary);
}

.flag-groups p {
    margin-bottom: 12px;
}

.flag-groups ul {
    list-style: none;
    padding-left: 0;
}

.flag-groups li {
    background: var(--bg-tertiary);
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 10px;
    border-left: 3px solid var(--accent-secondary);
}

/* ========================================
   EASY FLAGS PAGE SPECIFIC
   ======================================== */

.easy-flags-ranking {
    margin: 32px 0;
}

.easy-flag-item {
    background: var(--bg-tertiary);
    padding: 28px;
    border-radius: 16px;
    margin-bottom: 24px;
    border-left: 4px solid #4ade80;
    transition: all 0.3s ease;
}

.easy-flag-item:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 12px var(--shadow);
    border-left-width: 6px;
}

.easy-flag-item h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.easy-flag-item p {
    margin-bottom: 12px;
}

.fun-fact {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1), rgba(34, 197, 94, 0.1));
    padding: 12px 16px;
    border-radius: 10px;
    border-left: 3px solid #4ade80;
    margin-top: 16px;
    font-size: 0.95rem;
    font-style: italic;
}

.simple-list {
    list-style: none;
    padding: 0;
}

.simple-list li {
    background: var(--bg-secondary);
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    border-left: 3px solid #4ade80;
}

.learning-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.tip-box {
    background: var(--bg-tertiary);
    padding: 24px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.tip-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px var(--shadow-lg);
    border-color: #4ade80;
}

.tip-box h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.tip-box p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.learning-path {
    margin: 32px 0;
}

.path-step {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-tertiary);
    border-radius: 16px;
    margin-bottom: 16px;
    border-left: 4px solid #4ade80;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
}

.step-content h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.step-content p {
    margin-bottom: 8px;
}

.step-content em {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    .content-page .page-hero h1 {
        font-size: 2rem;
    }
    
    .content-page .hero-subtitle {
        font-size: 1rem;
    }
    
    .seo-content {
        padding: 24px;
    }
    
    .seo-content h2 {
        font-size: 1.6rem;
    }
    
    .seo-content h3 {
        font-size: 1.3rem;
    }
    
    .rank-item {
        flex-direction: column;
        gap: 16px;
    }
    
    .flag-pair {
        padding: 20px;
    }
}