/*
 * Styles for the Custom Front Page (front-page.php)
 * Features: Hero Search, Modern Chips, and Clean UI.
 */

.front-page-main {
    padding: 20px 0 60px;
}

.fp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.fp-section-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--py-secondary-color);
}

.fp-view-all {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--py-primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.fp-view-all:hover {
    color: var(--py-primary-dark);
    transform: translateX(5px);
}

/* ==========================================
   1. HERO SEARCH SECTION
   ========================================== */
.fp-hero-search-section {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--py-secondary-color), #1e293b);
    border-radius: var(--py-border-radius-lg);
    margin-bottom: 50px;
    color: white;
    box-shadow: var(--py-shadow-float);
    position: relative;
    overflow: hidden;
}

.fp-hero-search-section::before {
    content: ''; position: absolute; top: -50%; left: -20%; width: 300px; height: 300px;
    background: var(--py-primary-color); filter: blur(100px); opacity: 0.3; border-radius: 50%; z-index: 0;
}

.fp-hero-search-content {
    position: relative;
    z-index: 2;
}

.fp-hero-search-content h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.fp-hero-search-content p {
    font-size: 1.2rem;
    color: #cbd5e0;
    margin-bottom: 40px;
}

.fp-search-box {
    max-width: 650px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    padding: 8px;
    display: flex;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.fp-search-box .search-form {
    width: 100%;
    display: flex;
    margin: 0;
    border: none;
}

.fp-search-box .search-field {
    border: none;
    background: transparent;
    padding: 15px 25px;
    font-size: 1.1rem;
    color: #333;
    border-radius: 50px;
    box-shadow: none;
}

.fp-search-box .search-field:focus {
    outline: none;
    box-shadow: none;
}

.fp-search-box .search-submit {
    border-radius: 50px;
    padding: 0 35px;
    font-size: 1.1rem;
}

/* ==========================================
   2. MODERN CHIPS (Countries & Operators)
   ========================================== */
.fp-chips-section {
    margin-bottom: 50px;
}

.fp-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.fp-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--py-card-bg);
    border: 1px solid var(--py-border-color);
    padding: 10px 20px;
    border-radius: 50px;
    color: var(--py-text-color);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--py-shadow-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.fp-chip:hover {
    border-color: var(--py-primary-color);
    color: var(--py-primary-color);
    transform: translateY(-3px);
    box-shadow: var(--py-shadow-float);
}

.fp-chip-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

.fp-chip-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   3. PLANS BY COUNTRY
   ========================================== */
.fp-plans-wrapper {
    margin-bottom: 50px;
}

.fp-country-plans-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
}

/* ==========================================
   4. LATEST POSTS LIST
   ========================================== */
.fp-latest-posts-section {
    margin-bottom: 40px;
}

.fp-posts-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.fp-post-list-item {
    display: flex;
    gap: 15px;
    background: var(--py-card-bg);
    border: 1px solid var(--py-border-color);
    border-radius: 16px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    align-items: center;
    box-shadow: var(--py-shadow-soft);
}

.fp-post-list-item:hover {
    border-color: var(--py-primary-color);
    box-shadow: var(--py-shadow-float);
    transform: translateY(-3px);
}

.fp-post-list-thumb {
    width: 120px;
    height: 85px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.fp-post-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2rem;
}

.fp-post-list-content {
    flex-grow: 1;
}

.fp-post-list-title {
    font-size: 1.05rem;
    margin: 0 0 8px 0;
    color: var(--py-secondary-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fp-post-list-item:hover .fp-post-list-title {
    color: var(--py-primary-color);
}

.fp-post-list-date {
    font-size: 0.85rem;
    color: var(--py-text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================
   5. MOBILE RESPONSIVENESS
   ========================================== */
@media (max-width: 992px) {
    .fp-posts-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .fp-section-header h2 {
        font-size: 1.4rem;
    }
    
    .fp-hero-search-section {
        padding: 50px 15px;
    }
    
    .fp-hero-search-content h1 {
        font-size: 2.2rem;
    }
    
    .fp-search-box {
        padding: 5px;
    }
    
    .fp-search-box .search-field {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .fp-search-box .search-submit {
        padding: 0 20px;
    }
    
    .fp-chip {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .fp-post-list-item {
        padding: 12px;
        gap: 12px;
    }
    
    .fp-post-list-thumb {
        width: 90px;
        height: 70px;
    }
    
    .fp-post-list-title {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }
}