/**
 * Evolution Roadmap - Kundalini Yoga directory style
 * Matches archive-kundalini-yoga.php design
 */

.evolution-roadmap-archive,
.evolution-roadmap-single {
    margin-bottom: 3rem;
}

/* Archive - Modern Header (Kundalini Yoga style) */
#content_practices .modern-header-section {
    margin-bottom: 1rem;
}

#content_practices .header-content {
    text-align: center;
    margin-bottom: 2rem;
}

#content_practices .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #4D68B0, #5a7bc8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#content_practices .page-description {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#content_practices .er-votes-remaining-badge {
    font-size: 0.95em;
    color: #6c757d;
}

/* Archive - Modern Filter Form */
#content_practices .modern-filter-form.er-filter-form {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(77, 104, 176, 0.1);
}

#content_practices .filters-row {
    margin-top: 0;
}

#content_practices .filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

#content_practices .filter-item {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

#content_practices .filter-item:hover {
    background: #fff;
    border-color: #4D68B0;
    box-shadow: 0 4px 15px rgba(77, 104, 176, 0.1);
}

#content_practices .filter-icon {
    color: #4D68B0;
    margin-right: 0.5rem;
    font-size: 1rem;
}

#content_practices .modern-filter-select {
    border: none;
    background: transparent;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
    cursor: pointer;
    min-width: 140px;
}

#content_practices .filter-item-actions {
    background: transparent;
    border: none;
}

#content_practices .modern-search-btn {
    font-weight: 600;
    background: linear-gradient(135deg, #4D68B0, #5a7bc8);
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(77, 104, 176, 0.3);
}

#content_practices .modern-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 104, 176, 0.4);
    background: linear-gradient(135deg, #5a7bc8, #4D68B0);
}

#content_practices .modern-clear-btn {
    font-weight: 500;
    border: 2px solid #6c757d;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
}

#content_practices .modern-clear-btn:hover {
    background: #6c757d;
    color: #fff !important;
}

@media (max-width: 768px) {
    #content_practices .page-title {
        font-size: 2rem;
    }
    #content_practices .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    #content_practices .filter-item {
        width: 100%;
    }
    #content_practices .filter-item-actions {
        flex-direction: column;
    }
    #content_practices .filter-item-actions .modern-search-btn,
    #content_practices .filter-item-actions .modern-clear-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Archive - Results */
#content_practices .results-info {
    margin-bottom: 0.5rem;
}

#content_practices .results-count {
    font-size: 14px;
    margin-bottom: 0.25rem !important;
}

#content_practices .no-results-message {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    border: 1px solid #dee2e6;
    margin: 2rem 0;
}

#content_practices .no-results-message i {
    color: #6c757d;
    opacity: 0.5;
}

/* Legacy page header (if used elsewhere) */
.er-page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.er-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2a3f83;
    margin: 0 0 0.75rem;
}

