/*
Theme Name: TechSpace Blog
Theme URI: https://leszczynski.space
Author: Tomasz Leszczyński
Author URI: https://leszczynski.space
Description: Profesjonalny szablon WordPress dla bloga technologicznego z Bootstrap 5.3, zgodny ze standardami W3C i najlepszymi praktykami UI/UX. Dedykowany dla treści o Linux, programowaniu i muzyce.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techspace
Tags: blog, two-columns, right-sidebar, custom-menu, custom-logo, editor-style, featured-images, threaded-comments, translation-ready, bootstrap, responsive-design
*/

/* ============================================
   ZMIENNE CSS - Niebieska kolorystyka
   ============================================ */
:root {
  --primary-blue: #2563eb;
  --primary-blue-dark: #1e40af;
  --primary-blue-light: #3b82f6;
  --secondary-blue: #1e3a8a;
  --accent-blue: #60a5fa;
  --background-light: #f8fafc;
  --background-dark: #0f172a;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --transition-base: all 0.3s ease-in-out;
}

/* ============================================
   RESETOWANIE I PODSTAWOWE STYLE
   ============================================ */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAFIA
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover,
a:focus {
  color: var(--primary-blue-dark);
  text-decoration: underline;
}

/* ============================================
   NAGŁÓWEK I NAWIGACJA
   ============================================ */
.site-header {
  background: var(--gradient-primary);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}

.top-bar {
  background: var(--secondary-blue);
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.site-branding {
  display: flex;
  align-items: center;
  padding: 1rem 0;
}

.site-logo img {
  max-height: 60px;
  width: auto;
  transition: var(--transition-base);
}

.site-logo img:hover {
  transform: scale(1.05);
}

.site-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
}

.site-title a {
  color: var(--white);
  text-decoration: none;
}

.site-description {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

.main-navigation {
  background: transparent;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  transition: var(--transition-base);
  border-radius: 0.375rem;
  margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.navbar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* Dropdown Toggle Arrow Animation */
.navbar-nav .dropdown-toggle::after {
  margin-left: 0.5rem;
  transition: var(--transition-base);
  border-top-color: currentColor;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
}

.navbar-nav .dropdown.show .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Dropdown Menu Styles */
.navbar-nav .dropdown-menu {
  background: var(--white);
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 220px;
}

.navbar-nav .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: var(--white);
  transform: rotate(45deg);
  border-top-left-radius: 2px;
}

.navbar-nav .dropdown-item {
  color: var(--text-dark);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: var(--transition-base);
  border-left: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
  background: var(--background-light);
  color: var(--primary-blue);
  border-left-color: var(--primary-blue);
  padding-left: 1.75rem;
}

.navbar-nav .dropdown-item.active,
.navbar-nav .dropdown-item:active {
  background: var(--primary-blue);
  color: var(--white);
  border-left-color: var(--primary-blue-dark);
}

.navbar-nav .dropdown-divider {
  border-top-color: var(--border-color);
  margin: 0.5rem 0;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   MENU ICONS
   ============================================ */
.navbar-nav .nav-link i,
.navbar-nav .dropdown-item i {
  margin-right: 0.5rem;
  font-size: 1em;
  vertical-align: middle;
  transition: var(--transition-base);
}

.navbar-nav .nav-link:hover i,
.navbar-nav .dropdown-item:hover i {
  transform: scale(1.1);
}

/* Icon-only menu items (no text) */
.navbar-nav .nav-link i:only-child,
.navbar-nav .dropdown-item i:only-child {
  margin-right: 0;
}

/* Adjust icon size for mobile */
@media (max-width: 991.98px) {
  .navbar-nav .nav-link i {
    font-size: 1.1em;
  }
}

/* ============================================
   HOME PAGE STYLES
   ============================================ */

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
  padding: 120px 0 180px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

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

.hero-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 2rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23ffffff' d='M0,64L48,69.3C96,75,192,85,288,80C384,75,480,53,576,48C672,43,768,53,864,58.7C960,64,1056,64,1152,58.7C1248,53,1344,43,1392,37.3L1440,32L1440,120L1392,120C1344,120,1248,120,1152,120C1056,120,960,120,864,120C768,120,672,120,576,120C480,120,384,120,288,120C192,120,96,120,48,120L0,120Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
}

.letter-spacing-2 {
  letter-spacing: 2px;
}

/* About Section */
.about-section {
  background: #ffffff;
}

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  background: var(--primary-gradient);
  border-radius: 1rem;
  opacity: 0.1;
  z-index: 0;
}

.about-image-wrapper img {
  position: relative;
  z-index: 1;
}

