/*
Theme Name: ŽFK Sloboda 2024
Theme URI: https://zfksloboda2024.ba
Author: ŽFK Sloboda 2024
Author URI: https://zfksloboda2024.ba
Description: Službena WordPress tema za ŽFK Sloboda 2024 Tuzla — ženski fudbalski klub. Sigurnosno ojačana, Bootstrap 5, responzivna.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zfk-sloboda
Tags: custom-menu, featured-images, translation-ready, one-column, two-columns, custom-logo
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --primary-color: #8B0000;
  --secondary-color: #1a1a1a;
  --accent-color: #c41e3a;
}

/* ==========================================================================
   Base / Reset
   ========================================================================== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

/* ==========================================================================
   Top Bar
   ========================================================================== */
.top-bar {
  background: var(--secondary-color);
  padding: 8px 0;
  font-size: 0.9rem;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.top-bar a:hover {
  color: var(--accent-color);
}

.top-bar .social-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  margin-left: 8px;
  transition: background 0.3s;
}

.top-bar .social-icon:hover {
  background: var(--accent-color);
}

/* ==========================================================================
   Main Navigation
   ========================================================================== */
.main-nav {
  background: #fff !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 10px 0;
  z-index: 1030;
}

.main-nav .navbar-brand img {
  height: 60px;
}

.main-nav .nav-link {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--secondary-color) !important;
  padding: 10px 15px !important;
}

.main-nav .nav-link:hover,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a {
  color: var(--primary-color) !important;
}

.main-nav .dropdown-menu {
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ==========================================================================
   Hero Section (Front Page)
   ========================================================================== */
.hero-section {
  background: #d91d24;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero-section .hero-content {
  display: flex;
  align-items: center;
  min-height: 300px;
}

.hero-section .hero-image {
  flex: 0 0 auto;
  max-width: 50%;
}

.hero-section .hero-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

.hero-section .hero-text {
  flex: 1;
  text-align: center;
  padding: 40px 20px;
  margin-left: -100px;
}

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

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* ==========================================================================
   Section Titles
   ========================================================================== */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
}

/* ==========================================================================
   News Cards
   ========================================================================== */
.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card .card-body {
  padding: 1.5rem;
}

.news-card .post-date {
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-card .post-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.news-card .post-title a {
  color: inherit;
  text-decoration: none;
}

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

.news-card .read-more,
.read-more {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.news-card .read-more:hover,
.read-more:hover {
  color: var(--accent-color);
}

/* ==========================================================================
   Blog Cards (Archive)
   ========================================================================== */
.blog-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.blog-card img {
  height: 200px;
  object-fit: cover;
}

.blog-card .card-body {
  padding: 1.5rem;
}

.blog-card .post-date {
  color: #dc3545;
  font-size: 0.85rem;
  font-weight: 600;
}

.blog-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.blog-card .card-title a {
  color: #212529;
  text-decoration: none;
}

.blog-card .card-title a:hover {
  color: #dc3545;
}

/* ==========================================================================
   Results Section
   ========================================================================== */
.results-section {
  background: #f8f9fa;
  padding: 60px 0;
}

.result-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
}

.result-card .teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 1rem;
}

.result-card .team-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.result-card .score {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
}

.result-card .match-info {
  font-size: 0.9rem;
  color: #666;
}

/* ==========================================================================
   Video Section
   ========================================================================== */
.video-section {
  padding: 60px 0;
}

.video-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 60px 0;
  color: #fff;
}

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-item .stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.8);
}

.stat-item .stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item .stat-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* ==========================================================================
   Sponsors Section
   ========================================================================== */
.sponsors-section {
  padding: 60px 0;
  background: #fff;
}

.sponsor-logo {
  max-height: 80px;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s;
}

.sponsor-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--secondary-color);
  color: #fff;
  padding: 40px 0 20px;
}

.site-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  margin-right: 10px;
  font-size: 1.2rem;
  transition: background 0.3s;
}

.site-footer .social-icon:hover {
  background: var(--primary-color);
  color: #fff;
}

/* ==========================================================================
   Page Header (inner pages)
   ========================================================================== */
.page-header {
  background: var(--secondary-color);
  color: #fff;
  padding: 3rem 0;
}

.page-header h1 {
  font-weight: 700;
  margin-bottom: 0;
}

.page-header p {
  margin-bottom: 0;
  opacity: 0.75;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-info .card {
  border: none;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

/* ==========================================================================
   Single Post
   ========================================================================== */
.single-post article img {
  border-radius: 8px;
}

.single-post .post-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #dee2e6;
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */
.sidebar .card {
  margin-bottom: 1.5rem;
}

.sidebar .card-header {
  font-weight: 700;
}

/* ==========================================================================
   WordPress Core Alignments
   ========================================================================== */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .hero-section .hero-content {
    flex-direction: column;
  }

  .hero-section .hero-image {
    max-width: 100%;
  }

  .hero-section .hero-text {
    margin-left: 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .stat-item .stat-number {
    font-size: 2.5rem;
  }

  .top-bar .d-flex.gap-4 {
    flex-direction: column;
    gap: 0.25rem !important;
  }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}
