/*
 * Main stylesheet for the SWELL‑like theme.
 *
 * Colours are defined using CSS custom properties.  The default
 * values will be overridden at runtime via an inline style tag
 * output in functions.php based on Customizer settings.  Using
 * variables makes it trivial for site owners to recolour the theme
 * without editing CSS files.
 */

:root {
  --primary-color: #006699;
  --secondary-color: #0099cc;
  --background-color: #ffffff;
  --text-color: #222222;
  --accent-light: #e6f4fa;
  --border-radius: 8px;
}

/* Reset and typography */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  margin: 1.5em 0 0.5em;
  line-height: 1.2;
  color: var(--primary-color);
}

p {
  margin: 0 0 1em;
}

/* Header and navigation */
.site-header {
  background: var(--primary-color);
  color: #fff;
  padding: 1rem;
  position: relative;
}

.site-header .branding {
  font-size: 1.5rem;
  font-weight: 600;
}

.main-navigation {
  margin-top: 0.5rem;
}

.main-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
}

.main-navigation li {
  margin: 0;
}

.main-navigation a {
  color: #fff;
  padding: 0.5rem 0;
  font-weight: 500;
}

.main-navigation a:hover {
  color: var(--secondary-color);
}

/* Hero section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero .hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: #f1f1f1;
}

.hero .hero-button {
  display: inline-block;
  background: var(--secondary-color);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero .hero-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Layout */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

.content-area {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.main-content {
  flex: 1;
}

.sidebar {
  width: 320px;
}

/* Post card */
.post-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 2rem;
  transition: box-shadow 0.2s ease;
}

.post-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.post-card img {
  width: 100%;
  height: auto;
  display: block;
}

.post-card .post-content {
  padding: 1rem;
}

.post-card .post-content h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: var(--primary-color);
}

.post-card .post-content .meta {
  font-size: 0.875rem;
  color: #777;
  margin-bottom: 0.75rem;
}

/* Slider */
.slider {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.slider-controls button {
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: var(--border-radius);
}

/* Accordion */
.accordion {
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.accordion-title {
  width: 100%;
  background: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1rem;
  border: none;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
}

.accordion-content {
  display: none;
  padding: 1rem;
  background: #f8f9fa;
}

/* Speech bubble */
.speech-bubble {
  display: flex;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.speech-bubble .speech-icon img {
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin-right: 0.75rem;
}

.speech-bubble .speech-content {
  background: var(--accent-light);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  position: relative;
  max-width: 80%;
}

.speech-bubble .speech-content::before {
  content: '';
  position: absolute;
  top: 12px;
  left: -10px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 10px solid var(--accent-light);
}

.speech-bubble.reverse {
  flex-direction: row-reverse;
}

.speech-bubble.reverse .speech-content::before {
  left: auto;
  right: -10px;
  border-right: none;
  border-left: 10px solid var(--accent-light);
}

/* Rating stars */
.rating-stars {
  display: inline-flex;
  gap: 0.25rem;
  color: #ffaa00;
}

/* Widgets */
.widget-area {
  margin-bottom: 2rem;
}

.widget {
  margin-bottom: 1.5rem;
}

.widget-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--primary-color);
  color: #fff;
  padding: 2rem 1rem;
}

.site-footer .footer-widgets {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.site-footer .widget-area {
  flex: 1;
  min-width: 200px;
}

.site-footer .copyright {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
}