/**
 * Electris360 Articles Styling
 * Modern, professional styling for Articles
 */

/* ============================================
   ARTICLE HERO HEADER
   ============================================ */
.article-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 80px 30px 60px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/wp-content/uploads/2024/11/Electris-swoosh-icon-v3.png');
    background-repeat: no-repeat;
    background-position: 110% 50%;
    background-size: 500px;
    opacity: 0.1;
    pointer-events: none;
}

.article-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.article-hero .article-label {
    display: inline-block;
    background: #C2612A;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-family: "gill-sans-nova", "Roboto", sans-serif;
}

.article-hero .article-title {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.15;
    font-weight: bold;
    font-family: "gill-sans-nova", "Roboto", sans-serif;
    max-width: 850px;
}

.article-hero .article-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    line-height: 1.5;
    font-style: italic;
    max-width: 750px;
}

/* ============================================
   ARTICLE BODY CONTAINER
   ============================================ */
.electris-article {
    font-family: "gill-sans-nova", "Roboto", sans-serif;
    color: #444;
    line-height: 1.8;
    background: #fff;
}

.article-body-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 60px;
    align-items: start;
}

/* ============================================
   ARTICLE MAIN CONTENT
   ============================================ */
.article-main {
    padding: 50px 0 80px;
}

/* Lead paragraph / intro */
.article-content > p:first-of-type {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #333;
    border-left: 4px solid #C2612A;
    padding-left: 25px;
    margin-bottom: 2rem;
}

.article-content > p:first-of-type::first-letter {
    font-size: 3.5rem;
    float: left;
    line-height: 1;
    font-weight: bold;
    color: #C2612A;
    margin-right: 12px;
    margin-top: 5px;
    font-family: Georgia, serif;
}

/* Regular paragraphs */
.article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #444;
}

/* Section headings */
.article-content h2 {
    font-size: 1.65rem;
    color: #1a1a2e;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    font-weight: bold;
    font-family: "gill-sans-nova", "Roboto", sans-serif;
    padding-bottom: 10px;
    border-bottom: 3px solid #C2612A;
    display: inline-block;
}

.article-content h3 {
    font-size: 1.35rem;
    color: #333;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    font-family: "gill-sans-nova", "Roboto", sans-serif;
}

/* Lists */
.article-content ul,
.article-content ol {
    margin: 1.5rem 0 1.5rem 0;
    padding: 0;
    list-style: none;
}

.article-content ul li,
.article-content ol li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    padding-left: 30px;
    position: relative;
}

.article-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    background: #C2612A;
    border-radius: 50%;
}

.article-content ol {
    counter-reset: item;
}

.article-content ol li::before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: #C2612A;
    color: white;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blockquotes / Pull quotes */
.article-content blockquote {
    margin: 3rem 0;
    padding: 0;
    border: none;
    background: none;
    position: relative;
}