/* Services Section */
.services-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
  position: relative;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.service-card {
  background: white;
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
  border-color: var(--primary-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
  border-radius: 1rem;
  margin: 0 auto;
}

.service-card h3 {
  color: var(--text-dark);
  transition: color var(--transition-base);
}

.service-card:hover h3 {
  color: var(--primary-color);
}

.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 80px 0 140px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .about-image-wrapper::before {
    display: none;
  }
  
  .service-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 60px 0 120px;
  }
  
  .hero-subtitle {
    font-size: 0.75rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .services-section,
  .cta-section {
    padding: 3rem 0 !important;
  }
  
  .about-section {
    padding: 3rem 0 !important;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  background: var(--gradient-secondary);
  color: var(--white);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
  opacity: 0.5;
}

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

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.hero-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-category {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-weight: 500;
  transition: var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-category:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ============================================
   POSTY BLOGOWE
   ============================================ */
.post-card {
  background: var(--white);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

.post-thumbnail {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: var(--background-light);
}

.post-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-base);
}

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

.post-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary-blue);
  color: var(--white);
  padding: 0.375rem 1rem;
  border-radius: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 1;
  box-shadow: var(--shadow-md);
}

.post-category-badge.category-linux {
  background: #059669;
}

.post-category-badge.category-programowanie {
  background: #7c3aed;
}

.post-category-badge.category-muzyka {
  background: #dc2626;
}

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

.post-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.post-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition-base);
}

.post-title a:hover {
  color: var(--primary-blue);
  text-decoration: none;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.post-meta-item i {
  color: var(--primary-blue);
}

.post-excerpt {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  flex: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-base);
}

.read-more:hover {
  color: var(--primary-blue-dark);
  gap: 0.75rem;
  text-decoration: none;
}

.read-more i {
  transition: var(--transition-base);
}

/* ============================================
   POJEDYNCZY POST
   ============================================ */
.single-post {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.single-post-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

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

.single-post-thumbnail {
  margin-bottom: 2rem;
  border-radius: 0.75rem;
  overflow: hidden;
}

.single-post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.post-entry-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.post-entry-content h2,
.post-entry-content h3,
.post-entry-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.post-entry-content p {
  margin-bottom: 1.5rem;
}

.post-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.post-entry-content pre {
  background: var(--background-dark);
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-left: 4px solid var(--primary-blue);
}

.post-entry-content code {
  background: var(--background-light);
  color: var(--primary-blue-dark);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.post-entry-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.post-entry-content blockquote {
  border-left: 4px solid var(--primary-blue);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-light);
}

.post-entry-content ul,
.post-entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-entry-content li {
  margin-bottom: 0.5rem;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  position: sticky;
  top: 100px;
}

.widget {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-blue);
  color: var(--text-dark);
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: var(--text-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-base);
}

.widget ul li a:hover {
  color: var(--primary-blue);
  padding-left: 0.5rem;
  text-decoration: none;
}

