/*!
Theme Name: ets-becej
Theme URI: http://underscores.me/
Author: Gluscevic Luka
Author URI: http://underscores.me/
Description: Modern minimalistic WordPress theme with Bootstrap 5 and vibrant color palette
Version: 3.0.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: ets-becej
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, modern, minimalistic, bootstrap

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

ets-becej is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Redesigned with Bootstrap 5 and color palette: #38B8CD, #54C2CB, #5EC9D1, #B467A9, #E155B0, #FF3276
*/

/*--------------------------------------------------------------
# Design System with Bootstrap Integration
--------------------------------------------------------------*/

/* Color Variables - Bootstrap Compatible */
:root {
  --bs-primary: #38B8CD;
  --bs-secondary: #54C2CB;
  --bs-info: #5EC9D1;
  --bs-purple: #B467A9;
  --bs-pink: #E155B0;
  --bs-danger: #FF3276;
  
  --bs-primary-rgb: 56, 184, 205;
  --bs-secondary-rgb: 84, 194, 203;
  --bs-info-rgb: 94, 201, 209;
  --bs-purple-rgb: 180, 103, 169;
  --bs-pink-rgb: 225, 85, 176;
  --bs-danger-rgb: 255, 50, 118;
  
  /* Custom theme colors */
  --primary-blue: #38B8CD;
  --secondary-blue: #54C2CB;
  --light-blue: #5EC9D1;
  --primary-purple: #B467A9;
  --secondary-purple: #E155B0;
  --accent-pink: #FF3276;
  --text-primary: #000000;
  --text-secondary: #7F8C8D;
  --text-light: #95A5A6;
  --background-primary: #FFFFFF;
  --background-secondary: #F8F9FA;
  --background-accent: #F1F3F4;
  --border-light: #E1E8ED;
  --border-medium: #D1D9DD;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  --gradient-secondary: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
  --gradient-accent: linear-gradient(135deg, var(--accent-pink), var(--secondary-purple));
}

html {
    margin-top: 0 !important;
}

/* Bootstrap Theme Colors Override */
.btn-primary {
  --bs-btn-bg: var(--primary-blue);
  --bs-btn-border-color: var(--primary-blue);
  --bs-btn-hover-bg: var(--secondary-blue);
  --bs-btn-hover-border-color: var(--secondary-blue);
  --bs-btn-active-bg: var(--light-blue);
  --bs-btn-active-border-color: var(--light-blue);
  --bs-btn-disabled-bg: var(--primary-blue);
  --bs-btn-disabled-border-color: var(--primary-blue);
}

.btn-secondary {
  --bs-btn-bg: var(--primary-purple);
  --bs-btn-border-color: var(--primary-purple);
  --bs-btn-hover-bg: var(--secondary-purple);
  --bs-btn-hover-border-color: var(--secondary-purple);
  --bs-btn-active-bg: var(--accent-pink);
  --bs-btn-active-border-color: var(--accent-pink);
  --bs-btn-disabled-bg: var(--primary-purple);
  --bs-btn-disabled-border-color: var(--primary-purple);
}

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

.btn-outline-secondary {
  --bs-btn-color: var(--primary-purple);
  --bs-btn-border-color: var(--primary-purple);
  --bs-btn-hover-bg: var(--primary-purple);
  --bs-btn-hover-border-color: var(--primary-purple);
}

/* Typography */
body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  overflow-x: hidden; /* Allow vertical scrolling */
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

h5 {
  font-size: 1.25rem;
  font-weight: 500;
}

h6 {
  font-size: 1.125rem;
  font-weight: 500;
}

/* Links */
a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-purple);
  text-decoration: underline;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding: 6rem 0 2rem;
  transition: padding-top 0.3s ease;
  width: 100%;
  max-width: 100%;
}

/* Ensure consistent main content alignment across all page types */
.site-main .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.site-main .row {
  margin: 0 -15px;
}

.site-main .col-lg-8,
.site-main .col-lg-4 {
  padding: 0 15px;
}

