/*
 * Stopy v srdci v2.0 – stories.css
 * Zdroj: inline <style> z stories.php a story.php
 */

/* =====================================================================
 * STORIES – inline styles z stories.php
 * ===================================================================== */

  /* Základní styly */
  .container p, 
  .container li {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.03em;
  }
  
  /* Styly pro Font Awesome ikony */
  .fa-icon {
    margin-right: 5px;
    width: 1em;
    text-align: center;
  }
  
  /* Odsazení pouze pro desktop */
  @media (min-width: 768px) {
    .container .card-body {
      padding: 35px 40px !important;
    }
    
    .container .card-header {
      padding: 25px 40px !important;
    }
  }
  
  @media (max-width: 768px) {
    .container p, 
    .container li {
      font-size: 1.05rem;
    }
  }
  
  /* Styly pro stránku příběhů */
  .stories-section {
    margin-bottom: 2.5rem;
  }
  
  .stories-section:last-child {
    margin-bottom: 0;
  }
  
  .section-title {
    font-size: 1.6rem;
    font-family: 'Patrick Hand', cursive;
    color: var(--primary-color, #b08968);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color, #b08968);
  }
  
  /* Filtrovací sekce */
  .stories-filter {
    background-color: #f8f9fa;
    border-radius: var(--border-radius-medium, 8px);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-small, 0 2px 5px rgba(0, 0, 0, 0.1));
  }
  
  .filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
  }
  
  .filter-search {
    flex: 1 1 300px;
    min-width: 250px;
  }
  
  .filter-category {
    flex: 0 0 200px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .filter-input,
  .filter-select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--secondary-color, #bcbcbc);
    border-radius: var(--border-radius-medium, 8px);
    font-family: 'Patrick Hand', cursive;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
  }
  
  .filter-input:focus,
  .filter-select:focus {
    outline: none;
    border-color: var(--primary-color, #b08968);
    box-shadow: 0 0 0 3px var(--primary-light, rgba(176, 137, 104, 0.1));
  }
  
  .filter-clear {
    background-color: var(--primary-color, #b08968);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-medium, 8px);
    font-family: 'Patrick Hand', cursive;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 0 auto;
  }
  
  .filter-clear:hover {
    background-color: var(--primary-hover, #96735a);
    transform: translateY(-2px);
  }
  
  /* Ikona pro select */
  .category-icon {
    color: var(--primary-color, #b08968) !important;
    font-size: 1.3rem !important;
    min-width: 24px !important;
    transition: all 0.3s ease;
    display: block !important;
    flex-shrink: 0;
    z-index: 10;
  }
  
  .filter-category-wrapper {
    flex: 1;
    position: relative;
  }
  
  @media (max-width: 768px) {
    .filter-controls {
      flex-direction: column;
    }
    
    .filter-search,
    .filter-category,
    .filter-clear {
      flex: 1 1 100%;
      width: 100%;
    }
    
    .filter-category {
      justify-content: flex-start;
    }
  }
  
  /* Kontejner pro příběhy */
  .stories-container {
    margin: 2rem 0;
  }
  
  /* Jednotlivý příběh */
  .story-item {
    background-color: #fff;
    border-radius: var(--border-radius-large, 12px);
    box-shadow: var(--shadow-medium, 0 4px 10px rgba(0, 0, 0, 0.15));
    margin-bottom: 2.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color, #b08968);
  }
  
  .story-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large, 0 6px 15px rgba(0, 0, 0, 0.2));
  }
  
  /* Zvýrazněné příběhy */
  .story-item.featured {
    border-left: 4px solid #ffd700;
    background: linear-gradient(145deg, #fffef7, #ffffff);
  }
  
  .story-item.featured::before {
    content: "";
    display: block;
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  
  .featured-crown {
    color: #ffd700;
    font-size: 16px;
    margin-right: 5px;
  }
  
  .featured-crown-badge {
    color: #ffd700;
    font-size: 1.2rem;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
  }
  
  .featured-crown-badge:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
  }
  
  /* Meta informace - datum a kategorie */
  .story-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
  }
  
  .story-date {
    color: var(--text-secondary, #555);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .story-category {
    background-color: var(--primary-color, #b08968);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: var(--border-radius-medium, 8px);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  /* Nadpis příběhu */
  .story-title {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.8rem;
    color: var(--primary-color, #b08968);
    margin-bottom: 1.5rem;
    line-height: 1.3;
  }
  
  /* Layout obsahu - obrázek + text */
  .story-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
  }
  
  .story-layout.image-right {
    flex-direction: row-reverse;
  }
  
  .story-image {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .story-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-medium, 8px);
    box-shadow: var(--shadow-small, 0 2px 5px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
  }
  
  .story-image img:hover {
    transform: scale(1.02);
  }
  
  .story-text {
    flex: 1;
  }
  
  .story-text p {
    margin-bottom: 1rem;
    text-align: justify;
  }
  
  .story-text p:last-child {
    margin-bottom: 0;
  }
  
  /* Dodatečné obrázky - ve stejném sloupci jako hlavní fotka */
  .story-image .story-additional-images .additional-images-container {
    margin: 0;
    padding: 0;
    border-top: 2px solid var(--primary-color, #b08968);
    padding-top: 1rem;
  }
  
  .story-image .story-additional-images .additional-images-title {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.1rem;
    color: var(--primary-color, #b08968);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .story-image .story-additional-images .additional-image-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius-medium, 8px);
    overflow: hidden;
    box-shadow: var(--shadow-small, 0 2px 5px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
  }
  
  .story-image .story-additional-images .additional-image-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium, 0 4px 10px rgba(0, 0, 0, 0.15));
  }
  
  .story-image .story-additional-images .additional-image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
  }
  
  .story-image .story-additional-images .additional-image-item img:hover {
    transform: scale(1.02);
  }
  
  .story-image .story-additional-images .image-caption {
    padding: 0.8rem;
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color, #b08968);
    font-style: italic;
    color: #555;
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  /* Rozbalovací funkcionalita pro dlouhé texty */
  .story-text-container {
    position: relative;
  }
  
  .story-text-content {
    transition: max-height 0.3s ease;
  }
  
  .story-text-content.collapsed {
    max-height: 120px;
    overflow: hidden;
    position: relative;
  }
  
  .story-text-content.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, white);
  }
  
  .story-expand-btn {
    background-color: var(--primary-color, #b08968);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-medium, 8px);
    font-family: 'Patrick Hand', cursive;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  
  .story-expand-btn:hover {
    background-color: var(--primary-hover, #96735a);
    transform: translateY(-2px);
  }
  
  /* Tlačítka akce */
  .story-actions {
    margin-top: 1.5rem;
    text-align: left;
  }
  
  .story-btn {
    display: inline-block;
    background-color: var(--primary-color, #b08968);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius-medium, 8px);
    text-decoration: none;
    font-family: 'Patrick Hand', cursive;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .story-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large, 0 6px 15px rgba(0, 0, 0, 0.2));
    color: white;
    text-decoration: none;
  }
  
  /* Responzivní úpravy */
  @media (max-width: 768px) {
    .story-layout,
    .story-layout.image-right {
      flex-direction: column;
    }
    
    .story-image {
      flex: 1 1 100%;
      margin-bottom: 1rem;
      max-width: 100%;
    }
    
    .story-text {
      flex: 1 1 100%;
    }
    
    .story-title {
      font-size: 1.5rem;
    }
    
    .story-item {
      padding: 1.5rem;
    }
    
    /* Mobilní úpravy pro dodatečné obrázky */
    .story-image .story-additional-images .additional-images-title {
      font-size: 1rem;
    }
    
    .story-image .story-additional-images .image-caption {
      padding: 0.6rem;
      font-size: 0.8rem;
    }
  }
  
  /* Prázdný stav při filtrování */
  .no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary, #555);
    display: none;
  }
  
  .no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
  }
  
  .no-results-text {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .no-results-suggestion {
    font-size: 1rem;
    opacity: 0.8;
  }
  
  /* Skrývání příběhů při filtrování */
  .story-item.hidden {
    display: none;
  }
  
  /* Highlight pro vyhledávání */
  .highlight {
    background-color: yellow;
    padding: 1px 3px;
    border-radius: 2px;
  }
  
  /* LIGHTBOX STYLY - stejné jako předtím */
  .story-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .story-lightbox.active {
    display: flex;
    opacity: 1;
  }
  
  .lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    pointer-events: none;
  }
  
  .lightbox-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    pointer-events: auto;
  }
  
  .lightbox-caption {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    max-width: 600px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
    pointer-events: auto;
  }
  
  .lightbox-caption:empty {
    display: none;
  }
  
  .lightbox-close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
    pointer-events: auto;
    font-weight: bold;
  }
  
  .lightbox-close:hover {
    background: white;
    transform: scale(1.1);
    color: #000;
  }
  
  .lightbox-close:before {
    content: "✕";
    font-size: 20px;
    line-height: 1;
  }
  
  .lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    pointer-events: auto;
    font-weight: bold;
  }
  
  .lightbox-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
  }
  
  .lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
  }
  
  .lightbox-nav:disabled:hover {
    transform: translateY(-50%);
  }
  
  .lightbox-prev {
    left: 30px;
  }
  
  .lightbox-prev:before {
    content: "‹";
    font-size: 30px;
    line-height: 1;
  }
  
  .lightbox-next {
    right: 30px;
  }
  
  .lightbox-next:before {
    content: "›";
    font-size: 30px;
    line-height: 1;
  }
  
  .lightbox-counter {
    position: fixed;
    top: 30px;
    left: 30px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    z-index: 2001;
    pointer-events: auto;
  }
  
  .lightbox-indicators {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2001;
    pointer-events: auto;
  }
  
  .lightbox-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
  }
  
  .lightbox-indicator.active {
    background: white;
    transform: scale(1.3);
  }
  
  .lightbox-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
  }
  
  /* Responzivní úpravy pro lightbox */
  @media (max-width: 768px) {
    .lightbox-content {
      max-width: 95vw;
      max-height: 85vh;
    }
    
    .lightbox-image {
      max-height: 60vh;
    }
    
    .lightbox-nav {
      width: 50px;
      height: 50px;
      font-size: 20px;
    }
    
    .lightbox-prev {
      left: 15px;
    }
    
    .lightbox-next {
      right: 15px;
    }
    
    .lightbox-close {
      top: 15px;
      right: 15px;
      width: 45px;
      height: 45px;
      font-size: 20px;
    }
    
    .lightbox-counter {
      top: 15px;
      left: 15px;
      font-size: 14px;
      padding: 8px 12px;
    }
    
    .lightbox-caption {
      font-size: 0.9rem;
      padding: 0.8rem 1rem;
      margin-top: 0.8rem;
      margin-bottom: 60px;
    }
    
    .lightbox-indicators {
      bottom: 15px;
      gap: 8px;
    }
    
    .lightbox-indicator {
      width: 10px;
      height: 10px;
    }
  }
  
  /* SDÍLECÍ IKONY - stejný styl jako footer/header ale menší */
  .story-sharing-inline {
    display: inline-flex;
    gap: 8px;
    margin-left: 15px;
    align-items: center;
  }
  
  .share-icon-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(176, 137, 104, 0.1);
    color: var(--primary-color, #b08968);
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
  }
  
  .share-icon-small:hover {
    background-color: var(--primary-color, #b08968);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
  }
  
  .share-icon-small svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
  }
  
  /* Responzivní úpravy pro sdílecí ikony */
  @media (max-width: 768px) {
    .story-sharing-inline {
      margin-left: 10px;
      gap: 6px;
    }
    
    .share-icon-small {
      width: 28px;
      height: 28px;
    }
    
    .share-icon-small svg {
      width: 14px;
      height: 14px;
    }
  }
  
  @media (max-width: 480px) {
    .story-sharing-inline {
      margin-left: 8px;
      gap: 4px;
    }
    
    .share-icon-small {
      width: 26px;
      height: 26px;
    }
    
    .share-icon-small svg {
      width: 13px;
      height: 13px;
    }
  }

  /* ================================
     NOVÉ KOMPAKTNÍ STYLY PRO KOMENTÁŘE
     ================================ */

  /* Kompaktní lišta s tlačítkem */
  .comments-bar {
    margin-top: 1.5rem;
    padding: 0.8rem 0;
    border-top: 1px solid #e0e0e0;
  }
  
  .comments-toggle-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    transition: color 0.3s ease;
    font-family: inherit;
  }
  
  .comments-toggle-btn:hover {
    color: var(--primary-color, #b08968);
  }
  
  .comments-toggle-btn i {
    font-size: 1rem;
  }
  
  .comments-count {
    background: var(--primary-color, #b08968);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
  }
  
  /* Rozbalovací sekce komentářů */
  .comments-section {
    margin-top: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    animation: slideDown 0.3s ease;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      max-height: 0;
      padding-top: 0;
      padding-bottom: 0;
    }
    to {
      opacity: 1;
      max-height: 1000px;
      padding-top: 1.5rem;
      padding-bottom: 1.5rem;
    }
  }
  
  /* Kompaktní formulář */
  .comment-form-compact {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .form-row-compact {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
  }
  
  .name-input,
  .email-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: white;
  }
  
  .name-input:focus,
  .email-input:focus,
  .comment-textarea:focus {
    outline: none;
    border-color: var(--primary-color, #b08968);
    box-shadow: 0 0 0 2px rgba(176, 137, 104, 0.1);
  }
  
  .comment-input-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
  }
  
  .comment-textarea {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 40px;
    max-height: 120px;
    background: white;
    transition: border-color 0.3s ease;
  }
  
  .comment-submit-btn-compact {
    background: var(--primary-color, #b08968);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .comment-submit-btn-compact:hover:not(:disabled) {
    background: #96735a;
    transform: translateY(-1px);
  }
  
  .comment-submit-btn-compact:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
  }
  
  .character-count-compact {
    font-size: 0.75rem;
    color: #666;
    text-align: right;
    margin-top: 4px;
  }
  
  .character-count-compact.warning {
    color: #ffc107;
  }
  
  .character-count-compact.error {
    color: #dc3545;
  }
  
  /* Seznam komentářů */
  .comments-list {
    margin-top: 0;
  }
  
  .comment-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-left: 3px solid var(--primary-color, #b08968);
    transition: all 0.3s ease;
  }
  
  .comment-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }
  
  .comment-item.admin-comment {
    border-left-color: #28a745;
    background: linear-gradient(145deg, #f8fff8, #ffffff);
  }
  
  .comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .comment-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .comment-author {
    font-weight: 600;
    color: var(--primary-color, #b08968);
    font-size: 0.9rem;
  }
  
  .admin-badge {
    background: #28a745;
    color: white;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
  }
  
  .comment-date {
    color: #666;
    font-size: 0.8rem;
  }
  
  .comment-actions {
    display: flex;
    gap: 8px;
  }
  
  .comment-action-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 3px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 3px;
  }
  
  .comment-action-btn:hover {
    background: #f0f0f0;
    color: var(--primary-color, #b08968);
  }
  
  .comment-action-btn.report:hover {
    color: #dc3545;
  }
  
  .comment-content {
    line-height: 1.5;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.9rem;
  }
  
  .comment-content p {
    margin: 0 0 0.5rem 0;
  }
  
  .comment-content p:last-child {
    margin-bottom: 0;
  }
  
  /* Vnořené odpovědi */
  .comment-replies {
    margin-top: 0.8rem;
    padding-left: 1.5rem;
    border-left: 2px solid #e0e0e0;
  }
  
  .comment-replies .comment-item {
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: #fafafa;
    border-left: 2px solid #ddd;
    box-shadow: none;
  }
  
  .comment-replies .comment-item:last-child {
    margin-bottom: 0;
  }
  
  /* Inline formulář odpovědi */
  .reply-form-inline {
    display: none;
    margin-top: 0.8rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
  }
  
  .reply-form-inline.active {
    display: block;
    animation: slideDown 0.2s ease;
  }
  
  .reply-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
  }
  
  .reply-form-title {
    font-size: 0.85rem;
    color: var(--primary-color, #b08968);
    margin: 0;
    font-weight: 600;
  }
  
  .reply-form-close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
    transition: all 0.2s ease;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .reply-form-close:hover {
    background: #e0e0e0;
    color: #333;
  }
  
  .reply-inputs-row {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
  }
  
  .reply-name-input,
  .reply-email-input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    background: white;
  }
  
  .reply-content-row {
    display: flex;
    gap: 6px;
    align-items: flex-end;
  }
  
  .reply-textarea {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    resize: vertical;
    min-height: 32px;
    max-height: 80px;
    background: white;
  }
  
  .reply-submit-btn {
    background: var(--primary-color, #b08968);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    height: 32px;
    min-width: 60px;
    transition: background 0.3s ease;
  }
  
  .reply-submit-btn:hover:not(:disabled) {
    background: #96735a;
  }
  
  .reply-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
  }
  
  /* Loading states */
  .comments-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
  }
  
  .comments-loading i {
    font-size: 1.5rem;
    animation: spin 1s linear infinite;
    margin-bottom: 0.5rem;
    display: block;
  }
  
  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  
  .comments-error {
    background: #f8d7da;
    color: #721c24;
    padding: 0.8rem;
    border-radius: 6px;
    margin: 0.8rem 0;
    border: 1px solid #f5c6cb;
    font-size: 0.9rem;
  }
  
  .comments-success {
    background: #d4edda;
    color: #155724;
    padding: 0.8rem;
    border-radius: 6px;
    margin: 0.8rem 0;
    border: 1px solid #c3e6cb;
    font-size: 0.9rem;
  }
  
  /* Pagination */
  .comments-pagination {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
  }
  
  .pagination-btn {
    background: var(--primary-color, #b08968);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 4px;
  }
  
  .pagination-btn:hover:not(:disabled) {
    background: #96735a;
    transform: translateY(-1px);
  }
  
  .pagination-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
  }
  
  .pagination-info {
    color: #666;
    font-size: 0.85rem;
    margin: 0 12px;
  }
  
  /* Prázdný stav komentářů */
  .comments-empty {
    text-align: center;
    padding: 2rem;
    color: #666;
  }
  
  .comments-empty i {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    opacity: 0.5;
  }
  
  .comments-empty p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
  }
  
  /* Honeypot pole */
  .honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  
  /* Responzivní úpravy pro komentáře */
  @media (max-width: 768px) {
    .comments-section {
      padding: 1rem;
    }
    
    .form-row-compact {
      flex-direction: column;
      gap: 0.6rem;
    }
    
    .comment-input-row {
      flex-direction: column;
      gap: 0.6rem;
      align-items: stretch;
    }
    
    .comment-submit-btn-compact {
      height: 36px;
      align-self: flex-end;
      min-width: 80px;
    }
    
    .comment-item {
      padding: 0.8rem;
    }
    
    .comment-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
    }
    
    .comment-replies {
      padding-left: 1rem;
    }
    
    .reply-inputs-row {
      flex-direction: column;
      gap: 0.5rem;
    }
    
    .reply-content-row {
      flex-direction: column;
      gap: 0.5rem;
      align-items: stretch;
    }
    
    .reply-submit-btn {
      align-self: flex-end;
      min-width: 70px;
    }
    
    .pagination-btn {
      display: block;
      width: 100%;
      margin: 4px 0;
    }
    
    .pagination-info {
      margin: 0.8rem 0;
    }
  }


