/* Logo Styles */

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.navbar-brand {
    margin-left: 2.8rem;
}

.navbar-brand:hover {
    opacity: 0.8;
}

/* Navbar Styles */
.container-fluid {
    justify-content: center !important;
}

.navbar {
    background-color: #141414;
    background-image: linear-gradient(180deg, #1a1a1a 0%, #131313 100%);
    border-radius: 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border: 1px solid rgba(220, 20, 60, 0.18);
    box-shadow:
        0 6px 28px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(220, 20, 60, 0.05) inset;
    /* No overflow:hidden here - it would clip dropdown menus */
}

.navbar::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(220, 20, 60, 0.5) 20%,
        #ff1f4d 50%,
        rgba(220, 20, 60, 0.5) 80%,
        transparent 100%);
    pointer-events: none;
    border-radius: 2px;
}

/* Navigation Links */
.navbar-nav {
    align-items: center;
}

.navbar .nav-link {
    font-size: 1.1rem;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
  }
  
  .navbar .nav-link:hover {
    transform: translateY(-3px);
  }
  
  .navbar .nav-link::before {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: -2px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff1f4d, transparent);
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.7);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    border-radius: 2px;
  }

  .navbar .nav-link:hover::before {
    transform: scaleX(1);
  }

  .navbar .nav-link:hover {
    color: #ff8a8a !important;
    text-shadow: 0 0 8px rgba(220, 20, 60, 0.5);
  }

.navbar .nav-link-static {
    cursor: default;
    pointer-events: none;
}

.navbar .nav-link-static:hover {
    transform: none;
}

.navbar .nav-link-static:hover::before {
    transform: scaleY(0);
}

/* Make .btn-group act like a nav item so it integrates with the navbar */
.navbar .btn-group {
    align-items: center;
}

.navbar .btn.btn-danger {
    background-color: transparent;
    border-color: transparent;
    box-shadow: none;
}

.navbar .btn.btn-danger:hover,
.navbar .btn.btn-danger:focus,
.navbar .btn.btn-danger.show {
    border-color: rgba(220, 20, 60, 0.5);
    background-color: rgba(220, 20, 60, 0.15);
    box-shadow: 0 0 12px rgba(220, 20, 60, 0.35);
}

.navbar .btn-group button {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 300;
    text-transform: lowercase;
    border: 1px solid transparent;
    border-radius: 5px;
    margin: 0 0.25rem;
    transition: all 0.25s ease;
    background-color: transparent;
}

/* Dropdown Styles */
.dropdown-toggle::after {
    margin-left: 0.5rem;
    border-top-color: #ff8a8a;
    transition: transform 0.25s ease, border-top-color 0.25s ease;
}

.dropdown-toggle.show::after,
.btn-group.show .dropdown-toggle::after {
    transform: rotate(-180deg);
    border-top-color: #ff1f4d;
}

.dropdown-menu {
    background-color: #141414;
    background-image: linear-gradient(180deg, #1a1a1a 0%, #131313 100%);
    border: 1px solid rgba(220, 20, 60, 0.35);
    border-radius: 8px;
    margin-top: 0.6rem !important;
    padding: 0.4rem;
    min-width: 12rem;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.55),
        0 0 18px rgba(220, 20, 60, 0.18),
        0 0 0 1px rgba(220, 20, 60, 0.08) inset;
    position: relative;
    overflow: hidden;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff1f4d, transparent);
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.55);
    pointer-events: none;
    border-radius: 2px;
}

.dropdown-item {
    color: #f5f5f5;
    padding: 0.55rem 1.25rem !important;
    font-weight: 400;
    font-size: 1rem;
    border: 1px solid transparent;
    border-radius: 5px;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
    position: relative;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #ff8a8a !important;
    border: 1px solid rgba(220, 20, 60, 0.55);
    background-color: rgba(220, 20, 60, 0.12);
    padding-left: 1.5rem !important;
    text-shadow: 0 0 6px rgba(220, 20, 60, 0.45);
}

.dropdown-item:active {
    color: #fff !important;
    background-color: rgba(220, 20, 60, 0.35);
    border-color: #ff1f4d;
}

/* Mobile Toggle Button */
.navbar-toggler {
    border-color: #dc143c;
    padding: 0.5rem 0.75rem;
    background-color: rgba(220, 20, 60, 0.1);
    margin-right: 5rem;
}

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

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 20, 60, 0.25);
}

