/*
Theme Name: R7lat
Theme URI: https://r7lat.com
Author: R7lat Team
Description: قالب رحلات احترافي
Version: 2.0
Text Domain: r7lat
*/

* { margin:0; padding:0; box-sizing:border-box; }

:root {
  --blue: #5B9BD5;
  --pink: #E8748A;
  --dark: #1a1a2e;
  --bg: #F8FBFF;
  --sand: #FFF0F5;
  --white: #ffffff;
  --gray: #666666;
  --border: #E8F4FF;
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--dark);
  overflow-x: hidden;
}

nav {
  background: white;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.5px solid var(--border);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--dark); }

.btn-primary {
  background: var(--dark);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  transition: background 0.2s;
  display: inline-block;
}

.btn-primary:hover { background: var(--blue); }

.btn-outline {
  background: white;
  color: var(--dark);
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid #ddd;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  transition: all 0.2s;
  display: inline-block;
}

.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.article-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 0.5px solid var(--border);
  text-decoration: none;
  color: var(--dark);
  display: block;
  transition: transform 0.2s;
}

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

.article-img {
  height: 180px;
  background: linear-gradient(135deg, var(--blue), var(--dark));
  position: relative;
  overflow: hidden;
}

.article-card.featured .article-img { height: 240px; }

.article-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.article-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--pink);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}

.article-body { padding: 14px; }

.article-meta {
  font-size: 11px;
  color: #999;
  margin-bottom: 6px;
}

.article-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.article-card.featured .article-title { font-size: 17px; }

.article-excerpt {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.6;
  margin-top: 6px;
}

footer {
  background: var(--dark);
  color: white;
  padding: 40px 24px 24px;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-logo {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-logo span { color: var(--blue); }

.footer-desc {
  font-size: 13px;
  opacity: 0.5;
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 14px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }

.footer-bottom {
  font-size: 12px;
  opacity: 0.3;
  text-align: center;
}

.post-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--dark);
}

.post-content p { margin-bottom: 16px; line-height: 1.8; font-size: 16px; }
.post-content a { color: var(--blue); }

.affiliate-box {
  background: linear-gradient(135deg, var(--blue), var(--dark));
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.affiliate-box-text { font-size: 15px; font-weight: 700; }
.affiliate-box-sub { font-size: 12px; opacity: 0.7; margin-top: 3px; }

.affiliate-btn {
  background: var(--pink);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  nav { padding: 12px 16px; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .affiliate-box { flex-direction: column; text-align: center; }
}
