/**
 * Common Components CSS
 * 
 * Standardized styles for common components used throughout the theme.
 * This reduces CSS duplication and ensures consistency.
 * 
 * @package Triply_Child
 * @since 1.0.0
 */

/* ==========================================================================
   Post Cards
   ========================================================================== */

.post-card {
/* The CSS code snippet you provided is styling a common component called `.post-card`. Here's what
each property is doing: */
    /* background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px; */
}

.post-card:hover {
    /* transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); */
}

.post-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 2rem;
}

.post-content {
    padding: 20px;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    font-size: 0.8rem;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    /* color: #aa8453; */
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tour-info {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tour-price,
.tour-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #333;
}

.tour-price {
    background: #e8f5e8;
    color: #2d5a2d;
}

.tour-price i {
    color: #28a745;
}

.tour-duration i {
    color: #dc834e;
}

.post-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #aa8453;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #8a6b3a;
    transform: translateX(5px);
}

/* ==========================================================================
   Hero Sections
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #aa8453;
    color: #fff;
    border-color: #aa8453;
}

.pagination .prev,
.pagination .next {
    padding: 0 16px;
    font-weight: 600;
}

/* ==========================================================================
   Search Forms
   ========================================================================== */

.search-form {
    max-width: 500px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #aa8453;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: #8a6b3a;
}

.search-button-text {
    display: none;
}

@media (min-width: 768px) {
    .search-button-text {
        display: inline;
    }
}

/* ==========================================================================
   Category Filters
   ========================================================================== */

.category-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-link:hover,
.category-link.active {
    background: #aa8453;
    color: #fff;
    border-color: #aa8453;
}

.category-count {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ==========================================================================
   No Posts Messages
   ========================================================================== */

.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 40px 0;
}

.no-posts-content i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.no-posts-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

.no-posts-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.no-posts-search {
    max-width: 400px;
    margin: 0 auto;
}

/* ==========================================================================
   Loading Spinners
   ========================================================================== */

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #aa8453;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* ==========================================================================
   Messages (Success/Error)
   ========================================================================== */

.success-message,
.error-message {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.success-content,
.error-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.success-content i {
    color: #28a745;
    font-size: 1.2rem;
}

.error-content i {
    color: #dc3545;
    font-size: 1.2rem;
}

.success-content h3,
.error-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.success-content p,
.error-content p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .post-title {
        font-size: 1.2rem;
    }
    
    .tour-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .category-filter {
        justify-content: flex-start;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .pagination .page-numbers {
        min-width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .post-thumbnail {
        height: 150px;
    }
    
    .no-posts-content h2 {
        font-size: 1.5rem;
    }
    
    .search-input-group {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .search-button {
        border-radius: 0 0 12px 12px;
    }
}