.er-page-subtitle {
    font-size: 1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

.er-votes-remaining-badge {
    font-size: 0.9em;
    color: #6c757d;
    margin: 0;
}

.er-results-count {
    font-size: 0.85em;
    color: #6c757d;
    margin: 0 0 1rem;
}

/* Login card (when not logged in) */
.er-login-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.er-login-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.er-login-icon {
    font-size: 1.25rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.er-login-title {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #212529;
}

.er-login-desc {
    font-size: 0.9em;
    color: #6c757d;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.er-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.er-login-btn {
    display: inline-block;
    padding: 0.5em 1em;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.er-login-btn-primary {
    background: #F39200;
    color: #fff;
    border: 2px solid #F39200;
}

.er-login-btn-primary:hover {
    background: #e08500;
    border-color: #e08500;
    color: #fff !important;
}

.er-login-btn-outline {
    background: #fff;
    color: #F39200;
    border: 2px solid #F39200;
}

.er-login-btn-outline:hover {
    background: #F39200;
    color: #fff !important;
}

.er-login-btn-secondary {
    background: #4D68B0;
    color: #fff;
    border: 2px solid #4D68B0;
}

.er-login-btn-secondary:hover {
    background: #3d5a9e;
    border-color: #3d5a9e;
    color: #fff !important;
}

.er-login-benefits {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.er-login-benefits summary {
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    color: #495057;
}

.er-login-benefits summary:hover {
    color: #F39200;
}

.er-login-benefits-list {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
    font-size: 0.85em;
    color: #6c757d;
    line-height: 1.6;
}

.er-login-benefits-list li {
    margin-bottom: 0.35rem;
}

/* Sidebar - white floating container */
.evolution-roadmap-layout .evolution-roadmap-sidebar {
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .evolution-roadmap-layout .evolution-roadmap-sidebar {
        margin-bottom: 0;
        padding-right: 1.5rem;
    }
}

.er-submit-form,
.er-login-card {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Cards - practice-card style (Kundalini Yoga) */
.evolution-item-card.practice-card {
    border: none;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.evolution-item-card.practice-card:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.practice-card.evolution-item-card .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.practice-card.evolution-item-card .evolution-item-card-content {
    flex: 1 0 auto;
}

.practice-card.evolution-item-card .evolution-item-card-meta {
    margin-top: auto;
    padding-top: 0.75rem;
}

.evolution-item-card .card-title a {
    color: #2a3f83;
    font-weight: 600;
    text-decoration: none;
}

.evolution-item-card .card-title a:hover {
    color: #F39200;
}

.evolution-item-card .evolution-item-excerpt {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.evolution-item-card .list-group-item {
    border: none;
    display: inline-block;
    margin: 0 0.5rem 0 0;
    padding: 0;
    font-size: 0.85rem;
    color: #6c757d;
}

.evolution-item-card .card-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    padding: 15px;
    border-radius: 0 0 0.375rem 0.375rem;
}

.evolution-item-card .er-view-btn {
    font-size: 0.875rem;
}

.evolution-item-tag,
.evolution-item-category-pill {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 500;
    padding: 0.3em 0.85em;
    border-radius: 50px;
    background: rgba(42, 63, 131, 0.9);
    color: #fff;
    margin-bottom: 0.75rem;
}

.evolution-item-categories {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.evolution-item-categories .evolution-item-tag,
.evolution-item-categories .evolution-item-category-pill {
    margin-bottom: 0;
}

.evolution-item-meta .evolution-item-categories {
    align-items: center;
}

.evolution-item-card .evolution-item-categories {
    margin-bottom: 0.75rem;
}

.evolution-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.evolution-item-title {
    margin: 0 0 0.5em;
    font-size: 1.1em;
    font-weight: 600;
    color: #F39200;
    line-height: 1.3;
}

.evolution-item-link:hover .evolution-item-title {
    color: #e08500;
}

.evolution-item-excerpt {
    margin-bottom: 0.75em;
    font-size: 0.85em;
    color: #6c757d;
    line-height: 1.5;
}

.evolution-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em 1em;
    font-size: 0.8em;
    color: #6c757d;
}

.er-meta-icon {
    font-size: 0.9em;
}

.evolution-item-meta span + span::before {
    content: " · ";
    margin-right: 0.25em;
    opacity: 0.7;
}

.evolution-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.er-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.4em 0.9em;
    font-size: 0.85em;
    font-weight: 500;
    color: #fff;
    background: #4D68B0;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.er-view-btn:hover {
    background: #3d5a9e;
    color: #fff;
}

/* Single page - header layout (Kundalini Yoga style) */
.er-single-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.er-single-title-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .er-single-title-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.evolution-item-single .evolution-item-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2a3f83;
    margin: 0;
    line-height: 1.3;
}

.er-single-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.er-vote-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.4em 0.85em;
    background: rgba(243, 146, 0, 0.15);
    color: #F39200;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95em;
}

.er-vote-count-num {
    font-size: 1.1em;
}

.er-vote-count-label {
    font-weight: 500;
    opacity: 0.9;
}

.er-vote-btn-single {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.5em 1.25em;
    border-radius: 50px;
}

.er-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.5rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    font-size: 0.95em;
    color: #6c757d;
}

.er-single-meta li {
    display: flex;
    align-items: center;
}

.er-single-meta i {
    color: #4D68B0;
}

.er-single-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.er-single-pills .evolution-item-category-pill {
    margin-bottom: 0;
}

.evolution-item-single .evolution-item-content {
    margin-bottom: 2em;
    font-size: 1rem;
    line-height: 1.7;
}

.evolution-item-single .evolution-item-content p {
    margin-bottom: 1em;
}

/* Evolution Item - Image Gallery */
.evolution-item-gallery {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.er-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .er-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .er-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.er-gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    background: #f8f9fa;
}

.er-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.er-gallery-item:hover .er-gallery-img {
    transform: scale(1.05);
}

.er-gallery-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* GLightbox: hide title/description */
.gslide-description,
.gslide-title {
    display: none !important;
}

/* Submission form - white floating card */
.er-submit-form {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.er-submit-title {
    margin: 0 0 0.5em;
    font-size: 1.1em;
}

.er-submit-limits-msg {
    font-size: 0.85em;
    color: #666;
    margin: 0 0 0.75em;
}

.er-submit-form p {
    margin: 0 0 1em;
}

.er-submit-form label {
    display: block;
    margin-bottom: 0.25em;
    font-weight: 500;
}

.er-submit-form input[type="text"],
.er-submit-form textarea,
.er-submit-form select {
    width: 100%;
    max-width: 100%;
    padding: 0.5em 0.75em;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.er-submit-form input[type="text"]:focus,
.er-submit-form textarea:focus,
.er-submit-form select:focus {
    border-color: #F39200;
    outline: none;
    box-shadow: 0 0 0 2px rgba(243, 146, 0, 0.2);
}

.er-submit-form .required {
    color: #c00;
}

.er-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.er-submit-btn {
    padding: 0.5em 1.5em;
    cursor: pointer;
    background: #F39200;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    transition: background 0.2s;
    box-shadow: 0 2px 6px rgba(243, 146, 0, 0.3);
}

.er-submit-btn:hover:not(:disabled) {
    background: #e08500;
}

.er-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.er-submit-message {
    margin-top: 1em;
    padding: 0.5em;
    border-radius: 4px;
}

.er-submit-message.success {
    background: #d4edda;
    color: #155724;
}

.er-submit-message.error {
    background: #f8d7da;
    color: #721c24;
}

.er-submit-remaining,
.er-submit-limit-reached {
    font-size: 0.9em;
    margin-bottom: 1em;
}

.er-submit-limit-reached {
    color: #856404;
}

/* Voting */
.er-vote-btn {
    padding: 0.4em 1em;
    cursor: pointer;
    background: #4D68B0;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 500;
    transition: background 0.2s;
}

.er-vote-btn:hover:not(:disabled) {
    background: #3d5a9e;
}

/* Evolution cards: use practice-like-btn green style (Kundalini Yoga) */
.evolution-item-card .er-vote-btn.practice-like-btn {
    background: transparent;
    border: 2px solid #28a745;
    color: #28a745;
}

.evolution-item-card .er-vote-btn.practice-like-btn:hover:not(:disabled) {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

.er-vote-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.er-vote-disabled,
.er-vote-login-required {
    font-size: 0.85em;
    color: #6c757d;
}

.er-votes-remaining {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Breadcrumbs: inherit theme styles via p#breadcrumbs, #breadcrumbs a, .breadcrumb_last */
.evolution-roadmap-archive #breadcrumbs,
.evolution-item-single #breadcrumbs {
    margin-bottom: 0;
}

/* Evolution Roadmap archive: breadcrumb spacing */
body.post-type-archive-evolution_item #breadcrumbs {
    margin-top: 10px;
}

/* Archive: breadcrumb inferior dentro del container, sin espacio blanco antes del footer */
body.post-type-archive-evolution_item #content_practices {
    padding-bottom: 0;
    margin-bottom: 0;
}

body.post-type-archive-evolution_item #primary,
body.post-type-archive-evolution_item .site-main {
    padding-bottom: 0;
    margin-bottom: 0;
}

/* + Submit an idea button */
.er-submit-idea-btn {
    border-radius: 5px !important;
    color: #fff !important;
}

.er-submit-idea-btn .fas.fa-plus {
    color: #fff !important;
}
