/*
Theme Name: Syba Group Blog
Theme URI: https://syba.group
Author: Syba Group
Author URI: https://syba.group
Description: A modern WordPress blog theme for Syba Group with clean card-based layout matching the main website dark theme
Version: 5.1
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: syba-blog
Tags: blog, two-columns, custom-colors, custom-menu, featured-images, sticky-post, threaded-comments, dark
*/

/* ============================================
   Blog-Specific Styles
   Uses main site's dark theme from main.css
   ============================================ */

/* Page Banner Override - Simple Black Background */
.page-banner {
  position: relative;
  padding: 120px 0 80px;
  background: #000000;
  overflow: hidden;
}

/* Blog Index Layout */
.blog-index {
  background: #000000;
  padding: 80px 0;
}

.blog-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(1, 208, 255, 0.2);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
}

.filter-tab:hover,
.filter-tab.active {
  background: #01d0ff;
  color: #000000;
  border-color: #01d0ff;
  transform: translateY(-2px);
}

.filter-search {
  position: relative;
}

.filter-search input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(1, 208, 255, 0.2);
  color: #ffffff;
  padding: 12px 20px 12px 45px;
  border-radius: 25px;
  width: 300px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.filter-search input:focus {
  outline: none;
  border-color: #01d0ff;
  box-shadow: 0 0 0 3px rgba(1, 208, 255, 0.1);
}

.filter-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.filter-search::before {
  content: '\f002';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Blog Card Grid */
.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin: 60px 0;
}

.blog-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(1, 208, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(1, 208, 255, 0.2);
  border-color: rgba(1, 208, 255, 0.3);
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #01d0ff, #0066cc);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card:hover::before {
  opacity: 1;
}

.card-media {
  display: block;
  position: relative;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .card-media img {
  transform: scale(1.05);
}

.card-body {
  padding: 30px;
  background: transparent;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.meta-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
}

.meta-date i {
  color: #01d0ff;
}

.meta-pill {
  background: rgba(1, 208, 255, 0.2);
  color: #01d0ff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 15px;
  line-height: 1.3;
  font-family: 'Aeonik', sans-serif;
}

.card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.card-title a:hover {
  color: #01d0ff;
}

.card-excerpt {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 25px;
  font-size: 1rem;
}

.card-link {
  color: #01d0ff;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.card-link:hover {
  color: #00b8e6;
  transform: translateX(5px);
}

/* Single Post Content */
.blog-post-content {
  background: #000000;
  padding: 80px 0;
  margin: 0;
}

.blog-post-content .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.content-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.main-content {
  min-width: 0;
}

.content-section {
  background: rgba(255, 255, 255, 0.03);
  padding: 60px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(1, 208, 255, 0.1);
  line-height: 1.8;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.content-section h2 {
  color: #ffffff;
  margin-top: 50px;
  margin-bottom: 25px;
  font-family: 'Aeonik', sans-serif;
  font-weight: 400;
  font-size: 2rem;
}

.content-section h3 {
  color: #ffffff;
  margin-top: 40px;
  margin-bottom: 20px;
  font-family: 'Aeonik', sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
}

.content-section h4 {
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 15px;
  font-family: 'Aeonik', sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
}

.content-section p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.content-section ul,
.content-section ol {
  margin: 20px 0;
  padding-left: 30px;
}

.content-section li {
  margin-bottom: 10px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.content-section strong {
  color: #ffffff;
}

.content-section a {
  color: #01d0ff;
}

.content-section a:hover {
  color: #00b8e6;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-widget {
  background: rgba(255, 255, 255, 0.03);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(1, 208, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sidebar-widget h3 {
  color: #ffffff;
  margin-bottom: 25px;
  font-size: 1.4rem;
  font-family: 'Aeonik', sans-serif;
  font-weight: 400;
}

.sidebar-widget h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 8px;
  font-family: 'Aeonik', sans-serif;
  font-weight: 400;
}

.sidebar-widget p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}

.sidebar-widget a {
  color: #01d0ff;
  text-decoration: none;
}

.sidebar-widget a:hover {
  text-decoration: underline;
}

.sidebar-widget .post-meta div {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.sidebar-widget .post-meta strong {
  color: #ffffff;
}

.sidebar-widget .btn,
.sidebar-widget .btn-primary {
  background: #01d0ff;
  color: #000000;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: 500;
}

.sidebar-widget .btn:hover,
.sidebar-widget .btn-primary:hover {
  background: #00b8e6;
  transform: translateY(-2px);
  color: #000000;
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 80px 0;
}

.blog-pagination a,
.blog-pagination span {
  padding: 12px 18px;
  border: 1px solid rgba(1, 208, 255, 0.2);
  border-radius: 5px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
}

.blog-pagination a:hover,
.blog-pagination .current {
  background: #01d0ff;
  color: #000000;
  border-color: #01d0ff;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-card-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .blog-filter {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-search input {
    width: 100%;
  }
  
  .content-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }
  
  .content-section {
    padding: 40px 20px;
  }
  
  .sidebar-widget {
    padding: 30px 20px;
  }
  
  .blog-pagination {
    margin: 60px 0;
  }
}
