/* ============================================
   VIOLETALUNGU.RO - CUSTOM THEME STYLES
   ============================================ */

/* 1. COLOR SYSTEM */
:root {
    --warm-ivory: #FFFEF9;
    --deep-purple: #7C3AED;
    --deep-charcoal: #1a1a1a;
    --soft-gray: #6b7280;
    --color-academic: #7C3AED;
    --color-therapy: #0D9488;
    --color-general: #D97706;
    --color-resources: #2563EB;
}

/* 2. FORCE LIGHT MODE */
html, body {
    color-scheme: light !important;
    background-color: var(--warm-ivory) !important;
    color: var(--deep-charcoal) !important;
}

/* 3. HEADER */
.gh-head {
    background-color: var(--warm-ivory) !important;
}

/* 4. HOMEPAGE HERO */
.home-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    max-width: 1200px !important;
    margin: 4rem auto 3rem auto !important;
    padding: 0 2rem !important;
}

.home-hero h1 {
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    color: var(--deep-charcoal) !important;
    text-align: center !important;
}

.home-hero p {
    font-size: 1.4rem !important;
    color: var(--soft-gray) !important;
    margin-bottom: 0 !important;
    text-align: center !important;
}

/* 5. PORTAL CONTAINER */
.portal-container {
    max-width: 1200px !important;
    margin: 3rem auto !important;
    padding: 0 2rem !important;
}

/* 6. PORTAL CARDS - HORIZONTAL */
.portal-grid {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 30px !important;
    width: 100% !important;
    padding: 0 !important;
}

.portal-card {
    flex: 0 1 340px !important;
    max-width: 340px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 40px 30px !important;
    border: 2px solid rgba(124, 58, 237, 0.15) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.portal-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.25) !important;
    border-color: var(--deep-purple) !important;
}

.portal-icon {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.portal-icon svg {
    width: 80px !important;
    height: 80px !important;
    fill: var(--deep-purple) !important;
}

.portal-card h3 {
    color: var(--deep-charcoal) !important;
    font-size: 1.6rem !important;
    font-weight: 600 !important;
    margin: 0 0 10px 0 !important;
    text-align: center !important;
}

.portal-card p {
    color: var(--soft-gray) !important;
    font-size: 1rem !important;
    margin: 0 !important;
    text-align: center !important;
}

/* 7. SECTION DIVIDER */
.section-divider {
    max-width: 200px !important;
    margin: 6rem auto !important;
    border: 0 !important;
    border-top: 2px solid rgba(124, 58, 237, 0.2) !important;
}

/* 8. RECENT ARTICLES */
.home-recent {
    max-width: 1200px !important;
    margin: 0 auto 6rem auto !important;
    padding: 0 2rem !important;
}

.recent-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: var(--deep-charcoal) !important;
    margin: 0 0 3rem 0 !important;
    text-align: center !important;
}

/* 9. ARTICLE CARDS GRID */
.recent-post-grid,
.post-feed.gh-feed {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.filterable-post {
    width: calc(33.333% - 16px) !important;
    min-width: 300px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border-top: 1px solid #e5e7eb !important;
    border-right: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
    border-left: 5px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    display: block /*!important*/;
    position: relative !important;
}

.filterable-post:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
}

/* Default border - JavaScript assigns actual color */
.filterable-post {
    border-left: 5px solid #e5e7eb;
}

/* 10. CARD LAYOUT */
.feed {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 20px !important;
    gap: 20px !important;
    min-height: 120px !important;
    position: relative !important;
}

.feed-calendar {
    display: none !important;
}

.feed .icons-chevron-right,
.feed svg[class*="chevron"] {
    display: none !important;
}

.feed-right {
    display: none !important;
}

