/*
Theme Name: Hello Elementor Child
Theme URI: https://medlana.ai
Template: hello-elementor
Author: MedLANA
Description: Child theme for Hello Elementor matching dark purple theme
Version: 1.0.0
*/

/* Match Main Site Dark Purple Theme */
:root {
    --primary-dark: #090014;
    --bg-purple: #120424;
    --text-light: #B0B0B0;
    --text-white: #FFFFFF;
    --accent-purple: #8932F8;
    --accent-dark: #311557;
    --text-light-purple: #E9D8FE;
    --line-purple: #2F006B;
}

/* Single Post Page Background */
.single main#content,
.single .site-main {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--bg-purple) 100%);
    min-height: 100vh;
}

/* Featured Image */
.single-featured-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 0;
}

.single-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(137, 50, 248, 0.2);
}

/* Post Header */
.single-post-header {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 40px 20px 0;
}

.single-post-title {
    font-family: Raleway, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.single-post-meta {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.single-post-meta a {
    color: var(--accent-purple);
}

/* Post Content */
.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 60px;
    font-family: Roboto, sans-serif;
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-light);
}

.single-post-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.single-post-content h1,
.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    font-family: Raleway, sans-serif;
    color: var(--text-white);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.single-post-content h2 {
    font-size: 1.75rem;
    border-bottom: 1px solid var(--line-purple);
    padding-bottom: 0.5rem;
}

.single-post-content h3 {
    font-size: 1.4rem;
    color: var(--text-light-purple);
}

.single-post-content ul,
.single-post-content ol {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.single-post-content li {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.single-post-content strong {
    color: var(--text-white);
    font-weight: 600;
}

.single-post-content a {
    color: var(--accent-purple);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.single-post-content a:hover {
    border-bottom-color: var(--accent-purple);
}

.single-post-content blockquote {
    border-left: 4px solid var(--accent-purple);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light-purple);
    background: rgba(137, 50, 248, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

/* Comments Section */
.single .comments-area {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    color: var(--text-light);
}

.single .comments-area a {
    color: var(--accent-purple);
}

/* Blog Archive Page */
.blog main#content,
.archive main#content {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--bg-purple) 100%);
    min-height: 100vh;
    padding: 40px 0;
}

.blog .entry-title a,
.archive .entry-title a {
    color: var(--text-white);
    text-decoration: none;
}

.blog .entry-title a:hover,
.archive .entry-title a:hover {
    color: var(--accent-purple);
}

.blog .entry-content,
.archive .entry-content,
.blog .entry-summary,
.archive .entry-summary {
    color: var(--text-light);
}

/* RTL Support for Arabic */
[dir="rtl"] .single-post-title,
[dir="rtl"] .single-post-content,
[dir="rtl"] .single-post-content p,
[dir="rtl"] .single-post-content li {
    text-align: right;
}

[dir="rtl"] .single-post-content ul,
[dir="rtl"] .single-post-content ol {
    padding-left: 0;
    padding-right: 2rem;
}

[dir="rtl"] .single-post-content blockquote {
    border-left: none;
    border-right: 4px solid var(--accent-purple);
    border-radius: 8px 0 0 8px;
}

/* Fix: Make animated elements visible immediately on scroll-dependent pages */
.elementor-invisible {
    visibility: visible !important;
    opacity: 1 !important;
}