/* WordPress Admin Bar Compatibility */
.admin-bar .site-header {
  top: 32px;
}

.admin-bar main {
  padding-top: calc(6rem + 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
  
  .admin-bar main {
    padding-top: calc(6rem + 46px);
  }
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  box-shadow: var(--shadow-sm);
  transition: top 0.3s ease;
  will-change: top;
}

/* Ensure consistent header positioning across all page types */
body:not(.admin-bar) .site-header {
  top: 0;
}

/* Prevent layout shifts during page load */
.site-header {
  transform: translateZ(0);
}

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

.site-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0;
  line-height: 1;
}

.site-title a {
  color: var(--text-primary);
  text-decoration: none;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0.25rem 0 0 0;
  font-weight: 400;
}

/* Modern Hamburger Menu - Fixed in Header */
.hamburger-menu {
  z-index: 1050;
  background: rgba(25, 39, 52, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

/* WordPress Admin Bar Compatibility for Hamburger Menu */


.hamburger-menu:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger-icon {
  position: relative;
  width: 24px;
  height: 20px;
  display: block;
}

.hamburger-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: white;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: all 0.25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
  top: 0px;
}

.hamburger-icon span:nth-child(2) {
  top: 8px;
}

.hamburger-icon span:nth-child(3) {
  top: 16px;
}

.hamburger-menu.active .hamburger-icon span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

.hamburger-menu.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger-menu.active .hamburger-icon span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

/* Fixed Right-Side Menu Panel */
.right-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: #192734;
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease-in-out;
  transform: translateX(100%);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

/* WordPess Admin Bar Compatibility for Right Menu */


.right-menu-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.right-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.25rem;
  z-index: 10;
}

.right-menu-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.right-menu-container {
  width: 100%;
  padding: 4rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

/* Backdrop overlay */
.right-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1030;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease-in-out;
}

/* WordPress Admin Bar Compatibility for Backdrop */
.admin-bar .right-menu-backdrop {
  top: 32px;
  height: calc(100% - 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar .right-menu-backdrop {
    top: 46px;
    height: calc(100% - 46px);
  }
}

.right-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.menu-item {
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.4s ease;
}

.right-menu-panel.active .menu-item {
  opacity: 1;
  transform: translateX(0);
}

.right-menu-panel.active .menu-item:nth-child(1) { transition-delay: 0.05s; }
.right-menu-panel.active .menu-item:nth-child(2) { transition-delay: 0.1s; }
.right-menu-panel.active .menu-item:nth-child(3) { transition-delay: 0.15s; }
.right-menu-panel.active .menu-item:nth-child(4) { transition-delay: 0.2s; }
.right-menu-panel.active .menu-item:nth-child(5) { transition-delay: 0.25s; }
.right-menu-panel.active .menu-item:nth-child(6) { transition-delay: 0.3s; }
.right-menu-panel.active .menu-item:nth-child(7) { transition-delay: 0.35s; }
.right-menu-panel.active .menu-item:nth-child(8) { transition-delay: 0.4s; }
.right-menu-panel.active .menu-item:nth-child(9) { transition-delay: 0.45s; }
.right-menu-panel.active .menu-item:nth-child(10) { transition-delay: 0.5s; }

.menu-link {
  color: white;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  padding: 1rem 1.5rem;
  display: block;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.menu-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.menu-link:hover::before {
  left: 100%;
}

.menu-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(10px);
  color: white;
}

/* Accordion Submenu */
.menu-item-has-children > .menu-link::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.menu-item-has-children.active > .menu-link::after {
  transform: translateY(-50%) rotate(45deg);
}

.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  opacity: 0;
}

.submenu.active {
  max-height: 500px;
  opacity: 1;
  margin-top: 0.5rem;
}

.submenu .menu-item {
  margin-left: 2rem;
  margin-bottom: 0.25rem;
}

