/* =============================================
   Search Results Page Styles
   ============================================ */
   
   
/* Main Search Container */
.search-title-container {
    width: 100%;
    margin: 40px 0 30px;
    text-align: center;
    clear: both;
}

.search-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin: 0;
    padding: 0;
    font-family: var(--font-family-search-results-title);
}

.search-title span {
    color: var(--primary-color);
}
/* Results List Container */
.search-results-list {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Individual Result Items */
.search-result {
    display: flex;
    width: 100%;
    margin: 0 0 50px 0;
    padding: 0 0 50px 0;
    border-bottom: 1px solid var(--border-color);
}

.search-result:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Image Column */
.result-image {
    width: 35%;
    min-width: 35%;
    max-width: 35%;
    height: auto;
    background: var(--empty-thumbnail-bg);
    overflow: hidden;
    position: relative;
    display: flex; /* Add this */
    align-items: center; /* Add this */
}

.result-image a {
    display: flex; /* Change from block to flex */
    width: 100%; /* Add this */
    height: 100%; /* Add this */
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.result-image img:hover {
    transform: scale(1.03);
}

/* Content Column */
.result-content {
    width: 65%;
    padding: 0;
}

.result-content .entry-title {
    font-size: 1.6rem;
    line-height: 1.3;
    margin: 0 0 15px 0;
    font-family: var(--font-family-search-result-item);
}

.result-content .entry-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.result-content .entry-title a:hover {
    color: var(--primary-color);
}

/* Meta Information */
.post-meta {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-family: var(--font-family-post-meta);
}

.post-meta a {
    color: inherit;
    text-decoration: none;
}

.post-meta a:hover {
    color: var(--primary-color);
}

/* Excerpt */
.post-excerpt {
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 20px;
    font-family: var(--font-family-post-excerpt);
}

/* Read More Link */
.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-family-read-more);
}

.read-more:hover {
    text-decoration: underline;
}

.read-more::after {
    content: "→";
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* Pagination */
.search-pagination {
    margin: 60px 0 30px;
    text-align: center;
    font-family: var(--font-family-pagination);
}

/* No Results */
.no-results-message {
    text-align: center;
    padding: 60px 0;
    font-family: var(--font-family-no-results);
}

.no-results-message p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--light-text);
}

/* =============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 992px) {
    .search-title {
        font-size: 1.8rem;
    }
    
    .result-content .entry-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .search-result {
        flex-direction: column;
        margin-bottom: 40px;
        padding-bottom: 40px;
    }
    
    .result-image,
    .result-content {
        width: 100%;
        padding-right: 0;
    }
    
    .result-image {
        margin-bottom: 25px;
    }
    
    .post-meta {
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .search-title {
        font-size: 1.6rem;
    }
    
    .result-content .entry-title {
        font-size: 1.3rem;
    }
    
    .post-meta {
        font-size: 0.85rem;
    }
    
    .post-excerpt {
        font-size: 0.95rem;
    }
}

/* =============================================
   Search Results Page Styles - Standalone Version
   ============================================ */

/* Main Container */
.search-results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: var(--font-family-base);
}

/* Results List */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 0 20px;
    max-width: 100%;
}

/* Individual Result Item */
.search-result-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--grid-post-bg);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Result Item Wrapper */
.search-result-wrapper {
    display: flex;
    width: 100%;
    min-height: 200px;
}

/* Thumbnail Styles */
.search-result-thumbnail,
.search-empty-thumbnail {
    width: 35%;
    min-width: 35%;
    max-width: 35%;
    height: auto;
    background: var(--empty-thumbnail-bg);
    overflow: hidden;
    position: relative;
}

.search-result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.search-result-thumbnail:hover img {
    transform: scale(1.03);
}

.search-empty-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-empty-thumbnail:before {
    content: "No Image";
    color: var(--light-text);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Content Styles */
.search-result-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

/* Title */
.search-result-title {
    margin: 0 0 10px;
    font-size: 1.5rem;
    line-height: 1.4;
    word-break: break-word;
    font-family: var(--font-family-entry-title);
}

.search-result-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-result-title a:hover {
    color: var(--primary-color);
}

/* Meta Information */
.search-result-meta {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 12px;
    font-family: var(--font-family-entry-meta);
}

.search-result-meta a {
    color: inherit;
    text-decoration: none;
}

.search-result-meta a:hover {
    color: var(--primary-color);
}

/* Excerpt */
.search-result-excerpt {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-word;
    font-family: var(--font-family-entry-content);
}

/* Read More Link */
.search-read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    padding-top: 10px;
    font-size: 0.95rem;
    align-self: flex-start;
    font-family: var(--font-family-read-more);
}

.search-read-more:hover {
    text-decoration: underline;
}