/* =====================================================================
 * STORY – inline styles z story.php
 * ===================================================================== */

  .container p, 
  .container li {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.03em;
  }
  
  /* Odsazení pouze pro desktop */
  @media (min-width: 768px) {
    .container .card-body {
      padding: 35px 40px !important;
    }
    
    .container .card-header {
      padding: 25px 40px !important;
    }
  }
  
  @media (max-width: 768px) {
    .container p, 
    .container li {
      font-size: 1.05rem;
    }
  }
  
  /* Styly pro detail příběhu */
  .story-detail {
    margin-bottom: 2rem;
  }
  
  .story-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
  }
  
  .story-date {
    color: var(--text-secondary, #555);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .story-category {
    background-color: var(--primary-color, #b08968);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: var(--border-radius-medium, 8px);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .featured-crown-badge {
    color: #ffd700;
    font-size: 1.2rem;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
  }
  
  .featured-crown-badge:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
  }
  
  /* Nadpis příběhu */
  .story-title {
    font-family: 'Patrick Hand', cursive;
    font-size: 2.2rem;
    color: var(--primary-color, #b08968);
    margin-bottom: 1.5rem;
    line-height: 1.3;
  }
  
  /* Layout obsahu - obrázek + text */
  .story-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
  }
  
  .story-layout.image-right {
    flex-direction: row-reverse;
  }
  
  .story-image {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .story-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-medium, 8px);
    box-shadow: var(--shadow-small, 0 2px 5px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
    cursor: pointer;
  }
  
  .story-image img:hover {
    transform: scale(1.02);
  }
  
  .story-text {
    flex: 1;
  }
  
  .story-text p {
    margin-bottom: 1rem;
    text-align: justify;
  }
  
  .story-text p:last-child {
    margin-bottom: 0;
  }
  
  /* Dodatečné obrázky ve stejném sloupci jako hlavní fotka */
  .story-image .additional-images-container {
    margin: 0;
    padding: 0;
    border-top: 2px solid var(--primary-color, #b08968);
    padding-top: 1rem;
  }
  
  .story-image .additional-images-title {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.1rem;
    color: var(--primary-color, #b08968);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .story-image .additional-image-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius-medium, 8px);
    overflow: hidden;
    box-shadow: var(--shadow-small, 0 2px 5px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
  }
  
  .story-image .additional-image-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium, 0 4px 10px rgba(0, 0, 0, 0.15));
  }
  
  .story-image .additional-image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
  }
  
  .story-image .additional-image-item img:hover {
    transform: scale(1.02);
  }
  
  .story-image .image-caption {
    padding: 0.8rem;
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color, #b08968);
    font-style: italic;
    color: #555;
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  /* SDÍLECÍ IKONY - stejný styl jako footer/header */
  .story-sharing {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
  }
  
  .sharing-title {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.2rem;
    color: var(--primary-color, #b08968);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .sharing-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }
  
  .share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(176, 137, 104, 0.1);
    color: var(--primary-color, #b08968);
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
  }
  
  .share-icon:hover {
    background-color: var(--primary-color, #b08968);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
  }
  
  .share-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
  }
  
  /* Navigace */
  .story-navigation {
    margin: 2rem 0;
    text-align: center;
  }
  
  .back-to-stories {
    display: inline-block;
    background-color: var(--primary-color, #b08968);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius-medium, 8px);
    text-decoration: none;
    font-family: 'Patrick Hand', cursive;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  
  .back-to-stories:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large, 0 6px 15px rgba(0, 0, 0, 0.2));
    color: white;
    text-decoration: none;
  }
  
  /* Responzivní úpravy */
  @media (max-width: 768px) {
    .story-layout,
    .story-layout.image-right {
      flex-direction: column;
    }
    
    .story-image {
      flex: 1 1 100%;
      margin-bottom: 1rem;
      max-width: 100%;
    }
    
    .story-text {
      flex: 1 1 100%;
    }
    
    .story-title {
      font-size: 1.8rem;
    }
    
    .story-image .additional-images-title {
      font-size: 1rem;
    }
    
    .story-image .image-caption {
      padding: 0.6rem;
      font-size: 0.8rem;
    }
    
    .sharing-icons {
      justify-content: center;
    }
  }
  
  /* LIGHTBOX STYLY - stejné jako stories.php */
  .story-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .story-lightbox.active {
    display: flex;
    opacity: 1;
  }
  
  .lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    pointer-events: none;
  }
  
  .lightbox-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    pointer-events: auto;
  }
  
  .lightbox-caption {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    max-width: 600px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
    pointer-events: auto;
  }
  
  .lightbox-caption:empty {
    display: none;
  }
  
  .lightbox-close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
    pointer-events: auto;
    font-weight: bold;
  }
  
  .lightbox-close:hover {
    background: white;
    transform: scale(1.1);
    color: #000;
  }
  
  .lightbox-close:before {
    content: "✕";
    font-size: 20px;
    line-height: 1;
  }
  
  .lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    pointer-events: auto;
    font-weight: bold;
  }
  
  .lightbox-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
  }
  
  .lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
  }
  
  .lightbox-nav:disabled:hover {
    transform: translateY(-50%);
  }
  
  .lightbox-prev {
    left: 30px;
  }
  
  .lightbox-prev:before {
    content: "‹";
    font-size: 30px;
    line-height: 1;
  }
  
  .lightbox-next {
    right: 30px;
  }
  
  .lightbox-next:before {
    content: "›";
    font-size: 30px;
    line-height: 1;
  }
  
  .lightbox-counter {
    position: fixed;
    top: 30px;
    left: 30px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    z-index: 2001;
    pointer-events: auto;
  }
  
  .lightbox-indicators {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2001;
    pointer-events: auto;
  }
  
  .lightbox-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
  }
  
  .lightbox-indicator.active {
    background: white;
    transform: scale(1.3);
  }
  
  .lightbox-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
  }
  
  /* Responzivní úpravy pro lightbox */
  @media (max-width: 768px) {
    .lightbox-content {
      max-width: 95vw;
      max-height: 85vh;
    }
    
    .lightbox-image {
      max-height: 60vh;
    }
    
    .lightbox-nav {
      width: 50px;
      height: 50px;
      font-size: 20px;
    }
    
    .lightbox-prev {
      left: 15px;
    }
    
    .lightbox-next {
      right: 15px;
    }
    
    .lightbox-close {
      top: 15px;
      right: 15px;
      width: 45px;
      height: 45px;
      font-size: 20px;
    }
    
    .lightbox-counter {
      top: 15px;
      left: 15px;
      font-size: 14px;
      padding: 8px 12px;
    }
    
    .lightbox-caption {
      font-size: 0.9rem;
      padding: 0.8rem 1rem;
      margin-top: 0.8rem;
      margin-bottom: 60px;
    }
    
    .lightbox-indicators {
      bottom: 15px;
      gap: 8px;
    }
    
    .lightbox-indicator {
      width: 10px;
      height: 10px;
    }
    
    .share-icon {
      width: 40px;
      height: 40px;
    }
    
    .share-icon svg {
      width: 20px;
      height: 20px;
    }
  }
  
  /* Extra malé obrazovky */
  @media (max-width: 480px) {
    .lightbox-image {
      max-height: 50vh;
    }
    
    .lightbox-nav {
      width: 40px;
      height: 40px;
      font-size: 18px;
    }
    
    .lightbox-close {
      width: 40px;
      height: 40px;
      font-size: 18px;
    }
  }

  /* ================================
     NOVÉ KOMPAKTNÍ STYLY PRO KOMENTÁŘE
     ================================ */

  /* Kompaktní lišta s tlačítkem */
  .comments-bar {
    margin-top: 1.5rem;
    padding: 0.8rem 0;
    border-top: 1px solid #e0e0e0;
  }
  
  .comments-toggle-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    transition: color 0.3s ease;
    font-family: inherit;
  }
  
  .comments-toggle-btn:hover {
    color: var(--primary-color, #b08968);
  }
  
  .comments-toggle-btn i {
    font-size: 1rem;
  }
  
  .comments-count {
    background: var(--primary-color, #b08968);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
  }
  
  /* Rozbalovací sekce komentářů */
  .comments-section {
    margin-top: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    animation: slideDown 0.3s ease;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      max-height: 0;
      padding-top: 0;
      padding-bottom: 0;
    }
    to {
      opacity: 1;
      max-height: 1000px;
      padding-top: 1.5rem;
      padding-bottom: 1.5rem;
    }
  }
  
  /* Kompaktní formulář */
  .comment-form-compact {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .form-row-compact {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
  }
  
  .name-input,
  .email-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: white;
  }
  
  .name-input:focus,
  .email-input:focus,
  .comment-textarea:focus {
    outline: none;
    border-color: var(--primary-color, #b08968);
    box-shadow: 0 0 0 2px rgba(176, 137, 104, 0.1);
  }
  
  .comment-input-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
  }
  
  .comment-textarea {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 40px;
    max-height: 120px;
    background: white;
    transition: border-color 0.3s ease;
  }
  
  .comment-submit-btn-compact {
    background: var(--primary-color, #b08968);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .comment-submit-btn-compact:hover:not(:disabled) {
    background: #96735a;
    transform: translateY(-1px);
  }
  
  .comment-submit-btn-compact:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
  }
  
  .character-count-compact {
    font-size: 0.75rem;
    color: #666;
    text-align: right;
    margin-top: 4px;
  }
  
  .character-count-compact.warning {
    color: #ffc107;
  }
  
  .character-count-compact.error {
    color: #dc3545;
  }
  
  /* Seznam komentářů */
  .comments-list {
    margin-top: 0;
  }
  
  .comment-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-left: 3px solid var(--primary-color, #b08968);
    transition: all 0.3s ease;
  }
  
  .comment-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }
  
  .comment-item.admin-comment {
    border-left-color: #28a745;
    background: linear-gradient(145deg, #f8fff8, #ffffff);
  }
  
  .comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .comment-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .comment-author {
    font-weight: 600;
    color: var(--primary-color, #b08968);
    font-size: 0.9rem;
  }
  
  .admin-badge {
    background: #28a745;
    color: white;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
  }
  
  .comment-date {
    color: #666;
    font-size: 0.8rem;
  }
  
  .comment-actions {
    display: flex;
    gap: 8px;
  }
  
  .comment-action-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 3px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 3px;
  }
  
  .comment-action-btn:hover {
    background: #f0f0f0;
    color: var(--primary-color, #b08968);
  }
  
  .comment-action-btn.report:hover {
    color: #dc3545;
  }
  
  .comment-content {
    line-height: 1.5;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.9rem;
  }
  
  .comment-content p {
    margin: 0 0 0.5rem 0;
  }
  
  .comment-content p:last-child {
    margin-bottom: 0;
  }
  
  /* Vnořené odpovědi */
  .comment-replies {
    margin-top: 0.8rem;
    padding-left: 1.5rem;
    border-left: 2px solid #e0e0e0;
  }
  
  .comment-replies .comment-item {
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: #fafafa;
    border-left: 2px solid #ddd;
    box-shadow: none;
  }
  
  .comment-replies .comment-item:last-child {
    margin-bottom: 0;
  }
  
  /* Inline formulář odpovědi */
  .reply-form-inline {
    display: none;
    margin-top: 0.8rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
  }
  
  .reply-form-inline.active {
    display: block;
    animation: slideDown 0.2s ease;
  }
  
  .reply-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
  }
  
  .reply-form-title {
    font-size: 0.85rem;
    color: var(--primary-color, #b08968);
    margin: 0;
    font-weight: 600;
  }
  
  .reply-form-close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
    transition: all 0.2s ease;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .reply-form-close:hover {
    background: #e0e0e0;
    color: #333;
  }
  
  .reply-inputs-row {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
  }
  
  .reply-name-input,
  .reply-email-input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    background: white;
  }
  
  .reply-content-row {
    display: flex;
    gap: 6px;
    align-items: flex-end;
  }
  
  .reply-textarea {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    resize: vertical;
    min-height: 32px;
    max-height: 80px;
    background: white;
  }
  
  .reply-submit-btn {
    background: var(--primary-color, #b08968);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    height: 32px;
    min-width: 60px;
    transition: background 0.3s ease;
  }
  
  .reply-submit-btn:hover:not(:disabled) {
    background: #96735a;
  }
  
  .reply-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
  }
  
  /* Loading states */
  .comments-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
  }
  
  .comments-loading i {
    font-size: 1.5rem;
    animation: spin 1s linear infinite;
    margin-bottom: 0.5rem;
    display: block;
  }
  
  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  
  .comments-error {
    background: #f8d7da;
    color: #721c24;
    padding: 0.8rem;
    border-radius: 6px;
    margin: 0.8rem 0;
    border: 1px solid #f5c6cb;
    font-size: 0.9rem;
  }
  
  .comments-success {
    background: #d4edda;
    color: #155724;
    padding: 0.8rem;
    border-radius: 6px;
    margin: 0.8rem 0;
    border: 1px solid #c3e6cb;
    font-size: 0.9rem;
  }
  
  /* Pagination */
  .comments-pagination {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
  }
  
  .pagination-btn {
    background: var(--primary-color, #b08968);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 4px;
  }
  
  .pagination-btn:hover:not(:disabled) {
    background: #96735a;
    transform: translateY(-1px);
  }
  
  .pagination-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
  }
  
  .pagination-info {
    color: #666;
    font-size: 0.85rem;
    margin: 0 12px;
  }
  
  /* Prázdný stav komentářů */
  .comments-empty {
    text-align: center;
    padding: 2rem;
    color: #666;
  }
  
  .comments-empty i {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    opacity: 0.5;
  }
  
  .comments-empty p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
  }
  
  /* Honeypot pole */
  .honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  
  /* Responzivní úpravy pro komentáře */
  @media (max-width: 768px) {
    .comments-section {
      padding: 1rem;
    }
    
    .form-row-compact {
      flex-direction: column;
      gap: 0.6rem;
    }
    
    .comment-input-row {
      flex-direction: column;
      gap: 0.6rem;
      align-items: stretch;
    }
    
    .comment-submit-btn-compact {
      height: 36px;
      align-self: flex-end;
      min-width: 80px;
    }
    
    .comment-item {
      padding: 0.8rem;
    }
    
    .comment-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
    }
    
    .comment-replies {
      padding-left: 1rem;
    }
    
    .reply-inputs-row {
      flex-direction: column;
      gap: 0.5rem;
    }
    
    .reply-content-row {
      flex-direction: column;
      gap: 0.5rem;
      align-items: stretch;
    }
    
    .reply-submit-btn {
      align-self: flex-end;
      min-width: 70px;
    }
    
    .pagination-btn {
      display: block;
      width: 100%;
      margin: 4px 0;
    }
    
    .pagination-info {
      margin: 0.8rem 0;
    }
  }
