/*
Theme Name: Elven Financial
Theme URI: https://elvenfinancial.com
Author: Elven Financial Team
Author URI: https://elvenfinancial.com
Description: A vibrant, modern financial publication theme with energetic design that makes personal finance feel alive and accessible.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elven-financial
Tags: blog, news, two-columns, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   CSS Variables - VIBRANT Color Palette
   ========================================================================== */

:root {
    /* Primary Colors - Warm & Royal */
    --royal-purple: #7851A9;
    --warm-coral: #FF6B6B;
    --sunset-orange: #FF8C42;
    --golden-yellow: #FFB627;
    --warm-pink: #FF69B4;
    --burgundy: #8B1538;
    
    /* Success & Status Colors */
    --success-green: #10B981;
    --alert-red: #EF4444;
    --warning-orange: #F59E0B;
    
    /* Neutrals */
    --deep-navy: #2D1B4E;
    --slate-gray: #64748B;
    --light-gray: #E2E8F0;
    --pure-white: #FFFFFF;
    --soft-bg: #FFF8F3;
    
    /* Gradients - All Warm! */
    --gradient-primary: linear-gradient(135deg, #FF8C42 0%, #7851A9 100%);
    --gradient-royal: linear-gradient(135deg, #7851A9 0%, #FF69B4 100%);
    --gradient-warm: linear-gradient(135deg, #FF6B6B 0%, #FFB627 100%);
    --gradient-sunset: linear-gradient(135deg, #FFB627 0%, #FF8C42 100%);
    --gradient-rich: linear-gradient(135deg, #8B1538 0%, #7851A9 100%);
    
    /* Shadows - Warm tones */
    --shadow-sm: 0 2px 8px rgba(120, 81, 169, 0.15);
    --shadow-md: 0 4px 16px rgba(255, 107, 107, 0.2);
    --shadow-lg: 0 8px 32px rgba(120, 81, 169, 0.25);
    --shadow-glow: 0 0 20px rgba(255, 140, 66, 0.3);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: var(--soft-bg);
    color: var(--deep-navy);
    line-height: 1.7;
    font-size: 16px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--deep-navy);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

a {
    color: var(--royal-purple);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--sunset-orange);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.site-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.site-content {
    padding: 60px 0;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* ==========================================================================
   Header - Modern & Vibrant
   ========================================================================== */

.site-header {
    background: var(--pure-white);
    border-bottom: 3px solid transparent;
    border-image: var(--gradient-primary) 1;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 201, 183, 0.3));
}

.site-title {
    font-family: Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-title a {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 36px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--deep-navy);
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 0;
    display: block;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
    width: 100%;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--royal-purple);
}

/* Sub-menu */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--pure-white);
    box-shadow: var(--shadow-md);
    min-width: 220px;
    padding: 12px 0;
    display: none;
    flex-direction: column;
    gap: 0;
    border-radius: 12px;
    border: 2px solid var(--light-gray);
}

.main-navigation li:hover > ul {
    display: flex;
}

.main-navigation ul ul a {
    padding: 14px 24px;
    font-size: 0.95rem;
}

.main-navigation ul ul a::after {
    display: none;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-toggle,
.menu-toggle {
    background: var(--gradient-primary);
    border: none;
    color: var(--pure-white);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.search-toggle:hover,
.menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.menu-toggle {
    display: none;
}

/* Tagline Bar - Gradient */
.tagline-bar {
    background: var(--gradient-primary);
    color: var(--pure-white);
    text-align: center;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   Article Cards - Vibrant & Modern
   ========================================================================== */

.article-card {
    background: var(--pure-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--royal-purple);
}

.article-card .post-thumbnail {
    margin: 0;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.article-card .post-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.article-card:hover .post-thumbnail::after {
    opacity: 0.2;
}

.article-card .post-thumbnail img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.article-card .entry-header,
.article-card .entry-content,
.article-card .entry-meta,
.article-card .entry-footer {
    padding: 0 28px;
}

.article-card .entry-header {
    padding-top: 28px;
}

.article-card .entry-footer {
    padding-bottom: 28px;
}

.article-card .entry-title {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 12px;
}

.article-card .entry-title a {
    color: var(--deep-navy);
    transition: all 0.3s ease;
}

.article-card:hover .entry-title a {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Category Tags - Vibrant Pills */
.cat-links a,
.tags-links a {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--pure-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.cat-links a:hover,
.tags-links a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--pure-white);
}

/* Entry Meta */
.entry-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--slate-gray);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.entry-meta a {
    color: var(--slate-gray);
    font-weight: 500;
}

.entry-meta a:hover {
    color: var(--royal-purple);
}

.entry-meta .sep {
    color: var(--light-gray);
}

/* ==========================================================================
   Buttons - Vibrant & Interactive
   ========================================================================== */

.btn,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--pure-white);
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn::before,
button::before,
input[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before,
button:hover::before,
input[type="submit"]:hover::before {
    left: 100%;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--pure-white);
}

.btn-secondary {
    background: var(--pure-white);
    color: var(--vibrant-teal);
    border: 2px solid var(--vibrant-teal);
}

.btn-secondary:hover {
    background: var(--vibrant-teal);
    color: var(--pure-white);
}

.btn-accent {
    background: var(--gradient-warm);
}

/* ==========================================================================
   Single Post Styles
   ========================================================================== */

article.type-post .entry-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid transparent;
    border-image: var(--gradient-primary) 1;
}

article.type-post .entry-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 24px;
}

article.type-post .post-thumbnail {
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.entry-content {
    max-width: 720px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--deep-navy);
}

.entry-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--royal-purple);
    position: relative;
    padding-left: 20px;
}