.search-read-more::after {
    content: "→";
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.search-read-more:hover::after {
    transform: translateX(3px);
}

/* Pagination */
.search-pagination {
    margin: 60px 0 30px;
    text-align: center;
    font-family: var(--font-family-pagination);
}

/* No Results */
.no-results-message {
    text-align: center;
    padding: 60px 0;
    font-family: var(--font-family-no-results);
}

.no-results-message p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--light-text);
}

/* =============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 992px) {
    .search-result-title {
        font-size: 1.4rem;
    }
    
    .search-result-content {
        padding: 20px;
    }
    
    .search-result-meta {
        font-size: 0.82rem;
    }
}

@media (max-width: 768px) {
    .search-results-list {
        padding: 0 15px;
        gap: 20px;
    }
    
    .search-result-item {
        margin: 0;
        width: 100%;
    }
    
    .search-result-wrapper {
        flex-direction: column;
        min-height: auto;
    }
    
    .search-result-thumbnail,
    .search-empty-thumbnail {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16/9;
        min-width: auto;
    }
    
    .search-result-content {
        padding: 18px;
    }
    
    .search-result-title {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .search-result-excerpt {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .search-read-more {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .search-results-list {
        padding: 0 10px;
        gap: 15px;
    }
    
    .search-result-content {
        padding: 15px;
    }
    
    .search-result-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .search-result-meta {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .search-result-excerpt {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .search-read-more {
        font-size: 0.85rem;
    }
}


/* =============================================
   Search Results & Archive Page Styles
   ============================================ */

/* Main Container */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: var(--font-family-base);
}

/* Results List - Shared by both search and archive */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 0 20px;
    max-width: 100%;
}

/* Individual Result Item - Shared */
.search-result {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--grid-post-bg);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    padding: 0;
    margin-bottom: 0;
}

.search-result:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Thumbnail Styles - Shared */
.result-image {
    width: 35%;
    min-width: 35%;
    max-width: 35%;
    height: auto;
    background: var(--empty-thumbnail-bg);
    overflow: hidden;
    position: relative;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.result-image:hover img {
    transform: scale(1.03);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--empty-thumbnail-bg);
}

.placeholder-image:before {
    content: "No Image";
    color: var(--light-text);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Content Styles - Shared */
.result-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

/* Title - Shared */
.entry-title {
    margin: 0 0 10px;
    font-size: 1.5rem;
    line-height: 1.4;
    word-break: break-word;
    font-family: var(--font-family-entry-title);
}

.entry-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: var(--primary-color);
}

/* Meta Information - Shared */
.post-meta {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 12px;
    font-family: var(--font-family-entry-meta);
}

.post-meta a {
    color: inherit;
    text-decoration: none;
}

.post-meta a:hover {
    color: var(--primary-color);
}

/* Excerpt - Shared */
.post-excerpt {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-word;
    font-family: var(--font-family-entry-content);
}

/* Read More Link - Shared */
.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    padding-top: 10px;
    font-size: 0.95rem;
    align-self: flex-start;
    font-family: var(--font-family-read-more);
}

.read-more:hover {
    text-decoration: underline;
}

.read-more::after {
    content: "→";
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* Pagination - Shared */
.pagination {
    margin: 60px 0 30px;
    text-align: center;
    font-family: var(--font-family-pagination);
}

/* No Results Message - Shared */
.no-results-message {
    text-align: center;
    padding: 60px 0;
    font-family: var(--font-family-no-results);
}

.no-results-message p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--light-text);
}

/* Archive-specific header styles */
.archive-header {
    text-align: center;
    margin: 40px 0 30px;
    padding: 0 20px;
}

.archive-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin: 0 0 15px;
    font-family: var(--font-family-archive-title);
}

.archive-description {
    font-size: 1rem;
    color: var(--light-text);
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--font-family-archive-description);
}

/* =============================================
   Responsive Adjustments - Shared
   ============================================ */

@media (max-width: 992px) {
    .entry-title {
        font-size: 1.4rem;
    }
    
    .result-content {
        padding: 20px;
    }
    
    .post-meta {
        font-size: 0.82rem;
    }
}

@media (max-width: 768px) {
    .search-results-list {
        padding: 0 15px;
        gap: 20px;
    }
    
    .search-result {
        flex-direction: column;
    }
    
    .result-image {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16/9;
        min-width: auto;
    }
    
    .result-content {
        padding: 18px;
    }
    
    .entry-title {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .post-excerpt {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .read-more {
        font-size: 0.9rem;
    }
    
    .archive-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .search-results-list {
        padding: 0 10px;
        gap: 15px;
    }
    
    .result-content {
        padding: 15px;
    }
    
    .entry-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .post-meta {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .post-excerpt {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .read-more {
        font-size: 0.85rem;
    }
    
    .archive-title {
        font-size: 1.6rem;
    }
    
    .archive-description {
        font-size: 0.9rem;
    }
}