/*
Theme Name: Family Trips Adventures
Theme URI: http://example.com/family-trips
Author: Family Travels Co.
Author URI: http://example.com
Description: A premium, fast, and SEO-optimized family travel blog theme ready for monetization with Google Ads and affiliate marketing. Features beautiful vanilla CSS, modern design, and readable typography.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: family-trips
Tags: blog, flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images
*/

/* =========================================================================
   1. CSS Reset & Base Variables
   ========================================================================= */

:root {
  --primary-color: #2F80ED; /* Vibrant Blue */
  --secondary-color: #FF9F43; /* Warm Orange */
  --text-primary: #333333;
  --text-secondary: #555555;
  --bg-color: #F8F9FA;
  --bg-card: #FFFFFF;
  --border-color: #EEEEEE;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --container-width: 1200px;
  --transition-speed: 0.3s;
  --border-radius: 12px;
  --box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  --box-shadow-hover: 0 10px 15px rgba(0,0,0,0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-color);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: var(--text-primary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================================
   2. Typography & Formats
   ========================================================================= */
p {
  margin-bottom: 1.5em;
}

ul, ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 10px 20px;
  margin: 0 0 20px;
  font-style: italic;
  background-color: #f1f8ff;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* =========================================================================
   3. Header Container
   ========================================================================= */

.site-header {
  background-color: var(--bg-card);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
}
.site-title a {
  color: inherit;
}
.site-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.main-navigation a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: var(--border-radius);
  transition: background-color var(--transition-speed);
}

.main-navigation a:hover {
  background-color: #f1f8ff;
  color: var(--primary-color);
}

.header-ad-area {
  margin-top: 15px;
  text-align: center;
  width: 100%;
}

/* =========================================================================
   4. Hero Section & Front Page
   ========================================================================= */
.hero-section {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary-color), #5dade2);
  color: white;
  border-radius: var(--border-radius);
  margin: 20px 0 40px;
  box-shadow: var(--box-shadow);
}
.hero-section h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 20px;
}
.hero-section p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* Post Cards */
.post-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}
.post-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.post-content-wrap {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.post-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.post-excerpt {
  color: var(--text-secondary);
  margin-bottom: 15px;
  flex-grow: 1;
}
.read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white !important;
  border-radius: 20px;
  font-weight: 600;
  text-align: center;
  transition: background-color var(--transition-speed);
}
.read-more-btn:hover {
  background-color: var(--secondary-color);
}

/* =========================================================================
   5. Layout & Main Content
   ========================================================================= */

.site-content {
  padding: 40px 0;
}

.content-sidebar-wrap {
  display: flex;
  gap: 40px;
}

.main-content {
  flex: 1;
  min-width: 0;
}

/* Sidebar */
.sidebar {
  width: 300px;
  flex-shrink: 0;
}

.widget {
  background: var(--bg-card);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
}
.widget-title {
  font-size: 1.2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

/* Ad Placement Containers */
.ad-container {
  background: #f4f4f4;
  border: 1px dashed #ccc;
  text-align: center;
  padding: 10px;
  margin: 20px 0;
  color: #999;
  font-size: 0.8rem;
}
.ad-container img {
  max-width: 100%;
}

/* =========================================================================
   6. Single Post
   ========================================================================= */
.single-post-wrapper {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}
.single-post-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.post-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

/* =========================================================================
   7. Footer
   ========================================================================= */
.site-footer {
  background-color: #2c3e50;
  color: #ffffff;
  padding: 60px 0 20px;
  margin-top: 60px;
}
.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}
.footer-widgets .widget {
  background: transparent;
  box-shadow: none;
  padding: 0;
  color: #ecf0f1;
}
.footer-widgets .widget-title {
  color: white;
  border-color: #34495e;
}
.footer-widgets a {
  color: #add8e6;
}
.site-info {
  text-align: center;
  border-top: 1px solid #34495e;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #bdc3c7;
}

/* =========================================================================
   8. Responsive Design
   ========================================================================= */
@media screen and (max-width: 900px) {
  .content-sidebar-wrap {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
}
@media screen and (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .main-navigation ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .single-post-wrapper {
    padding: 20px;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
}
