/*
Theme Name: CombatRift MMA
Author: Web Team
Description: A professional, high-performance theme for MMA and Combat Sports.
Version: 1.0
*/

:root {
  /* Colors */
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --accent-primary: #e63946; /* MMA Red */
  --accent-secondary: #ffffff;
  --border-color: #2a2a2a;
  
  /* Dimensions */
  --header-height: 80px;
  --container-width: 1240px;
  --radius-s: 4px;
  --radius-m: 8px;
  
  /* Typography */
  --font-main: 'Outfit', sans-serif;
  --font-display: 'Teko', sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul { list-style: none; }

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-s);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.1;
  font-weight: 600;
}

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

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--accent-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: #ff4d5a;
  transform: translateY(-2px);
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #fff;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

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

.site-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.site-logo span {
  color: var(--accent-primary);
}

.main-navigation ul {
  display: flex;
  gap: 2.5rem;
}

.main-navigation a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.main-navigation a:hover {
  color: #fff;
}

/* MAIN LAYOUT */
.main-content {
  padding-top: var(--header-height);
}

/* HERO */
.hero-section {
  padding: 8rem 0 6rem;
  text-align: center;
  background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 70%);
}

.hero-title {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  color: #fff;
  line-height: 0.9;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  font-family: var(--font-main);
}

/* FEATURES BLOCK */
.features-section {
  padding: 4rem 0 6rem;
}

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

.feature-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-m);
  text-align: left;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
}

.feature-icon {
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-text {
  color: var(--text-muted);
  font-size: 1rem;
}

/* CTA BLOCK */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(90deg, #111 0%, #0a0a0a 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.cta-wrapper {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.cta-content-side {
  flex: 1;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  z-index: 2;
  position: relative;
}

.cta-image-side {
  flex: 1;
  position: relative;
  min-height: 400px;
  /* Diagonal Clip */
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  margin-left: -80px; /* Overlap */
}

.cta-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* CTA Responsive */
@media (max-width: 768px) {
  .cta-wrapper {
    flex-direction: column-reverse;
  }
  
  .cta-image-side {
    clip-path: none;
    height: 250px;
    min-height: auto;
    margin-left: 0;
    flex: none;
  }
  
  .cta-content-side {
    padding: 2rem;
    align-items: center;
    text-align: center;
  }
}

/* POST GRID */
.latest-news-section {
  padding: 6rem 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.post-thumbnail {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 0;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.post-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta {
  font-size: 0.8rem;
  color: var(--accent-primary);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.post-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

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

.post-excerpt {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.read-more-link {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: #fff;
  align-self: flex-start;
}

.read-more-link::after {
  content: ' →';
}

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

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

.single-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.single-meta-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.badge {
  background: var(--border-color);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-s);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

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

.entry-content {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #d0d0d0;
}

.entry-content p { margin-bottom: 2rem; }
.entry-content h2 { font-size: 2.5rem; margin: 3rem 0 1.5rem; color: #fff; }

/* FOOTER */
.site-footer {
  padding: 4rem 0;
  background: #050505;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
}

.footer-email {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  display: block;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-title { font-size: 3rem; }
  .features-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .single-title { font-size: 2.5rem; }
}
