/*
Theme Name: SwimDesire
Author: Web Engineers Team
Description: Modern swimming & fitness theme with clean design and professional UX.
Version: 7.0
*/

:root {
  /* Swimming Theme Colors */
  --color-primary: #0A7EA4;      /* Ocean Blue */
  --color-primary-dark: #065873;
  --color-primary-light: #E3F4F8;
  --color-accent: #00D4AA;       /* Aqua/Teal */
  --color-text: #1A1A1A;
  --color-text-light: #666666;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFB;
  --color-wave: #0EA5D9;
  
  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-text);
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul { list-style: none; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* HEADER */
.site-header {
  padding: 1.5rem 0;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-brand {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-wave));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-nav ul {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* HERO */
.hero-lux {
  padding: 8rem 0 6rem;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-bg) 100%);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero-lux::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent 0%, var(--color-bg) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-lux::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 126, 164, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  color: var(--color-text);
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 0;
  font-weight: 400;
  text-shadow: 0 1px 10px rgba(0,0,0,0.1);
}

/* FEATURE BLOCKS (New) */
.feature-blocks {
  padding: 5rem 0;
  background: var(--color-bg);
}

.blocks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature-block {
  background: var(--color-bg-alt);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}

.feature-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10, 126, 164, 0.12);
  border-color: var(--color-primary-light);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.feature-block h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.feature-block p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CTA SECTION (New) */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.cta-section p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: white;
  color: var(--color-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: var(--color-primary);
}

/* STATS SECTION (New) */
.stats-section {
  padding: 4rem 0;
  background: var(--color-bg-alt);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-item p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  font-weight: 500;
}

/* POST GRID */
.lux-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.lux-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.06);
}

.lux-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.lux-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.lux-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.lux-card:hover .lux-thumb img {
  transform: scale(1.08);
}

.lux-card-content {
  padding: 1.75rem;
}

.lux-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.lux-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.lux-title a:hover {
  color: var(--color-primary);
}

.lux-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lux-link::after {
  content: '→';
  transition: transform 0.3s ease;
}

.lux-link:hover::after {
  transform: translateX(4px);
}

/* SINGLE POST */
.single-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 0;
}

.single-header {
  margin-bottom: 3rem;
}

.single-h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.single-meta-row {
  font-size: 0.9rem;
  color: var(--color-text-light);
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.single-featured {
  margin-bottom: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.single-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.single-body p {
  margin-bottom: 1.5rem;
}

.single-body h2, 
.single-body h3 {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.single-body a {
  color: var(--color-primary);
  text-decoration: underline;
}

.single-body a:hover {
  color: var(--color-primary-dark);
}

/* PAGINATION */
.lux-pagination {
  padding: 3rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.lux-pagination a,
.lux-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--color-bg-alt);
  color: var(--color-text);
  transition: var(--transition);
}

.lux-pagination a:hover {
  background: var(--color-primary);
  color: white;
}

.lux-pagination .current {
  background: var(--color-primary);
  color: white;
}

/* FOOTER */
.footer-lux {
  background: var(--color-text);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer-col p {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .blocks-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .lux-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 1.5rem; }
  .main-nav ul { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
  
  .hero-title { font-size: 2.5rem; }
  .hero-desc { font-size: 1.1rem; }
  
  .blocks-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .lux-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  
  .cta-section h2 { font-size: 2rem; }
  .single-h1 { font-size: 2.25rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item h3 { font-size: 2.5rem; }
  .cta-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
