/**
 * NESA Aesthetics - Additional Styles
 *
 * @package NESA_Aesthetics
 */

/* ============================================
   BLOG POSTS GRID
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: var(--nesa-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-card-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.post-card-content {
    padding: 1.5rem;
}

.post-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--nesa-text-light);
    margin-bottom: 0.75rem;
}

.post-card-meta a {
    color: var(--nesa-primary);
}

.post-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-card-title a {
    color: var(--nesa-dark);
}

.post-card-title a:hover {
    color: var(--nesa-primary);
}

.post-card-excerpt {
    color: var(--nesa-text-light);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-post-header {
    padding: 120px 0 60px;
    background: var(--nesa-secondary);
    text-align: center;
}

.single-post-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--nesa-text-light);
}

.single-post-title {
    max-width: 800px;
    margin: 0 auto;
}

.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.single-post-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin-top: 2rem;
}

.single-post-content img {
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.single-post-content blockquote {
    border-left: 4px solid var(--nesa-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--nesa-text-light);
}

.single-post-content ul,
.single-post-content ol {
    margin: 1rem 0 1rem 1.5rem;
}

.single-post-content li {
    margin-bottom: 0.5rem;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--nesa-light) 0%, var(--nesa-secondary) 100%);
    text-align: center;
}

.page-header .page-title {
    margin-bottom: 1rem;
}

.page-header .page-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--nesa-text-light);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--nesa-text-light);
}

.breadcrumbs a {
    color: var(--nesa-text-light);
}

.breadcrumbs a:hover {
    color: var(--nesa-primary);
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.breadcrumbs .current {
    color: var(--nesa-dark);
    font-weight: 500;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination,
.navigation.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination .page-numbers,
.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    background: var(--nesa-white);
    border: 2px solid var(--nesa-secondary);
    border-radius: var(--radius-sm);
    color: var(--nesa-dark);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pagination .page-numbers:hover,
.nav-links .page-numbers:hover {
    border-color: var(--nesa-primary);
    color: var(--nesa-primary);
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current {
    background: var(--nesa-primary);
    border-color: var(--nesa-primary);
    color: var(--nesa-white);
}

/* ============================================
   SERVICE ARCHIVE
   ============================================ */
.services-archive {
    padding: 60px 0;
}

.service-category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.service-full-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background: var(--nesa-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    transition: all var(--transition-normal);
}

.service-full-card:hover {
    box-shadow: var(--shadow-lg);
}

.service-full-image {
    aspect-ratio: 4/3;
}

.service-full-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-full-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-full-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.service-full-price,
.service-full-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
}

.service-full-price {
    font-weight: 600;
    color: var(--nesa-primary);
}

.service-full-duration {
    color: var(--nesa-text-light);
}

/* ============================================
   GALLERY PAGE
   ============================================ */
.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page-content {
    padding: 60px 0;
}

.contact-form-card {
    background: var(--nesa-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
    text-align: center;
    padding: 120px 0;
}

.error-404-code {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 700;
    color: var(--nesa-primary);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-404 h1 {
    margin-bottom: 1rem;
}

.error-404 p {
    color: var(--nesa-text-light);
    margin-bottom: 2rem;
}

/* ============================================
   SEARCH FORM
   ============================================ */
.search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.search-form .search-field {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--nesa-secondary);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 1rem;
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--nesa-primary);
}

.search-form .search-submit {
    padding: 0.875rem 1.5rem;
    background: var(--nesa-primary);
    color: var(--nesa-white);
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition-fast);
}

.search-form .search-submit:hover {
    background: var(--nesa-primary-dark);
}

/* ============================================
   NO RESULTS
   ============================================ */
.no-results {
    text-align: center;
    padding: 60px 0;
}

.no-results h2 {
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--nesa-text-light);
    margin-bottom: 2rem;
}

/* ============================================
   TEAM GRID
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-member-card {
    background: var(--nesa-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-normal);
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-member-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-content {
    padding: 1.5rem;
}

.team-member-name {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team-member-position {
    color: var(--nesa-primary);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.team-member-specialties {
    font-size: 0.875rem;
    color: var(--nesa-text-light);
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--nesa-secondary);
}

.comments-title {
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--nesa-secondary);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--nesa-dark);
}

.comment-meta {
    font-size: 0.8125rem;
    color: var(--nesa-text-light);
}

.comment-content {
    margin-left: 66px;
}

.comment-reply-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--nesa-primary);
}

.comment-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--nesa-secondary);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--nesa-primary);
}

/* ============================================
   WIDGETS
   ============================================ */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--nesa-primary);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--nesa-secondary);
}

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

.widget a {
    color: var(--nesa-text);
}

.widget a:hover {
    color: var(--nesa-primary);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .service-full-card {
        grid-template-columns: 1fr;
    }

    .service-full-image {
        aspect-ratio: 16/9;
    }

    .single-post-header {
        padding: 100px 0 40px;
    }

    .page-header {
        padding: 100px 0 40px;
    }

    .error-404-code {
        font-size: 5rem;
    }

    .comment-content {
        margin-left: 0;
        margin-top: 0.75rem;
    }
}

@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .service-full-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}