/* 11. THUMBNAIL */
.feed-thumb {
    flex-shrink: 0 !important;
    width: 100px !important;
    height: 100px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background-color: var(--deep-purple) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.feed-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.feed-initial {
    font-size: 3rem !important;
    font-weight: 700 !important;
    color: white !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

/* 12. CARD CONTENT */
.feed-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.feed-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: var(--deep-charcoal) !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

.feed-meta {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.9rem !important;
    color: var(--soft-gray) !important;
}

.feed-date,
.feed-length {
    display: inline-flex !important;
    align-items: center !important;
}

.u-permalink {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1 !important;
}

/* 13. FILTER INTERFACE */
#filter-interface {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    gap: 15px !important;
    margin: 2rem 0 3rem 0 !important;
    flex-wrap: wrap !important;
}

.filter-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    align-items: flex-start !important;
    min-height: 70px !important;
}

.filter-count {
    height: 20px !important;
    line-height: 20px !important;
    font-size: 0.85rem !important;
    color: var(--soft-gray) !important;
    padding-left: 4px !important;
}

#filter-interface select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: #fff !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 12px 40px 12px 16px !important;
    min-width: 200px !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
}

#filter-interface select:hover {
    border-color: var(--deep-purple) !important;
    transform: none !important;
}

#filter-interface select:focus {
    outline: none !important;
    border-color: var(--deep-purple) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1) !important;
}

#filter-interface select:disabled {
    background-color: #f9fafb !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

/* 14. RESET BUTTON */
#reset-filters {
    background-color: var(--deep-purple) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    align-self: flex-end !important;
}

#reset-filters:hover {
    background-color: #6d28d9 !important;
    transform: translateY(-2px) !important;
}

/* 15. PAGE TITLES */
.gh-canvas h1.gh-title,
.site-main > header h1 {
    text-align: center !important;
    margin-bottom: 2rem !important;
    color: var(--deep-charcoal) !important;
}

/* 16. NO RESULTS */
#no-results {
    text-align: center !important;
    padding: 60px 20px !important;
    color: var(--soft-gray) !important;
}

#no-results h3 {
    font-size: 1.5rem !important;
    margin-bottom: 10px !important;
    color: var(--deep-charcoal) !important;
}

/* 17. KILL SUBSCRIPTIONS */
.gh-portal-trigger,
[data-portal],
.subscribe-button,
a[href*="#/portal"],
a[href*="portal/signup"],
a[href*="portal/signin"],
button[data-portal="signup"],
button[data-portal="signin"],
.subscribe-form,
.gh-subscribe,
.gh-subscription-form,
[class*="subscribe"] {
    display: none !important;
}

/* 18. BURGER FIX CLASS */
.force-dark-burger,
.force-dark-burger *,
.force-dark-burger span,
.force-dark-burger .gh-burger-inner {
    background-color: #1a1a1a !important;
}

.force-dark-burger::before,
.force-dark-burger::after,
.force-dark-burger span::before,
.force-dark-burger span::after {
    background-color: #1a1a1a !important;
}

/* Force light theme on related posts section */
.related-wrapper,
.related-feed,
.related-title {
    background-color: var(--warm-ivory) !important;
    color: var(--deep-charcoal) !important;
}

.related-feed .feed-title {
    color: var(--deep-charcoal) !important;
}

.related-feed .feed-date,
.related-feed .feed-length {
    color: #6b7280 !important;
}

