/*
Theme Name: Spark Blog
Theme URI: https://ascendoor.com/themes/spark-blog/
Author: Ascendoor
Author URI: https://ascendoor.com/
Version: 1.0.0
Requires PHP: 7.4
Tested up to: 6.8
Requires at least: 5.0
Template: cosmic-blog
Text Domain: spark-blog
Description: Spark Blog child theme – clean, professional, modern design.
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/

/* =====================
   ROOT VARIABLES
===================== */
:root {
  --primary-color: #ff004d;
  --secondary-color: #222222;
  --text-color: #333333;
  --bg-color: #ffffff;
  --accent-color: #ff004d;
  --heading-font: 'Roboto', sans-serif;
  --body-font: 'Open Sans', sans-serif;
  --radius: 0.5rem;
  --shadow: rgba(0,0,0,0.08);
  --font-small: 14px;
  --font-normal: 16px;
  --font-medium: 18px;
  --font-large: 28px;
}

/* =====================
   BASE STYLES
===================== */
body {
  font-family: var(--body-font);
  font-size: var(--font-normal);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: darken(var(--accent-color), 10%);
}

/* =====================
   HEADER
===================== */
.site-header {
  background: var(--bg-color);
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.site-header .site-title {
  font-family: var(--heading-font);
  font-size: var(--font-large);
  font-weight: 700;
  text-align: center;
  margin: 0;
}

.site-header .site-title a {
  color: var(--text-color);
}

.navigation-outer-wrapper .main-navigation {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.navigation-outer-wrapper .main-navigation a {
  margin: 0 15px;
  padding: 10px 0;
  font-weight: 500;
  font-size: var(--font-medium);
  color: var(--secondary-color);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.navigation-outer-wrapper .main-navigation a:hover,
.navigation-outer-wrapper .main-navigation .current-menu-item > a {
  color: var(--primary-color);
  background: rgba(255,0,77,0.05);
}

/* =====================
   HERO / BANNER
===================== */
.banner-section {
  margin-bottom: 40px;
}

.banner-section img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.banner-section img:hover {
  transform: scale(1.03);
}

/* =====================
   CATEGORIES
===================== */
.categories-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

@media (max-width: 1100px) {
  .categories-section {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .categories-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .categories-section {
    grid-template-columns: 1fr;
  }
}

.categories-inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 5px 15px var(--shadow);
}

.categories-inner img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.categories-inner:hover img {
  transform: scale(1.05);
}

.categories-inner .categories-details {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.categories-inner .categories-title a {
  font-weight: 700;
  font-size: var(--font-medium);
  color: #fff;
}

/* =====================
   BLOG POSTS / ARCHIVES
===================== */
.blog-archieve-layout article {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  margin-bottom: 30px;
  background: #fff;
}

.blog-archieve-layout article .blog-post-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-archieve-layout article .blog-post-image img:hover {
  transform: scale(1.03);
}

.blog-archieve-layout article .entry-title a {
  font-family: var(--heading-font);
  font-size: var(--font-medium);
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-archieve-layout article .entry-title a:hover {
  color: var(--primary-color);
}

.blog-archieve-layout article .post-excerpt p {
  font-size: var(--font-small);
  color: var(--text-color);
  margin: 0;
}

/* =====================
   FOOTER
===================== */
.site-footer {
  background: var(--secondary-color);
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  font-size: var(--font-small);
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
}

.site-footer a:hover {
  color: var(--primary-color);
}

/* =====================
   BUTTONS
===================== */
a.button,
button,
input[type="submit"] {
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

a.button:hover,
button:hover,
input[type="submit"]:hover {
  background-color: rgba(255,0,77,0.9);
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 991px) {
  .navigation-outer-wrapper .main-navigation {
    flex-direction: column;
    align-items: center;
  }

  .blog-archieve-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-archieve-layout {
    grid-template-columns: 1fr;
  }

  .categories-section {
    grid-template-columns: 1fr;
  }
}