.widget ul li a i {
  color: var(--primary-blue);
  font-size: 0.875rem;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-count {
  background: var(--background-light);
  color: var(--text-light);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ============================================
   KATEGORIE
   ============================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.category-card {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  border: 2px solid var(--border-color);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-blue);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

.category-card.linux .category-icon {
  color: #059669;
}

.category-card.programowanie .category-icon {
  color: #7c3aed;
}

.category-card.muzyka .category-icon {
  color: #dc2626;
}

.category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.category-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.category-card .btn {
  margin-top: 1rem;
}

/* ============================================
   PAGINACJA
   ============================================ */
.pagination-wrapper {
  margin: 3rem 0;
}

.pagination {
  justify-content: center;
}

.page-link {
  color: var(--primary-blue);
  border-color: var(--border-color);
  padding: 0.75rem 1.25rem;
  transition: var(--transition-base);
}

.page-link:hover {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

.page-item.active .page-link {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
}

/* ============================================
   KOMENTARZE
   ============================================ */
.comments-area {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 2.5rem;
  margin-top: 3rem;
  box-shadow: var(--shadow-md);
}

.comments-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment {
  padding: 1.5rem;
  border-left: 3px solid var(--primary-blue);
  background: var(--background-light);
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.comment-author {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.comment-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.comment-content {
  color: var(--text-dark);
  line-height: 1.6;
}

.comment-form {
  margin-top: 2rem;
}

.comment-form .form-control {
  border-color: var(--border-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

.comment-form .form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* ============================================
   STOPKA
   ============================================ */
.site-footer {
  background: var(--background-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-widgets {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.footer-widget {
  margin-bottom: 2rem;
}

.footer-widget h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-widget ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-base);
}

.footer-widget ul li a:hover {
  color: var(--accent-blue);
  padding-left: 0.5rem;
  text-decoration: none;
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition-base);
}

.social-link:hover {
  background: var(--primary-blue);
  transform: translateY(-3px);
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
}

.copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ============================================
   PRZYCISKI
   ============================================ */
.btn-primary {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: var(--transition-base);
}

.btn-primary:hover {
  background: var(--primary-blue-dark);
  border-color: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

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

/* ============================================
   FORMULARZE
   ============================================ */
.search-form {
  position: relative;
}

.search-form input[type="search"] {
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  width: 100%;
  transition: var(--transition-base);
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.search-form button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-blue);
  border: none;
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.search-form button:hover {
  background: var(--primary-blue-dark);
}

/* ============================================
   TAGI
   ============================================ */
.tag-cloud a {
  display: inline-block;
  background: var(--background-light);
  color: var(--text-dark);
  padding: 0.375rem 1rem;
  border-radius: 1.5rem;
  margin: 0.25rem;
  font-size: 0.875rem;
  transition: var(--transition-base);
  border: 1px solid var(--border-color);
}

.tag-cloud a:hover {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ============================================
   RESPONSYWNOŚĆ
   ============================================ */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .single-post {
    padding: 1.5rem;
  }
  
  .single-post-title {
    font-size: 2rem;
  }
  
  .sidebar {
    position: static;
    margin-top: 3rem;
  }

  /* Mobile Dropdown Styles */
  .navbar-nav .dropdown-menu {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    box-shadow: none;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
    margin-left: 1rem;
  }

  .navbar-nav .dropdown-menu::before {
    display: none;
  }

  .navbar-nav .dropdown-item {
    color: rgba(255, 255, 255, 0.95);
    padding: 0.75rem 1rem;
    border-left: 2px solid transparent;
    border-radius: 0.25rem;
    margin: 0.25rem 0.5rem;
  }

  .navbar-nav .dropdown-item:hover,
  .navbar-nav .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-left-color: var(--white);
    padding-left: 1.25rem;
  }

  .navbar-nav .dropdown-item.active,
  .navbar-nav .dropdown-item:active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-left-color: var(--white);
  }
}

@media (max-width: 767.98px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-categories {
    justify-content: flex-start;
  }
  
  .post-content {
    padding: 1.25rem;
  }
  
  .single-post {
    padding: 1.25rem;
  }
  
  .single-post-title {
    font-size: 1.75rem;
  }
  
  .post-entry-content {
    font-size: 1rem;
  }
  
  .comments-area {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .post-title {
    font-size: 1.25rem;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   DOSTĘPNOŚĆ
   ============================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-blue);
  color: var(--white);
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

*:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* ============================================
   ANIMACJE
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading-spinner {
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-blue);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary { color: var(--primary-blue) !important; }
.bg-primary { background-color: var(--primary-blue) !important; }
.border-primary { border-color: var(--primary-blue) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mt-3 { margin-top: 1rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }

.p-0 { padding: 0 !important; }
.pt-3 { padding-top: 1rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }

/* ============================================
   KADENCE BLOCKS OVERRIDE & FIXES
   ============================================ */

/* Ensure footer always has dark background */
.site-footer,
footer.site-footer,
#colophon {
  background: var(--background-dark) !important;
  background-color: var(--background-dark) !important;
}

/* Ensure site content has white background */
.site-content,
#content {
  background: white !important;
  background-color: white !important;
}

/* Kadence blocks color overrides */
.has-theme-palette9-background-color {
  background: white !important;
  background-color: white !important;
}

.has-theme-palette8-background-color {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%) !important;
  background-color: var(--primary-color) !important;
}

.has-theme-palette1-background-color {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%) !important;
  background-color: var(--primary-color) !important;
}

/* Override any Kadence row layouts that might affect footer */
.site-footer .kb-row-layout-wrap,
.site-footer .kt-row-layout-wrap {
  background: transparent !important;
}

/* Ensure main content area has proper background */
.site-main {
  background: white;
  min-height: 400px;
}

/* Fix for services grid background */
.kb-row-layout-id10_b25615-0d {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%) !important;
}

/* Fix for hero section background */
.kb-row-layout-id10_a30c34-89 {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%) !important;
}

/* Fix for CTA section background */
.kb-row-layout-id10_1a438e-65 {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%) !important;
}

/* Force white text on blue backgrounds */
.has-theme-palette1-background-color *,
.has-theme-palette8-background-color * {
  color: white !important;
}

.has-theme-palette1-background-color h1,
.has-theme-palette1-background-color h2,
.has-theme-palette1-background-color h3,
.has-theme-palette8-background-color h1,
.has-theme-palette8-background-color h2,
.has-theme-palette8-background-color h3 {
  color: white !important;
}