/* 19. MOBILE RESPONSIVE */
@media (max-width: 800px) {
    html, body {
        background-color: var(--warm-ivory) !important;
        color: var(--deep-charcoal) !important;
    }
    
    .home-hero h1 {
        font-size: 2.5rem !important;
    }
    
    .portal-grid {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .portal-card {
        width: 100% !important;
        max-width: 340px !important;
    }
    
    .recent-post-grid,
    .post-feed.gh-feed {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 1rem !important;
    }
    
    .filterable-post {
        width: 100% !important;
        max-width: 90% !important;
        margin: 0 auto 20px auto !important;
    }
    
    .gh-canvas h1.gh-title,
    .site-main > header h1 {
        color: var(--deep-charcoal) !important;
        background-color: transparent !important;
    }
    
    #filter-interface {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .filter-group {
        width: 100% !important;
    }
    
    #filter-interface select {
        width: 100% !important;
        min-height: 44px !important;
    }
    
    #reset-filters {
        width: 100% !important;
        align-self: stretch !important;
    }
    
    .feed-thumb {
        width: 80px !important;
        height: 80px !important;
    }
    
    .feed-initial {
        font-size: 2.5rem !important;
    }
    
    .feed-title {
        font-size: 1.3rem !important;
    }
    
    .gh-head-open .gh-head-menu {
        background-color: var(--warm-ivory) !important;
    }
    
    .gh-head-open .gh-head-menu .nav a {
        color: var(--deep-charcoal) !important;
    }
    
    .gh-burger {
        background-color: transparent !important;
    }
    
    .gh-burger .gh-burger-box {
        width: 24px !important;
        height: 24px !important;
    }
    
    .gh-burger .gh-burger-inner,
    .gh-burger .gh-burger-inner::before,
    .gh-burger .gh-burger-inner::after {
        background-color: var(--deep-charcoal) !important;
        display: block !important;
        width: 24px !important;
        height: 2px !important;
    }
    
    .gh-head {
        background-color: var(--warm-ivory) !important;
    }
    
    .gh-head.gh-head-open {
        background-color: var(--warm-ivory) !important;
    }
    
    .gh-head-menu {
        background-color: var(--warm-ivory) !important;
    }
    
    .gh-head.gh-head-open .gh-head-menu {
        background-color: var(--warm-ivory) !important;
        opacity: 1 !important;
    }
    
    .gh-head-menu .nav {
        background-color: var(--warm-ivory) !important;
    }
    
    .gh-head-menu .nav a {
        color: var(--deep-charcoal) !important;
        background-color: var(--warm-ivory) !important;
        font-size: 1.8rem !important;
    }
    
    .gh-head-actions {
        background-color: var(--warm-ivory) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    .gh-head-actions a,
    .gh-head-actions button {
        color: var(--deep-charcoal) !important;
        background-color: transparent !important;
    }
    
    .gh-head-brand {
        background-color: var(--warm-ivory) !important;
    }
    
    .gh-head-open::before,
    .gh-head-open::after {
        display: none !important;
    }
    
    button.gh-burger span,
    button.gh-burger span::before,
    button.gh-burger span::after,
    .gh-burger-inner,
    .gh-burger-inner::before,
    .gh-burger-inner::after {
        background: #1a1a1a !important;
    }
    
    nav.gh-head-menu,
    .gh-head-open nav.gh-head-menu {
        background: #FFFEF9 !important;
    }
    
    nav.gh-head-menu a {
        color: #1a1a1a !important;
    }
    
    div.gh-head-actions {
        background: #FFFEF9 !important;
    }
    
    div.gh-head-actions a {
        color: #1a1a1a !important;
    }
/* 20. PRINT BUTTON */
.print-button-container {
    position: relative;
    width: 100%;
    height: 60px;
}

.print-button {
    position: absolute;
    right: 2rem;
    top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--deep-purple);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.print-button:hover {
    background-color: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.print-button svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 800px) {
    .print-button {
        position: relative;
        right: auto;
        top: auto;
        margin: 1rem auto;
        display: flex;
    }
    .print-button-container {
        display: flex;
        justify-content: center;
        height: auto;
    }
}

/* Mobile - move to top center */
@media (max-width: 800px) {
    .print-button-container {
        position: relative;
        top: 0;
        right: 0;
        display: flex;
        justify-content: center;
        margin-bottom: 2rem;
    }
}

/* Hide print button when printing */
@media print {
    .print-button-container {
        display: none !important;
    }
    
    .gh-head,
    .gh-foot,
    .gh-head-actions,
    .related-posts,
    .comments {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .site-content {
        max-width: 100% !important;
    }
}

/* Contact icons in footer */
.gh-foot-contact {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.contact-icon {
    color: var(--deep-purple);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.contact-icon:hover {
    color: #6d28d9;
    transform: translateY(-2px);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 800px) {
    .gh-foot-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .gh-foot-contact {
        order: 1;
        gap: 2rem;
    }
    
    .gh-copyright {
        order: 2;
    }
    
    .gh-powered-by {
        order: 3;
    }
}