/**
 * Ennea Consultants & Coaches - Frontend Styles
 * 
 * @package Ennea_Consultants_Coaches
 */

/* Variables */
:root {
    --ennea-primary: #2563eb;
    --ennea-primary-dark: #1d4ed8;
    --ennea-secondary: #64748b;
    --ennea-text: #1e293b;
    --ennea-text-light: #64748b;
    --ennea-border: #e2e8f0;
    --ennea-bg: #f8fafc;
    --ennea-white: #ffffff;
    --ennea-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --ennea-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --ennea-radius: 8px;
    --ennea-radius-lg: 12px;
    --ennea-transition: 0.2s ease;
}

/* Container */
.ennea-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.ennea-breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: var(--ennea-text-light);
}

.ennea-breadcrumb a {
    color: var(--ennea-primary);
    text-decoration: none;
    transition: color var(--ennea-transition);
}

.ennea-breadcrumb a:hover {
    color: var(--ennea-primary-dark);
    text-decoration: underline;
}

.ennea-breadcrumb .separator {
    margin: 0 8px;
    color: var(--ennea-border);
}

.ennea-breadcrumb .current {
    color: var(--ennea-text);
}

/* ==========================================================================
   ARCHIVE PAGE STYLES
   ========================================================================== */

.ennea-consultants-archive {
    padding: 20px 0 60px;
    background: var(--ennea-bg);
    min-height: 60vh;
}

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

.ennea-archive-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--ennea-text);
    margin: 0 0 16px;
}

.ennea-archive-description {
    font-size: 16px;
    color: var(--ennea-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Consultants Grid */
.ennea-consultants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.ennea-consultant-card {
    background: var(--ennea-white);
    border-radius: var(--ennea-radius-lg);
    overflow: hidden;
    box-shadow: var(--ennea-shadow);
    transition: transform var(--ennea-transition), box-shadow var(--ennea-transition);
}

.ennea-consultant-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ennea-shadow-lg);
}

.ennea-consultant-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ennea-consultant-photo {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--ennea-bg);
}

.ennea-consultant-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ennea-consultant-card:hover .ennea-consultant-photo img {
    transform: scale(1.05);
}

.ennea-no-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ennea-bg) 0%, var(--ennea-border) 100%);
}

.ennea-no-photo svg {
    width: 60px;
    height: 60px;
    color: var(--ennea-secondary);
}

.ennea-consultant-info {
    padding: 16px;
    text-align: center;
}

.ennea-consultant-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ennea-text);
    margin: 0 0 8px;
    line-height: 1.3;
}

.ennea-consultant-types {
    font-size: 13px;
    color: var(--ennea-text-light);
    line-height: 1.4;
}

/* Pagination */
.ennea-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.ennea-pagination .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ennea-pagination a,
.ennea-pagination span {
    padding: 10px 16px;
    border-radius: var(--ennea-radius);
    font-size: 14px;
    text-decoration: none;
    transition: all var(--ennea-transition);
}

.ennea-pagination a {
    background: var(--ennea-white);
    color: var(--ennea-text);
    border: 1px solid var(--ennea-border);
}

.ennea-pagination a:hover {
    background: var(--ennea-primary);
    color: var(--ennea-white);
    border-color: var(--ennea-primary);
}

.ennea-pagination .current {
    background: var(--ennea-primary);
    color: var(--ennea-white);
}

/* No Results */
.ennea-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--ennea-text-light);
    font-size: 16px;
}

/* ==========================================================================
   SINGLE PAGE STYLES
   ========================================================================== */

.ennea-consultant-single {
    padding: 20px 0 60px;
    background: var(--ennea-bg);
    min-height: 60vh;
}

.ennea-consultant-profile {
    background: var(--ennea-white);
    border-radius: var(--ennea-radius-lg);
    box-shadow: var(--ennea-shadow);
    overflow: hidden;
}

/* Profile Header */
.ennea-profile-header {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid var(--ennea-border);
}

.ennea-profile-photo {
    flex-shrink: 0;
}

.ennea-profile-photo img {
    width: 100%;
    height: auto;
    border-radius: var(--ennea-radius-lg);
    box-shadow: var(--ennea-shadow-lg);
}

.ennea-photo-link {
    display: block;
    transition: opacity var(--ennea-transition);
}

.ennea-photo-link:hover {
    opacity: 0.9;
}

.ennea-no-photo-large {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ennea-bg) 0%, var(--ennea-border) 100%);
    border-radius: var(--ennea-radius-lg);
}

.ennea-no-photo-large svg {
    width: 80px;
    height: 80px;
    color: var(--ennea-secondary);
}

.ennea-profile-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ennea-profile-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--ennea-text);
    margin: 0 0 12px;
    line-height: 1.2;
}

