/* Nekrolog Żegnamy Plugin Styles */

/* Container */
.nekrolog-zegnamy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Grid Layout */
.nekrolog-zegnamy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Card Styles */
.nekrolog-zegnamy-card {
    position: relative;
    background: linear-gradient(135deg, #0a0a07 0%, #0a0a07 100%);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-clip: padding-box;
    border-radius: 2px; /* możesz dostosować */
}

/* Gradientowy border – warstwa bazowa */
.nekrolog-zegnamy-card::before,
.nekrolog-zegnamy-card::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 5px;
    pointer-events: none;

    /* „wycinanie” środka, żeby została tylko ramka */
    -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Gradient bazowy */
.nekrolog-zegnamy-card::before {
    background: linear-gradient(135deg, #D4AF37 0%, #8C855E 50%, #B8860B 100%);
}

/* Gradient docelowy */
.nekrolog-zegnamy-card::after {
    background: linear-gradient(135deg, #6b500c 0%, #D4AF37 50%, #8B6914 100%);
    opacity: 0;
    transition: opacity 1s ease;
}

/* Hover – płynne przenikanie */
.nekrolog-zegnamy-card:hover::after {
    opacity: 1;
}
/* PNG Ribbon for Cards */
.obituary-ribbon {
    position: absolute;
    top: -5px;
    left: 0;
    width: 100px;
    height: 100px;
    z-index: 10;
    pointer-events: none;
}

.obituary-ribbon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}


/* Image Styles */
.obituary-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-width: 250px;
    margin: 0 auto;
}

.obituary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.obituary-placeholder {
    color: #ffffff;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.obituary-placeholder .placeholder-emblem {
    width: 80px;
    height: 80px;
    opacity: 0.8;
    object-fit: contain;
}

/* Content Styles */
.obituary-content {
    padding: 20px;
    text-align:center;
}


/* Content Styles */
.obituary-content p {
    margin-bottom: 0px !important;
}
.obituary-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 15px 0;
    line-height: 1.3;
}
.obituary-name h3{
color:#fff !important;
text-align: center;
  font-size: 25px !important;
  font-weight: 600 !important;
}


.obituary-dates {
    margin-bottom: 20px;
}

.obituary-date-range,
.obituary-death-date,
.obituary-age,
.obituary-funeral-date {
    font-size: 0.9rem;
    color: #ffffff;
    margin: 5px 0;
}

.obituary-funeral-date {
    font-weight: bold;
    color: #ffffff;
}

.obituary-link {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #000 0%, #2b2b2b 100%);
    color: linear-gradient(135deg, #D4AF37 0%, #8C855E 50%, #B8860B 100%);
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 1px; /* zaokrąglenie bordera */
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 0;
    overflow: hidden;
}

/* Gradientowy border – warstwa bazowa */
.obituary-link::before,
.obituary-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 3px; /* grubość obramowania */
    pointer-events: none;
    z-index: -1;

    /* maskowanie = border pusty w środku */
    -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Gradient bazowy */
.obituary-link::before {
    background: linear-gradient(135deg, #D4AF37 0%, #8C855E 50%, #B8860B 100%);
}

/* Gradient docelowy (hover) */
.obituary-link::after {
    background: linear-gradient(135deg, #B8860B 0%, #D4AF37 50%, #8B6914 100%);
    opacity: 0;
    transition: opacity 2s ease;
}

/* Hover – przenikanie */
.obituary-link:hover::after {
    opacity: 1;
}

/* List Layout */
.nekrolog-zegnamy-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nekrolog-zegnamy-item {
    display: flex;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid transparent;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
    position: relative;
    background-clip: padding-box;
}

.nekrolog-zegnamy-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 5px;
    padding: 2px;
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 50%, #B8860B 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

/* PNG Ribbon for List Items */
.obituary-item-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    z-index: 10;
    pointer-events: none;
}

.obituary-item-ribbon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
}

.nekrolog-zegnamy-item:hover::before {
    background: linear-gradient(135deg, #B8860B 0%, #D4AF37 50%, #8B6914 100%);
}

.obituary-item-image {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-right: 1px solid #dee2e6;
}

.obituary-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.obituary-item-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.obituary-item-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #212529;
    margin: 0 0 10px 0;
}

.obituary-item-dates {
    margin-bottom: 10px;
}

.obituary-item-date,
.obituary-item-age {
    font-size: 0.9rem;
    color: #6c757d;
    margin-right: 10px;
}

.obituary-item-funeral {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 10px;
}

.obituary-item-link {
    display: inline-block;
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    align-self: flex-start;
    border: 1px solid #495057;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.obituary-item-link:hover {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Pagination */
.nekrolog-zegnamy-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-prev,
.pagination-next,
.pagination-link {
    padding: 10px 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-prev:hover,
.pagination-next:hover,
.pagination-link:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #343a40;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pagination-current {
    padding: 10px 16px;
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #495057;
}

/* Empty State */
.nekrolog-zegnamy-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

/* Error State */
.nekrolog-zegnamy-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
}

/* Single Obituary Styles */
.nekrolog-zegnamy-single {
    max-width: 800px;
    background: #000;
    margin: 0 auto;
    padding: 20px;
}

.obituary-hero {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
}

/* PNG Ribbon for Hero Section */
.obituary-hero-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    z-index: 10;
    pointer-events: none;
}