.submenu .menu-link {
  font-size: 1rem;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.submenu .menu-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

/* Bootstrap Navbar Override */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav .nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--text-primary) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  background: var(--gradient-primary);
  color: white !important;
  transform: translateY(-1px);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(56, 184, 205, 0.25);
}

/* Hide default Bootstrap navigation on all devices */
.navbar-collapse {
  display: none !important;
}

/* Hide default navigation menu */
.main-navigation {
  display: none;
}

/* Body scroll prevention */
body.right-menu-open {
  overflow: hidden;
}

/* Responsive Right Menu */
@media (max-width: 768px) {
  .right-menu-panel {
    width: 280px;
  }
  
  .right-menu-container {
    padding: 3rem 1.5rem 1.5rem;
  }
  
  .menu-link {
    font-size: 1.1rem;
    padding: 0.875rem 1.25rem;
  }
  
  .right-menu-close {
    top: 1rem;
    right: 1rem;
    width: 35px;
    height: 35px;
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .right-menu-panel {
    width: 100%;
  }
  
  .right-menu-container {
    padding: 2.5rem 1rem 1rem;
  }
  
  .menu-link {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
  
  .submenu .menu-link {
    font-size: 0.9rem;
    padding: 0.625rem 0.875rem;
  }
  
  .submenu .menu-item {
    margin-left: 1.5rem;
  }
}

/* Posts and Pages */
.post, .page {
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.post:hover {
    margin-top: -4px;
    box-shadow: var(--shadow-lg);
}

.sticky {
  border: 2px solid var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(56, 184, 205, 0.1);
}

.entry-header {
  padding: 2rem 2rem 1rem;
  background: var(--background-secondary);
  border-bottom: 1px solid var(--border-light);
  border-radius: 1rem;
}

.entry-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.entry-title a {
  color: var(--text-primary);
  text-decoration: none;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.entry-title a:hover {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

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

.entry-meta a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.entry-meta a:hover {
  color: var(--secondary-purple);
}

.entry-content, .page-content, .entry-summary {
  padding: 2rem;
}

.entry-content img {
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  margin: 1.5rem 0;
  max-width: 100%;
  height: auto;
}

/* Featured Image */
.post-thumbnail {
  margin: 0;
  position: relative;
  
}

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

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

/* Comments - Modern Design System */
.comments-area {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--background-secondary);
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.comments-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

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

.comment {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--background-primary);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
}

.comment:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.comment.depth-2,
.comment.depth-3,
.comment.depth-4 {
  margin-left: 2rem;
  background: var(--background-accent);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-family: 'Montserrat', sans-serif;
}

.comment-author .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.comment-author .fn {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
  font-style: normal;
}

.comment-author .url {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.comment-author .url:hover {
  color: var(--secondary-purple);
}

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

.comment-metadata a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.comment-metadata a:hover {
  color: var(--primary-blue);
}

.comment-content {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.comment-content p {
  margin-bottom: 1rem;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.comment-reply-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, hsla(0, 0%, 100%, 0.2), hsla(0, 0%, 100%, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.comment-reply-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.comment-reply-link:hover::before {
  opacity: 1;
}

.no-comments {
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  padding: 2rem;
  background: var(--background-accent);
  border-radius: 0.75rem;
  border: 1px solid var(--border-light);
}

/* Comment Form - Refined Modern Design */
.comment-respond {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--background-accent);
  border-radius: 0.75rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.comment-reply-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  position: relative;
}

.comment-reply-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.comment-form label {
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--background-primary);
  transition: all 0.25s ease;
  font-family: 'Open Sans', sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.125rem rgba(56, 178, 255, 0.15), 0 2px 4px rgba(0, 0, 0, 0.08);
  background: var(--background-primary);
}

.comment-form textarea {
  min-height: clamp(4rem, 8vh, 6rem);
  resize: vertical;
  max-height: clamp(8rem, 16vh, 12rem);
}

.comment-form .form-submit {
  margin-top: 0.5rem;
}

.comment-form .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(56, 178, 255, 0.2);
}

.comment-form .submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsla(0, 0%, 100%, 0.2), hsla(0, 0%, 100%, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.comment-form .submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(56, 178, 255, 0.3);
}

.comment-form .submit:hover::before {
  opacity: 1;
}

.comment-form .submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(56, 178, 255, 0.2);
}

.comment-form .required {
  color: var(--accent-pink);
  font-weight: 700;
  font-size: 0.9em;
}

.comment-notes {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(56, 178, 255, 0.05);
  border-radius: 0.375rem;
  border-left: 3px solid var(--primary-blue);
  font-style: normal;
  line-height: 1.4;
}

.logged-in-as {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  background: rgba(103, 126, 234, 0.05);
  border-radius: 0.375rem;
  border-left: 3px solid var(--secondary-purple);
  line-height: 1.4;
}

.logged-in-as a {
  color: var(--secondary-purple);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s ease;
}

.logged-in-as a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

/* Comments - Responsive Design with Relative Units */
@media (max-width: 62rem) {
  .comments-area {
    padding: 1.25rem;
  }
  
  .comment.depth-2,
  .comment.depth-3,
  .comment.depth-4 {
    margin-left: 0.75rem;
  }
  
  .comment-author {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
  }
  
  .comment-author .avatar {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .comment-respond {
    padding: 1.25rem;
    margin-top: 1.5rem;
  }
  
  .comment-reply-title {
    font-size: 1.125rem;
    margin-bottom: 0.875rem;
  }
  
  .comment-form textarea {
    min-height: clamp(3.5rem, 7vh, 5rem);
    max-height: clamp(7rem, 14vh, 10rem);
  }
}

@media (max-width: 48rem) {
  .comments-area {
    padding: 1rem;
    margin-top: 1.5rem;
  }
  
  .comments-title {
    font-size: 1.375rem;
    margin-bottom: 1.25rem;
  }
  
  .comment {
    padding: 0.875rem;
    margin-bottom: 0.875rem;
  }
  
  .comment.depth-2,
  .comment.depth-3,
  .comment.depth-4 {
    margin-left: 0.375rem;
  }
  
  .comment-author {
    flex-direction: row;
    align-items: center;
    gap: 0.625rem;
  }
  
  .comment-author .avatar {
    width: 2.25rem;
    height: 2.25rem;
  }
  
  .comment-author .fn {
    font-size: 0.9rem;
  }
  
  .comment-author .url {
    font-size: 0.8rem;
  }
  
  .comment-metadata {
    font-size: 0.8rem;
    gap: 0.375rem;
  }
  
  .comment-content {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  .comment-reply-link {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .comment-respond {
    padding: 1.125rem;
    margin-top: 1.5rem;
  }
  
  .comment-reply-title {
    font-size: 1.125rem;
    margin-bottom: 0.875rem;
  }
  
  .comment-form {
    gap: 0.875rem;
  }
  
  .comment-form label {
    font-size: 0.75rem;
  }
  
  .comment-form input[type="text"],
  .comment-form input[type="email"],
  .comment-form input[type="url"],
  .comment-form textarea {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .comment-form textarea {
    min-height: clamp(3rem, 6vh, 4.5rem);
    max-height: clamp(6rem, 12vh, 9rem);
  }
  
  .comment-form .submit {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
  }
  
  .comment-notes,
  .logged-in-as {
    font-size: 0.75rem;
    padding: 0.375rem 0.625rem;
  }
}

@media (max-width: 30rem) {
  .comments-area {
    padding: 0.75rem;
  }
  
  .comments-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }
  
  .comment {
    padding: 0.625rem;
    margin-bottom: 0.75rem;
  }
  
  .comment-author {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .comment-author .avatar {
    width: 2rem;
    height: 2rem;
  }
  
  .comment-metadata {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    font-size: 0.75rem;
  }
  
  .comment-content {
    font-size: 0.875rem;
    line-height: 1.5;
  }
  
  .comment-reply-link {
    padding: 0.3125rem 0.625rem;
    font-size: 0.75rem;
  }
  
  .comment-respond {
    padding: 0.875rem;
    margin-top: 1.25rem;
  }
  
  .comment-reply-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .comment-form {
    gap: 0.75rem;
  }
  
  .comment-form label {
    font-size: 0.7rem;
  }
  
  .comment-form input[type="text"],
  .comment-form input[type="email"],
  .comment-form input[type="url"],
  .comment-form textarea {
    padding: 0.4375rem 0.6875rem;
    font-size: 0.8125rem;
  }
  
  .comment-form textarea {
    min-height: clamp(2.5rem, 5vh, 4rem);
    max-height: clamp(5rem, 10vh, 8rem);
  }
  
  .comment-form .submit {
    padding: 0.4375rem 1rem;
    font-size: 0.8125rem;
    width: 100%;
  }
  
  .comment-notes,
  .logged-in-as {
    font-size: 0.7rem;
    padding: 0.3125rem 0.5rem;
  }
}

/* Widgets */
.widget {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--background-secondary);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Montserrat', sans-serif;
}

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

.widget ul li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

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

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

.widget ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.widget ul li a:hover {
  color: var(--primary-blue);
}

/* Forms */
form {
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.form-control {
  border: 2px solid var(--border-light);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(56, 184, 205, 0.25);
  background: var(--background-secondary);
}

/* Buttons */
.btn {
  border-radius: 0.5rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(56, 184, 205, 0.25);
}

/* Footer */
.site-footer {
  background: var(--background-secondary);
  border-top: 1px solid var(--border-light);
  padding: 2rem 0;
  margin-top: auto;
  color: var(--text-secondary);
}

/* Blockquotes */
blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  border-left: 4px solid var(--primary-blue);
  background: var(--background-secondary);
  border-radius: 0.75rem;
  font-style: italic;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

blockquote p {
  margin-bottom: 0;
}

/* Code */
code {
  background: var(--background-accent);
  color: var(--accent-pink);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

pre {
  background: var(--background-accent);
  color: var(--text-primary);
  padding: 1.5rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  border: 1px solid var(--border-light);
  font-size: 0.875rem;
  font-family: 'Courier New', monospace;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Tables */
.table {
  background: white;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.table th {
  background: var(--background-secondary);
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Montserrat', sans-serif;
  border-bottom: 2px solid var(--border-light);
}

.table td {
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

/* Navigation for posts */
.post-navigation, .comments-navigation {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--background-secondary);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.nav-previous, .nav-next {
  flex: 1;
}

.nav-previous a, .nav-next a {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  font-family: 'Montserrat', sans-serif;
}

.nav-previous a:hover, .nav-next a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.nav-next a {
  text-align: right;
  margin-left: auto;
}

.nav-previous a::before {
  content: '«';
  margin-right: 0.5rem;
}

.nav-next a::after {
  content: '»';
  margin-left: 0.5rem;
}

/* Pagination */
.pagination {
  margin: 2rem 0;
}

.page-link {
  color: var(--primary-blue);
  border: 1px solid var(--border-light);
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

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

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

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

.screen-reader-text:focus {
  background-color: var(--background-accent);
  border-radius: 0.375rem;
  box-shadow: var(--shadow-md);
  clip: auto !important;
  clip-path: none;
  color: var(--primary-blue);
  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;
}

/* Responsive Design */
@media (max-width: 767.98px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .entry-header {
    padding: 1.5rem 1.5rem 1rem;
  }
  
  .entry-content, .page-content, .entry-summary {
    padding: 1.5rem;
  }
  
  .comments-area {
    padding: 1.5rem;
  }
  
  .widget {
    padding: 1rem;
  }
  
  .post-thumbnail img {
    height: 200px;
  }
  
  .site-branding {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .entry-title {
    font-size: 1.5rem;
  }
  
  .entry-header {
    padding: 1rem;
  }
  
  .entry-content, .page-content, .entry-summary {
    padding: 1rem;
  }
  
  .comments-area {
    padding: 1rem;
  }
  
  .widget {
    padding: 1rem;
  }
  
  .comment {
    padding: 1rem;
  }
  
  .post-thumbnail img {
    height: 150px;
  }
  
  .entry-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-previous, .nav-next {
    text-align: center;
  }
  
  .nav-next a {
    margin-left: 0;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #E1E8ED;
    --text-secondary: #AAB8C2;
    --text-light: #657786;
    --background-primary: #192734;
    --background-secondary: #253341;
    --background-accent: #38444D;
    --border-light: #38444D;
    --border-medium: #657786;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);
  }

  .site-header {
    background: rgba(25, 39, 52, 0.95);
  }

  .navbar {
    background: rgba(25, 39, 52, 0.95);
  }

  .form-control {
    background: var(--background-primary);
    color: var(--text-primary);
    border-color: var(--border-light);
  }

  code {
    background: var(--background-accent);
    color: var(--accent-pink);
  }

  pre {
    background: var(--background-accent);
    color: var(--text-primary);
  }

  .table {
    background: var(--background-primary);
  }

  .table th {
    background: var(--background-secondary);
    color: var(--text-primary);
  }
}

/* Print Styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .site-header,
  .site-footer,
  .main-navigation,
  .comments-area,
  .widget {
    display: none !important;
  }

  main {
    padding: 0 !important;
  }

  .post,
  .page {
    box-shadow: none !important;
    border: none !important;
    margin-bottom: 2rem !important;
  }

  .entry-title {
    color: black !important;
    background: none !important;
    -webkit-text-fill-color: black !important;
  }

  a {
    color: black !important;
    text-decoration: underline !important;
  }

  a[href]:after {
    content: '';
  }

  .entry-meta {
    color: black !important;
  }
}

/* Entry Footer - Professional Design */
.entry-footer-wrapper {
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-light);
  background: var(--background-secondary);
  border-radius: 0 0 0.5rem 0.5rem;
}

.entry-footer-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.entry-footer-section {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-radius: 0.5rem;
  background: var(--background-primary);
  transition: all 0.3s ease;
}

.entry-footer-section:hover {
  background: var(--background-accent);
  transform: translateY(-2px);
}

.entry-footer-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  white-space: nowrap;
  min-width: 80px;
}

.entry-footer-content {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-primary);
  flex: 1;
}

.cat-links,
.tags-links {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cat-links:hover,
.tags-links:hover {
  background: var(--gradient-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.comments-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background: rgba(56, 178, 255, 0.1);
  transition: all 0.3s ease;
}

.comments-link:hover {
  background: rgba(56, 178, 255, 0.2);
  transform: translateY(-1px);
}

.entry-footer-edit {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background: var(--background-accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

.entry-footer-edit:hover {
  background: var(--gradient-accent);
  color: white;
  transform: translateY(-1px);
}

/* Modern Minimal Entry Footer */
.entry-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background-color: var(--background-primary);
  border-radius: 0 0 1rem 1rem;
}

.footer-categories,
.footer-tags,
.footer-comments,
.footer-edit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--background-secondary);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.footer-categories:hover,
.footer-tags:hover,
.footer-comments:hover,
.footer-edit:hover {
  background: var(--background-accent);
  transform: translateY(-2px);
}

.footer-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  min-width: 60px;
  white-space: nowrap;
}

.footer-content {
  color: var(--text-primary);
  font-weight: 500;
}

.footer-content a {
  color: var(--primary-blue);
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  background: rgba(56, 178, 255, 0.1);
  transition: all 0.3s ease;
}

.footer-content a:hover {
  background: rgba(56, 178, 255, 0.2);
  transform: translateY(-1px);
}

/* Responsive Entry Footer */
@media (max-width: 768px) {
  .entry-footer {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-categories,
  .footer-tags,
  .footer-comments,
  .footer-edit {
    padding: 0.75rem 1rem;
  }
  
  .footer-label {
    min-width: auto;
    margin-bottom: 0.5rem;
  }
}