.ennea-profile-tagline {
    font-size: 16px;
    color: var(--ennea-text-light);
    margin: 0 0 16px;
    line-height: 1.5;
}

.ennea-profile-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.ennea-type-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--ennea-primary);
    color: var(--ennea-white);
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    transition: background var(--ennea-transition);
}

.ennea-type-badge:hover {
    background: var(--ennea-primary-dark);
    color: var(--ennea-white);
}

.ennea-profile-languages {
    font-size: 15px;
    margin-bottom: 20px;
}

.ennea-profile-languages .ennea-label {
    font-weight: 600;
    color: var(--ennea-text);
}

.ennea-profile-languages .ennea-value {
    color: var(--ennea-text-light);
}

/* Contact Items */
.ennea-profile-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.ennea-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--ennea-white);
    border: 1px solid var(--ennea-border);
    border-radius: var(--ennea-radius);
    color: var(--ennea-text);
    font-size: 14px;
    text-decoration: none;
    transition: all var(--ennea-transition);
}

.ennea-contact-item:hover {
    border-color: var(--ennea-primary);
    color: var(--ennea-primary);
    box-shadow: var(--ennea-shadow);
}

.ennea-contact-item.ennea-whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: var(--ennea-white);
}

.ennea-contact-item.ennea-whatsapp:hover {
    background: #128C7E;
    border-color: #128C7E;
    color: var(--ennea-white);
}

.ennea-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Social Links */
.ennea-profile-social {
    display: flex;
    gap: 12px;
}

.ennea-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ennea-white);
    border: 1px solid var(--ennea-border);
    color: var(--ennea-secondary);
    transition: all var(--ennea-transition);
}

.ennea-social-link svg {
    width: 20px;
    height: 20px;
}

.ennea-social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--ennea-shadow);
}

.ennea-social-link.ennea-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: var(--ennea-white);
}

.ennea-social-link.ennea-linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    color: var(--ennea-white);
}

.ennea-social-link.ennea-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #dc2743;
    color: var(--ennea-white);
}

.ennea-social-link.ennea-website:hover {
    background: var(--ennea-primary);
    border-color: var(--ennea-primary);
    color: var(--ennea-white);
}

/* Profile Details */
.ennea-profile-details {
    padding: 40px;
}

.ennea-detail-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--ennea-border);
}

.ennea-detail-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ennea-detail-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ennea-primary);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ennea-detail-content {
    font-size: 15px;
    color: var(--ennea-text);
    line-height: 1.7;
}

.ennea-detail-content p {
    margin: 0 0 16px;
}

.ennea-detail-content p:last-child {
    margin-bottom: 0;
}

.ennea-biography .ennea-detail-content {
    font-size: 16px;
}

/* Profile Navigation */
.ennea-profile-nav {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    border-top: 1px solid var(--ennea-border);
    background: var(--ennea-bg);
}

.ennea-nav-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    text-decoration: none;
    color: var(--ennea-text);
    transition: background var(--ennea-transition);
    flex: 1;
}

.ennea-nav-link:hover {
    background: var(--ennea-white);
}

.ennea-nav-prev {
    border-right: 1px solid var(--ennea-border);
}

.ennea-nav-next {
    align-items: flex-end;
    text-align: right;
    border-left: 1px solid var(--ennea-border);
}

.ennea-nav-all {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    color: var(--ennea-primary);
    font-weight: 500;
}

.ennea-nav-arrow {
    font-size: 20px;
    color: var(--ennea-primary);
}

.ennea-nav-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ennea-text-light);
    margin-bottom: 4px;
}

.ennea-nav-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--ennea-text);
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 900px) {
    .ennea-profile-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .ennea-profile-photo {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .ennea-profile-intro {
        align-items: center;
    }
    
    .ennea-profile-types {
        justify-content: center;
    }
    
    .ennea-profile-contact {
        justify-content: center;
    }
    
    .ennea-profile-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .ennea-archive-title,
    .ennea-profile-name {
        font-size: 26px;
    }
    
    .ennea-consultants-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    
    .ennea-profile-header,
    .ennea-profile-details {
        padding: 24px;
    }
    
    .ennea-profile-nav {
        flex-direction: column;
    }
    
    .ennea-nav-link {
        border-right: none !important;
        border-left: none !important;
        border-bottom: 1px solid var(--ennea-border);
        align-items: center !important;
        text-align: center !important;
    }
    
    .ennea-nav-link:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .ennea-container {
        padding: 0 16px;
    }
    
    .ennea-consultants-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .ennea-consultant-info {
        padding: 12px;
    }
    
    .ennea-consultant-name {
        font-size: 14px;
    }
    
    .ennea-consultant-types {
        font-size: 12px;
    }
    
    .ennea-profile-contact {
        flex-direction: column;
    }
    
    .ennea-contact-item {
        width: 100%;
        justify-content: center;
    }
}