.obituary-hero-ribbon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.3));
}

.obituary-hero-image {
    width: 200px;
    height: 200px;
    background: #e9ecef;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.obituary-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.obituary-hero-placeholder {
    color: #6c757d;
}

.obituary-hero-placeholder svg {
    width: 64px;
    height: 64px;
}

.obituary-hero-content {
    flex: 1;
}

.obituary-hero-title {
    font-size: 2rem;
    font-weight: bold;
    color: #212529;
    margin: 0 0 15px 0;
}

.obituary-hero-dates {
    color: #6c757d;
}

.obituary-hero-date-range,
.obituary-hero-death-date,
.obituary-hero-age {
    font-size: 1.1rem;
    margin: 5px 0;
}

/* Section Styles */
.obituary-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #000000;
    border-radius: 8px;
}

.obituary-section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #212529;
    margin: 0 0 20px 0;
    text-align: center;
}

/* Funeral Info */
.obituary-funeral-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.funeral-info-item {
    padding: 10px;
    background: rgb(0, 0, 0);
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.funeral-details {
    margin-top: 20px;
    padding: 15px;
    background: rgb(0, 0, 0) !important;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    text-align: center;
}

/* Personal Details */
.obituary-personal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.personal-detail-item {
    padding: 10px;
    background: white;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

/* Funeral Home */
.obituary-funeral-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.funeral-home-item {
    padding: 10px;
    background: white;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.funeral-home-item a {
    color: #007bff;
    text-decoration: none;
}

.funeral-home-item a:hover {
    text-decoration: underline;
}

/* Biography, Family Info, Special Requests */
.obituary-biography,
.obituary-family-info,
.obituary-special-requests {
    line-height: 1.6;
    color: #495057;
}

/* Back Link */
.obituary-back-link {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
}

.back-link {
    display: inline-block;
    padding: 12px 24px;
    background: #212529;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.ceremony-start-note span{font-size:12px;}

.back-link:hover {
    background: #343a40;
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nekrolog-zegnamy-grid {
        grid-template-columns: 1fr;
    }
    
    .nekrolog-zegnamy-item {
        flex-direction: column;
    }
    
    .obituary-item-image {
        width: 100%;
        height: 200px;
    }
    
    .obituary-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .obituary-hero-image {
        width: 150px;
        height: 150px;
    }
    
    .obituary-funeral-info,
    .obituary-personal-details,
    .obituary-funeral-home {
        grid-template-columns: 1fr;
    }
    
    /* Smaller ribbons on mobile */
    .obituary-ribbon {
        width: 80px;
        height: 80px;
    }
    
    .obituary-item-ribbon {
        width: 60px;
        height: 60px;
    }
    
    .obituary-hero-ribbon {
        width: 100px;
        height: 100px;
    }
}

/* Loading States */
.nekrolog-zegnamy-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.nekrolog-zegnamy-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Dynamiczne style z Laravel - podstawowe klasy */
/* Neutralizacja fade (wyłączony) */
.obituary-container { transition: none; }

.obituary-list-item {
    /* Style dla elementów listy nekrologów */
    transition: all 0.3s ease;
}

/* Style dla nagłówków nekrologów */
.obituary-container h1,
.obituary-container h2,
.obituary-container h3 {
    color:#fff;
}

/* Style dla informacji o pogrzebie i stopki nekrologu */
/* Style będą nadpisywane przez dynamiczne CSS z Laravel */

/* Fade-in wierszami */
.fade-row-hidden { opacity: 1; }

.fade-row-shown { opacity: 1; }

/* Domyślne ukrycie na starcie, zanim JS odsłoni rzędy */
.nekrolog-zegnamy-container.fade-active .obituary-container { opacity: 1; }

/* Gdy element ma stan pokazany, nadpisz ukrywanie z kontenera */
.nekrolog-zegnamy-container.fade-active .obituary-container.fade-row-shown { opacity: 1; }

/* Style dla funkcji wyszukiwania */
.nekrolog-zegnamy-search {
    position: relative;
    margin-bottom: 40px;
    padding: 15px;
    background: #000;
    border-radius: 6px; /* lekko większe zaokrąglenie, możesz zmienić */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 0; /* ważne dla pseudo-elementów */
    overflow: hidden;
  }
  
  /* Gradientowa ramka */
  .nekrolog-zegnamy-search::before,
  .nekrolog-zegnamy-search::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 5px; /* grubość obramowania */
    pointer-events: none;
    z-index: -1;
  
    /* maskowanie: zostawia tylko ramkę */
    -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    mask-composite: exclude;
  }
  
  /* Gradient bazowy */
  .nekrolog-zegnamy-search::before {
    background: linear-gradient(135deg, #D4AF37 0%, #8C855E 50%, #B8860B 100%);
  }
  
  /* Gradient na hover (z efektem przejścia) */
  .nekrolog-zegnamy-search::after {
    background: linear-gradient(135deg, #B8860B 0%, #D4AF37 50%, #8B6914 100%);
    opacity: 0;
    transition: opacity 2s ease;
  }
  
  .nekrolog-zegnamy-search:hover::after {
    opacity: 1;
  }



.search-container {
    display: flex;
    gap: 0;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#obituary-search-input{border-radius: 0 !important;}

.search-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 0;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.search-input:focus {
    outline: none;
    background: #f8f9fa;
    box-shadow: none;
}

.search-button {
    padding: 16px 24px;
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.search-button:hover {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    transform: translateY(-1px);
}

.search-button svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
}

.search-results-info {
    margin-top: 15px;
    text-align: center;
    padding: 10px;
    background: #e9ecef;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.search-results-count {
    font-weight: 500;
    color: #495057;
}

.clear-search-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.clear-search-btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Responsywność dla wyszukiwania */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-input {
        width: 100%;
    }
    
    .search-button {
        width: 100%;
        padding: 14px 16px;
    }
    
    .search-results-info {
        flex-direction: column;
        gap: 10px;
    }
    #obituary-search-input{padding:20px;}
    #obituary-search-btn{display: none;}
} 

/* Style dla nowego szablonu nekrologu - w stylu kart */

.nekrolog-zegnamy-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
    color: #ffffff;
    background: #000 !important;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    background-clip: padding-box;
    border-radius: 2px;
}

/* Gradientowy border – warstwa bazowa */
.nekrolog-zegnamy-single::before,
.nekrolog-zegnamy-single::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 5px;
    pointer-events: none;
    border-radius: inherit;

    /* „wycinanie" środka, żeby została tylko ramka */
    -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Gradient bazowy */
.nekrolog-zegnamy-single::before {
    background: linear-gradient(135deg, #D4AF37 0%, #8C855E 50%, #B8860B 100%);
}

/* Gradient docelowy */
.nekrolog-zegnamy-single::after {
    background: linear-gradient(135deg, #6b500c 0%, #D4AF37 50%, #8B6914 100%);
    opacity: 0;
    transition: opacity 1s ease;
}

/* Hover – płynne przenikanie */
.nekrolog-zegnamy-single:hover::after {
    opacity: 1;
}

/* Ornamenty */
.nekrolog-ornament-top,
.nekrolog-ornament-center,
.nekrolog-ornament-bottom {
    text-align: center;
    font-size: 1.5rem;
    color: #D4AF37;
    margin: 30px 0;
    letter-spacing: 15px;
}

.nekrolog-ornament-center {
    font-size: 2rem;
    margin: 20px 0;
    letter-spacing: 0;
}

/* Główny tytuł nekrologu */
.nekrolog-main-title {
    text-align: center;
    margin-bottom: 30px;
}

.nekrolog-main-title h1 {
    font-size: 2.5rem;
    color: #ffffff !important;
    margin: 0;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Daty i wiek */
.nekrolog-dates {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.date-range, .death-date {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 500;
}

.age {
    font-size: 1.1rem;
    color: #D4AF37;
    font-style: italic;
    margin-top: 10px;
}

/* Ornamenty */
.nekrolog-ornament {
    text-align: center;
    font-size: 2rem;
    color: #8b4513;
    margin: 30px 0;
}

/* Informacje o pogrzebie */
.funeral-details {
    background: linear-gradient(135deg, #0a0a07 0%, #0a0a07 100%);
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
}

/* Gradientowy border dla sekcji pogrzebu */
.funeral-details::before,
.funeral-details::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 3px;
    pointer-events: none;
    border-radius: inherit;

    -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.funeral-details::before {
    background: linear-gradient(135deg, #D4AF37 0%, #8C855E 50%, #B8860B 100%);
}

.funeral-details::after {
    background: linear-gradient(135deg, #6b500c 0%, #D4AF37 50%, #8B6914 100%);
    opacity: 0;
    transition: opacity 1s ease;
}

.funeral-details:hover::after {
    opacity: 1;
}

.funeral-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0 0 25px 0;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #D4AF37;
    padding-bottom: 15px;
    text-transform: none !important;
}

.funeral-details > div {
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #D4AF37;
}

.funeral-details > div:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.funeral-details .label {
    color: #D4AF37;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.funeral-details .value {
    color: #ffffff;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 10px;
}

.place-info {
    margin: 10px 0;
}

.place-link {
    color: #D4AF37;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    align-self: flex-start;
}

.place-link:hover {
    color: #FFD700;
    text-decoration: none;
}

/* Widoczna etykieta informująca o Google Maps */
.gmaps-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border: 1px solid currentColor;
    border-radius: 9999px;
    line-height: 1.2;
    color: currentColor;
    text-decoration: none;
    display: inline-block;
    align-self: center; /* wyśrodkowanie przycisku względem kolumny */
}

/* Delikatna złota poświata dla nazwy miejsca */
.place-title {
    color: #ffffff;
    transition: text-shadow 0.25s ease, color 0.25s ease;
}

.place-link:hover .place-title {
    color: #FFD700;
    text-shadow: 0 0 6px rgba(212, 175, 55, 0.9), 0 0 14px rgba(212, 175, 55, 0.8), 0 0 24px rgba(212, 175, 55, 0.7);
    font-weight: 700;
}

.place-link:hover .gmaps-badge {
    text-decoration: none;
}

.place-name {
    color: #ffffff;
    font-weight: 600;
}

.place-address {
    color: #D4AF37;
    font-size: 0.95rem;
    margin-top: 8px;
    font-style: italic;
}

/* Sekcje dodatkowe */
.biography-section,
.family-section,
.requests-section {
    margin: 40px 0;
    text-align: left;
}

.section-title {
    font-size: 1.4rem;
    color: #ffffff;
    margin: 0 0 20px 0;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #D4AF37;
    padding-bottom: 15px;
    text-transform: none !important;
}

.biography-content,
.family-content,
.requests-content {
    background: linear-gradient(135deg, #0a0a07 0%, #0a0a07 100%);
    border-radius: 8px;
    padding: 25px;
    line-height: 1.7;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
    text-align: center;
}

/* Gradientowy border dla sekcji dodatkowych */
.biography-content::before,
.biography-content::after,
.family-content::before,
.family-content::after,
.requests-content::before,
.requests-content::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 3px;
    pointer-events: none;
    border-radius: inherit;

    -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.biography-content::before,
.family-content::before,
.requests-content::before {
    background: linear-gradient(135deg, #D4AF37 0%, #8C855E 50%, #B8860B 100%);
}

.biography-content::after,
.family-content::after,
.requests-content::after {
    background: linear-gradient(135deg, #6b500c 0%, #D4AF37 50%, #8B6914 100%);
    opacity: 0;
    transition: opacity 1s ease;
}

.biography-content:hover::after,
.family-content:hover::after,
.requests-content:hover::after {
    opacity: 1;
}

/* Sekcja kwiatów */
.flowers-section {
    background: linear-gradient(135deg, #0a0a07 0%, #0a0a07 100%);
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
}

/* Gradientowy border dla sekcji kwiatów */
.flowers-section::before,
.flowers-section::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 3px;
    pointer-events: none;
    border-radius: inherit;

    -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.flowers-section::before {
    background: linear-gradient(135deg, #D4AF37 0%, #8C855E 50%, #B8860B 100%);
}

.flowers-section::after {
    background: linear-gradient(135deg, #6b500c 0%, #D4AF37 50%, #8B6914 100%);
    opacity: 0;
    transition: opacity 1s ease;
}

.flowers-section:hover::after {
    opacity: 1;
}

.flowers-section .section-title {
    color: #ffffff;
    margin-bottom: 25px;
}

.flowers-contact,
.flowers-online {
    margin: 15px 0;
}

.flowers-section .label {
    color: #D4AF37;
    font-weight: 700;
    margin-right: 10px;
}

.contact-link {
    color: #D4AF37;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
    font-size: 1.5rem;
}

.contact-link:hover {
    color: #FFD700;
    text-decoration: underline;
}

/* Stopka */
.nekrolog-footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px 0;
    border-top: 2px solid #D4AF37;
    color: #D4AF37;
}

.nekrolog-footer p {
    margin: 0;
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 500;
}

/* Błędy */
.nekrolog-error {
    text-align: center;
    padding: 40px;
    color: #ff6b6b;
    background: linear-gradient(135deg, #0a0a07 0%, #0a0a07 100%);
    border-radius: 8px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
}

.nekrolog-error::before,
.nekrolog-error::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 3px;
    pointer-events: none;
    border-radius: inherit;

    -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.nekrolog-error::before {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 50%, #ff5252 100%);
}

.nekrolog-error h2 {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Sekcja udostępniania */
.share-section {
    background: linear-gradient(135deg, #0a0a07 0%, #0a0a07 100%);
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
}

/* Gradientowy border dla sekcji udostępniania */
.share-section::before,
.share-section::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 3px;
    pointer-events: none;
    border-radius: inherit;

    -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.share-section::before {
    background: linear-gradient(135deg, #D4AF37 0%, #8C855E 50%, #B8860B 100%);
}

.share-section::after {
    background: linear-gradient(135deg, #6b500c 0%, #D4AF37 50%, #8B6914 100%);
    opacity: 0;
    transition: opacity 1s ease;
}

.share-section:hover::after {
    opacity: 1;
}

.share-section .section-title {
    color: #ffffff;
    margin-bottom: 25px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
}

/* Gradientowy border dla przycisków udostępniania */
.share-button::before,
.share-button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    pointer-events: none;
    z-index: -1;

    -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.share-button::before {
    background: linear-gradient(135deg, #D4AF37 0%, #8C855E 50%, #B8860B 100%);
}

.share-button::after {
    background: linear-gradient(135deg, #6b500c 0%, #D4AF37 50%, #8B6914 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-button:hover::after {
    opacity: 1;
}

.share-button svg {
    width: 20px;
    height: 20px;
}

.share-facebook {
    background: linear-gradient(135deg, #0a0a07 0%, #0a0a07 100%);
}

.share-facebook:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.share-twitter {
    background: linear-gradient(135deg, #0a0a07 0%, #0a0a07 100%);
}

.share-twitter:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.share-whatsapp {
    background: linear-gradient(135deg, #0a0a07 0%, #0a0a07 100%);
}

.share-whatsapp:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.share-email {
    background: linear-gradient(135deg, #0a0a07 0%, #0a0a07 100%);
}

.share-email:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsywność */
@media (max-width: 768px) {
    .nekrolog-zegnamy-single {
        padding: 20px 15px;
    }
    
    .nekrolog-main-title h1 {
        font-size: 2rem;
    }
    
    .nekrolog-ornament-top,
    .nekrolog-ornament-bottom {
        letter-spacing: 10px;
        font-size: 1.2rem;
    }
    
    .funeral-details, 
    .flowers-section,
    .biography-section,
    .family-section,
    .requests-section,
    .share-section {
        padding: 20px;
        margin: 30px 0;
    }

    .requests-section h2, .funeral-details h2{text-transform: none !important;}
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-button {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nekrolog-main-title h1 {
        font-size: 1.8rem;
    }
    
    .nekrolog-ornament-top,
    .nekrolog-ornament-bottom {
        letter-spacing: 5px;
        font-size: 1rem;
    }
    
    .funeral-details, 
    .flowers-section,
    .biography-section,
    .family-section,
    .requests-section {
        padding: 15px;
        margin: 25px 0;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
} 

.nekrolog-zegnamy-card.obituary-container {
    position: relative;
    transition: box-shadow 2s ease, filter 2s ease;
  }
  
  /* Tylko poświata na zewnątrz – ciemne złoto w czerń */
  .nekrolog-zegnamy-card.obituary-container:hover {
    box-shadow:
      0 0 30px 12px rgba(110, 90, 30, 0.18),  /* bardzo przygaszone złoto */
      0 0 30px 28px rgba(0, 0, 0, 0.25);      /* głębsze przejście w czerń */
    filter: brightness(1.01); /* lekkie rozjaśnienie treści */
  }
  
  /* Ikona (krzyż) – spokojne powiększenie + lekkie rozjaśnienie */
  .obituary-image img {
    transition: transform 0.8s ease, filter 1.2s ease;
    transform-origin: center;
  }
  .nekrolog-zegnamy-card.obituary-container:hover .obituary-image img {
    transform: scale(1.05);
    filter: brightness(1.06);
  }
  