/* Welcome Container */

.welcome-container {
    padding: 1.25rem 1.5rem;
    position: relative;
}

.welcome-container::before {
    content: "";
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 0;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, transparent, #ff1f4d, transparent);
    box-shadow: 0 0 14px rgba(220, 20, 60, 0.65);
}

.welcome-container h1 {
    font-size: 3.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 0.4rem;
    background: linear-gradient(90deg, #ffffff 0%, #ff8a8a 45%, #ff1f4d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.05;
    filter: drop-shadow(0 4px 18px rgba(220, 20, 60, 0.35));
}

.welcome-container .lead {
    font-size: 1.15rem;
    font-weight: 300;
    color: #fff;
    letter-spacing: 0.01em;
}

.welcome-container .lead::first-letter {
    color: var(--dc-red-soft);
}

.actuality-box {
    padding: 0.65rem 0.85rem;
    background-color: var(--dc-surface, #212529);
    border-radius: 10px;
    min-height: 0;
    border: 1px solid rgba(220, 20, 60, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    position: relative;
    overflow: hidden;
}

.actuality-box-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

@media (min-width: 992px) {
    .actuality-box {
        margin-top: 1.25rem;
    }
}

.actuality-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--dc-red, #dc143c) 30%, var(--dc-red-strong, #ff1f4d) 50%, var(--dc-red, #dc143c) 70%, transparent 100%);
    opacity: 0.85;
    pointer-events: none;
}

.openig-time {
    width: 100%;
    margin: 0;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-color: #9af5a5;
    border-radius: 8px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.openig-time--open {
    background-color: #9af5a5;
    box-shadow: 0 0 16px rgba(154, 245, 165, 0.35);
}

.openig-time--closed {
    background-color: #f5a5a5;
    box-shadow: 0 0 16px rgba(220, 20, 60, 0.3);
}

.opening-label {
    color: rgba(0, 0, 0, 0.65);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.opening-status,
.openig-time p {
    color: #0f4d1a;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.openig-time--closed .opening-status,
.openig-time--closed #opening-time {
    color: #8b0000;
}

.actuality-feed-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.55rem;
}

.actuality-feed-label {
    color: var(--dc-red-soft, #f26e6e);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.actuality-feed {
    max-height: 130px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(220, 20, 60, 0.55) rgba(255, 255, 255, 0.06);
}

.actuality-feed::-webkit-scrollbar {
    width: 6px;
}

.actuality-feed::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.actuality-feed::-webkit-scrollbar-thumb {
    background: rgba(220, 20, 60, 0.55);
    border-radius: 999px;
}

.actuality-feed-item {
    display: grid;
    grid-template-columns: 3.25rem 1fr;
    gap: 0.5rem;
    align-items: start;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    animation: actualityFeedIn 0.25s ease;
}

.actuality-feed-item:last-child {
    border-bottom: none;
}

.actuality-feed-time {
    color: var(--dc-red-soft, #f26e6e);
    font-size: 0.8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.actuality-feed-text {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    line-height: 1.35;
    word-break: break-word;
    padding-left: 0.75rem;
}

.actuality-feed-empty {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}

@keyframes actualityFeedIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Text Container Styles */
.text-container p {
    padding-right: 1.5rem;
}

/* Home page specific accents */
.home-welcome-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    position: relative;
    padding-bottom: 0.7rem;
}

.home-welcome-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, #ff1f4d, transparent);
    border-radius: 3px;
    box-shadow: 0 0 14px rgba(220, 20, 60, 0.45);
}

.home-welcome-accent {
    background: linear-gradient(90deg, #ff8a8a 0%, #ff1f4d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-section-title {
    position: relative;
    padding-bottom: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.home-section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff1f4d, transparent);
    border-radius: 3px;
    box-shadow: 0 0 14px rgba(220, 20, 60, 0.45);
}

.home-section-title a {
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.home-section-title a:hover {
    color: #ff8a8a !important;
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.55);
}

/* Generic h1 page title gets a subtle red flair too (used in cenik, kontakt, etc.) */
.container > h1,
.container.my-5 > h1 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.6rem;
}

.container > h1::after,
.container.my-5 > h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, #ff1f4d, transparent);
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(220, 20, 60, 0.18);
}

/* 
Mobile Styles
0px to 767px
 */
@media (max-width: 767px) {

    /* Navbar Mobile Styles */
    .navbar {
        padding: 1rem;
        margin: 0.5rem;
        position: relative;
    }

    .navbar-brand {
        margin-right: none;
        margin-left: 1rem;
    }

    .navbar-toggler {
        margin-right: 1rem;
    }

    .navbar-collapse {
        background-color: rgba(20, 20, 20, 0.98);
        background-image: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, rgba(19, 19, 19, 0.98) 100%);
        padding: 0.75rem;
        margin-top: 1rem;
        border: 1px solid rgba(220, 20, 60, 0.35);
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 18px rgba(220, 20, 60, 0.12);
    }

    .navbar-nav {
        align-items: stretch;
        width: 100%;
        gap: 0.25rem;
    }

    .nav-item {
        width: 100%;
        margin: 0;
    }

    .navbar .nav-link {
        padding: 0.75rem 1rem !important;
        width: 100%;
        margin: 0 !important;
        border-radius: 6px;
    }

    .navbar .nav-link:hover {
        transform: none;
        background-color: rgba(220, 20, 60, 0.10);
    }

    /* Disable the underline animation on mobile - it adds clutter to stacked links */
    .navbar .nav-link::before {
        display: none;
    }

    /* Stretch the "nav-link + split-button" rows full width; submenu on its own row */
    .navbar .navbar-nav-split.btn-group {
        width: 100%;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
        flex-wrap: unset;
    }

    .navbar .navbar-nav-split.btn-group > .nav-link,
    .navbar .navbar-nav-split.btn-group > .nav-link-static {
        flex: unset;
        text-align: left;
        min-width: 0;
        width: auto;
        max-width: 100%;
        grid-column: 1;
    }

    .navbar .navbar-nav-split.btn-group > .btn.btn-danger {
        flex: unset;
        min-width: 3rem;
        font-size: 1rem;
        margin: 0;
        grid-column: 2;
        align-self: stretch;
        justify-self: end;
    }

    /* Dropdown spans full width below the header row */
    .navbar-collapse .navbar-nav-split.btn-group > .dropdown-menu {
        grid-column: 1 / -1;
        flex: unset;
        max-width: 100%;
    }

    /* On mobile the dropdown is inside the collapsed menu - stack it inline */
    .navbar-collapse .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        background-color: rgba(220, 20, 60, 0.06);
        background-image: none;
        border: 1px solid rgba(220, 20, 60, 0.35);
        border-left: 3px solid #ff1f4d;
        border-radius: 6px;
        margin: 0.35rem 0 0.25rem 0 !important;
        padding: 0.35rem;
        box-shadow: none;
        transform: none !important;
    }

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

    .dropdown-item {
        padding: 0.5rem 0.85rem !important;
        font-size: 0.95rem;
    }

    .dropdown-item:hover {
        padding-left: 1.1rem !important;
    }

    .welcome-container h1 {
        text-align: center;
        font-size: 2.6rem;
    }

    .welcome-container::before {
        display: none;
    }

    .welcome-container .lead {
        text-align: center;
        font-size: 1rem;
    }

    .actuality-box {
        min-height: auto;
        margin-top: 0;
    }

    .openig-time {
        padding: 0.4rem 0.65rem;
    }

    .opening-status,
    .openig-time p {
        font-size: 1.05rem;
    }
}

/* 
Tablet Styles
768px to 991px
 */
@media (min-width: 768px) and (max-width: 991px) {
    .navbar {
        padding: 1.5rem;
    }
}


/* Dropdown open animation (desktop only - mobile keeps menu inline & static) */
@media (min-width: 768px) {
    .dropdown-menu.show {
        animation: dcDropdownIn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    @keyframes dcDropdownIn {
        from {
            opacity: 0;
            transform: translateY(-8px) scale(0.98);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
}

/* 
Desktop Styles
992px to 1199px
 */
@media (min-width: 992px) and (max-width: 1199px) {
    .container-fluid {
        justify-content: space-between !important;
        flex-direction: column;
    }

    .navbar {
        margin: 2rem;
    }

    .navbar-nav {
        gap: 0.5rem;
    }
}

/* Large Desktop Styles
1200px and above
 */
@media (min-width: 1200px) {

    .navbar-brand {
        margin-left: 3.8rem;
    }

    .fluid-container {
        flex-direction: none;
    }

    .nav-link {
        padding: 0.5rem 1.5rem !important;
        font-size: 1.3rem;
    }
}