.entry-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.entry-content h3 {
    margin-top: 2rem;
    color: var(--sunset-orange);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
    box-shadow: var(--shadow-sm);
}

.entry-content blockquote {
    border-left: 5px solid var(--royal-purple);
    background: linear-gradient(135deg, rgba(120, 81, 169, 0.05), rgba(255, 140, 66, 0.05));
    padding: 24px 32px;
    margin: 32px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--deep-navy);
    border-radius: 12px;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 2rem;
    padding-left: 2.5rem;
}

.entry-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.entry-content a {
    color: var(--royal-purple);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(120, 81, 169, 0.3);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.entry-content a:hover {
    text-decoration-color: var(--royal-purple);
    color: var(--sunset-orange);
}

/* ==========================================================================
   Sidebar Widgets - Vibrant Cards
   ========================================================================== */

.widget {
    background: var(--pure-white);
    padding: 28px;
    border-radius: 16px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.widget:hover {
    border-color: var(--royal-purple);
    box-shadow: var(--shadow-md);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 16px;
    border-bottom: 3px solid transparent;
    border-image: var(--gradient-primary) 1;
    font-weight: 700;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
    transition: padding-left 0.3s ease;
}

.widget ul li:hover {
    padding-left: 8px;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--deep-navy);
    display: block;
    font-weight: 500;
}

.widget a:hover {
    color: var(--royal-purple);
}

/* ==========================================================================
   Footer - Modern & Vibrant
   ========================================================================== */

.site-footer {
    background: linear-gradient(135deg, var(--deep-navy) 0%, #0F172A 100%);
    color: var(--pure-white);
    padding: 60px 0 32px;
    margin-top: 100px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 48px;
}

.footer-widget {
    margin: 0;
    background: none;
    box-shadow: none;
    padding: 0;
    border: none;
}

.footer-widget .widget-title {
    color: var(--pure-white);
    border-image: linear-gradient(90deg, var(--vibrant-teal), transparent) 1;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget a:hover {
    color: var(--sunset-orange);
}

.footer-widget ul li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.site-info {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.site-info a {
    color: var(--golden-yellow);
}

/* ==========================================================================
   Page Headers - Vibrant
   ========================================================================== */

.page-header {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 60px;
    background: var(--gradient-primary);
    border-radius: 20px;
    color: var(--pure-white);
    box-shadow: var(--shadow-md);
}

.page-header .page-title {
    font-size: 3rem;
    color: var(--pure-white);
    margin-bottom: 16px;
    background: none;
    -webkit-text-fill-color: var(--pure-white);
}

.page-header .archive-description {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* ==========================================================================
   Comments - Modern Style
   ========================================================================== */

.comments-area {
    max-width: 720px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 3px solid transparent;
    border-image: var(--gradient-primary) 1;
}

.comments-title {
    margin-bottom: 32px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comment {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--pure-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--royal-purple);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--royal-purple);
    box-shadow: 0 0 0 3px rgba(120, 81, 169, 0.1);
}

/* ==========================================================================
   Pagination - Vibrant
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 50px 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 12px 20px;
    background: var(--pure-white);
    border-radius: 10px;
    color: var(--royal-purple);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--gradient-primary);
    color: var(--pure-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Search Form - Modern
   ========================================================================== */

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--royal-purple);
    box-shadow: 0 0 0 3px rgba(120, 81, 169, 0.1);
}

.search-form input[type="submit"] {
    padding: 14px 28px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

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

    .sidebar {
        position: static;
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    article.type-post .entry-title {
        font-size: 2rem;
    }

    .article-card .entry-title {
        font-size: 1.5rem;
    }

    .header-main {
        padding: 16px 20px;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--pure-white);
        box-shadow: var(--shadow-md);
        padding: 20px;
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation a::after {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page-header .page-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center {
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
