/*
Theme Name: Tourism News Portal
Theme URI: https://example.com/tourism-news
Author: AI Assistant
Description: ثيم ووردبريس سياحي متجاوب لعرض الأخبار، الرحلات، والعروض مصنفة حسب الدول مع روابط للمصادر الأصلية.
Version: 1.0.0
Text Domain: tourism-news
*/

:root {
    --primary: #0077b6;
    --accent: #ffb703;
    --dark: #1d3557;
    --light: #f8f9fa;
    --card-bg: #ffffff;
    --text: #2b2d42;
}

body {
    direction: rtl;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--light);
    color: var(--text);
    margin: 0;
    padding: 0;
}

.site-header {
    background-color: var(--dark);
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
}

.site-header h1 {
    margin: 0 0 1rem;
}

.search-section {
    max-width: 600px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
}

.search-form button {
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.country-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.country-pill {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: #eef4f8;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.country-pill:hover {
    background: var(--primary);
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
}

.card-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-country {
    display: inline-block;
    align-self: flex-start;
    padding: 0.25rem 0.5rem;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.card-title {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    line-height: 1.4;
}

.card-title a {
    color: var(--dark);
    text-decoration: none;
}

.card-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.75rem;
}

.source-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.source-btn:hover {
    background: #005f94;
}

.card-date {
    font-size: 0.8rem;
    color: #888;
}