.article-content blockquote::before {
    content: """;
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 6rem;
    color: #C2612A;
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.article-content blockquote p {
    font-size: 1.4rem;
    font-style: italic;
    color: #1a1a2e;
    line-height: 1.6;
    padding: 30px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-left: 5px solid #C2612A;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin: 0;
}

.article-content blockquote cite,
.article-content blockquote p:last-child strong {
    display: block;
    font-size: 1rem;
    font-style: normal;
    color: #C2612A;
    margin-top: 15px;
    font-weight: 600;
}

/* Links */
.article-content a {
    color: #C2612A;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.article-content a:hover {
    border-bottom-color: #C2612A;
}

/* ============================================
   ARTICLE SIDEBAR
   ============================================ */
.article-sidebar {
    padding: 50px 0;
    position: sticky;
    top: 30px;
}

.sidebar-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.sidebar-box h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 600;
    font-family: "gill-sans-nova", "Roboto", sans-serif;
}

.sidebar-box .highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-box .highlight-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
    font-size: 0.95rem;
    color: #444;
    position: relative;
    padding-left: 20px;
}

.sidebar-box .highlight-list li:last-child {
    border-bottom: none;
}

.sidebar-box .highlight-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #C2612A;
    font-weight: bold;
}

/* Share box */
.share-box {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
}

.share-box h4 {
    color: rgba(255,255,255,0.7);
}

.share-box p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: #C2612A;
    transform: translateY(-2px);
}

/* ============================================
   CALL TO ACTION SECTION
   ============================================ */
.article-cta-wrapper {
    background: linear-gradient(135deg, #C2612A 0%, #a85220 100%);
    padding: 60px 30px;
    margin-top: 0;
}

.article-cta {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.article-cta h2 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.75rem;
    font-family: "gill-sans-nova", "Roboto", sans-serif;
    font-weight: bold;
}

.article-cta p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    font-size: 1.15rem;
    line-height: 1.6;
}

.article-cta .cta-button {
    display: inline-block;
    background: white;
    color: #C2612A;
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.article-cta .cta-button:hover {
    background: #f5f5f5;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    text-decoration: none;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.article-about-wrapper {
    background: #f8f9fa;
    padding: 50px 30px;
}

.article-about {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.about-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.about-content h2 {
    margin: 0 0 0.75rem 0;
    font-size: 1.35rem;
    color: #1a1a2e;
    font-family: "gill-sans-nova", "Roboto", sans-serif;
    font-weight: bold;
}

.about-content p {
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.7;
    color: #555;
}

.about-content a {
    color: #C2612A;
    text-decoration: none;
    font-weight: 600;
}

.about-content a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
    .article-body-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .article-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: 60px 20px 40px;
    }
    
    .article-hero .article-title {
        font-size: 2rem;
    }
    
    .article-hero .article-subtitle {
        font-size: 1.15rem;
    }
    
    .article-main {
        padding: 40px 0 60px;
    }
    
    .article-body-wrapper {
        padding: 0 20px;
    }
    
    .article-content h2 {
        font-size: 1.4rem;
    }
    
    .article-content > p:first-of-type {
        font-size: 1.1rem;
        padding-left: 20px;
    }
    
    .article-content > p:first-of-type::first-letter {
        font-size: 2.8rem;
    }
    
    .article-content blockquote p {
        font-size: 1.2rem;
        padding: 20px 25px;
    }
    
    .article-content p {
        font-size: 1rem;
    }
    
    .article-cta-wrapper {
        padding: 40px 20px;
    }
    
    .article-cta h2 {
        font-size: 1.4rem;
    }
    
    .article-about {
        flex-direction: column;
        text-align: center;
    }
    
    .about-icon {
        margin: 0 auto;
    }
}

/* ============================================
   ARTICLES ARCHIVE PAGE
   ============================================ */
.electris-articles-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px 80px;
}

.archive-header {
    text-align: center;
    margin-bottom: 50px;
}

.archive-title {
    font-size: 2.8rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
    font-weight: bold;
    font-family: "gill-sans-nova", "Roboto", sans-serif;
}

.archive-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.article-card-image {
    height: 200px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.article-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card .card-label {
    display: inline-block;
    background: rgba(194, 97, 42, 0.1);
    color: #C2612A;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    width: fit-content;
}

.article-card h2 {
    font-size: 1.35rem;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
    font-weight: bold;
    font-family: "gill-sans-nova", "Roboto", sans-serif;
    line-height: 1.3;
}

.article-card h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card h2 a:hover {
    color: #C2612A;
}

.article-card .excerpt {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.article-card .read-more {
    display: inline-flex;
    align-items: center;
    color: #C2612A;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: gap 0.2s ease;
    gap: 6px;
}

.article-card .read-more:hover {
    gap: 10px;
}

.article-card .read-more::after {
    content: "→";
}

.no-articles {
    text-align: center;
    padding: 60px 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.no-articles p {
    color: #666;
    font-size: 1.15rem;
    margin: 0;
}

@media (max-width: 768px) {
    .electris-articles-archive {
        padding: 40px 20px 60px;
    }
    
    .archive-title {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
}
