/* Global layout */
body {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    padding: 8px;
}

.menu-button{
    position: fixed;
    top: 25px;
    right: 16px;
    z-index: 10000;
    border: none;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%; /* Guľatý tvar */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background-color: #4C50AF;
    color: white;
}

.menu-button svg {
    color: black; /* Čierna farba pre SVG ikonu */
}

.menu-button:hover {
    background-color: #f8f9fa;
    color: #4C50AF;
    border: solid 2px #4C50AF;
}

.scroll-top-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    border: none;
    outline: none;
    background-color: #4C50AF;
    color: white;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
}

.scroll-top-button.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-button:hover {
    background-color: #f8f9fa;
    color: #4C50AF;
    border: solid 2px #4C50AF;
}

/* Sidebar and Menu */
.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: white;
    padding: 1rem;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
}

.sidebar.active {
    right: 0;
}

.sidebar.active + #menuBtn,
body:has(.sidebar.active) #menuBtn {
    display: none;
}

.menu-close {
    cursor: pointer;
}

.menu-close:hover {
    opacity: 0.8;
}

.sidebar ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.sidebar ul li {
    margin-bottom: 0.2rem;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
    color: inherit;
}

.sidebar ul li a i {
    margin-right: 0.5rem;
}

.sidebar hr {
    margin: 0.2rem 0;
}

/* Language selector */
.language-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 1px7
    justify-content: flex-start;
    margin: 7px 0;
}

.lang-item {
    flex: 0 0 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    padding-left: 8px;
    padding-right: 0;
}

.lang-item:hover {
    background-color: #f0f0f0;
}

.lang-item.active {
    border: 1px solid #0d6efd;
    background-color: #f8f9fa;
}

.flag {
    width: 24px;
    height: 18px;
    display: block;
    object-fit: contain;
    margin: 0; 
    padding:0;
}

/* Main content layout */
.logo-container {
    margin-right: 10px;
}

.hdr-navi {
    margin: 10px 0;
}

.hdr-navi a {
    margin-right: 5px;
    margin-bottom: 5px;
}

/* Station grid */
.station-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: stretch;
}

@media screen and (min-width: 650px) {
    .station-box {
        flex: 1 1 calc(16.666% - 5px);
        min-width: 330px;
        max-width: 470px;
        margin-bottom: 0px;
        display: flex;
    }
    
    .station-box .my-accordion-hdr {
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .station-box .section-body {
        flex: 1;
        overflow-y: auto;
        max-height: 400px;
    }
}

/* Station box header */
.my-accordion-hdr > h2 {
    font-weight: bold; 
    margin: 0;
    padding: 0px 5px 0px 12px;
    border-radius: 8px 8px 0 0;
    border-bottom: #A9C096 1px solid;
    background-color: #e8ffdd;
    color: #193906;
    font-size: 20px;
    height: auto;
    min-height: 45px;
    display: flex;
    align-items: center;
}
.ad-section > h2 {
padding-bottom: 7px;
}
.my-accordion-hdr > h2,
.my-accordion-hdr > h2 > a {
    background-color: #c8dfad; 
    color: black;
}

.station-box {
    border-bottom: 1px solid #8a9;
    border-radius: 0 0 8px 8px;
    overflow-y: auto;
}

/* Section body */
.section-body {
    padding: 5px 6px 5px 12px;
    margin-bottom: 0;
    backdrop-filter: blur(9px);
    background-color: rgba(253, 255, 253, 0.8);
    border-left: 1px solid #8a9;
    border-right: 1px solid #8a9;
}

/* Program items */
.cc {
    font-size: 18px;
    display: flex;
    padding: 0;
    border: 0;
    width: 100%;
    align-items: center;
    flex-wrap: nowrap;
    line-height: 130%;
}

.cc:hover {
    background-color: #f5f5f5;
}

.cc .t {
    flex: 0 0 47px;
    font-weight: bold;
    white-space: nowrap;
    margin-right: 5px;
    min-width: 47px;
}

.cc .x {
    flex: 1;
    font-size: 17px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content boxes */
.content-box {
    margin-bottom: 20px;
}

.content-box-header {
    margin-bottom: 15px;
}

.content-box-body {
    padding: 10px;
}

/* Advertisement section */
.ad-section {
    width: 100%;
}

#ad-container {
    width: 92vw;
    height: 90px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Scrollbar styling */
.section-body::-webkit-scrollbar {
    width: 6px;
}

.section-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.section-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.section-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Utility classes */
.no-decoration {
    text-decoration: none;
    color: inherit;
}

/* Bootstrap overrides */
.accordion-button {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    color: inherit;
    background-color: #f8f9fa;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

.btn-navi {
    margin-right: 5px;
    margin-bottom: 5px;
    white-space: nowrap;
}

/* Button styles */
.btnRB {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 6px 10px 5px 10px;
    background-color: #a0d0fF;
    border: 1px solid #ccc;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
}

/* Custom button states */
.menu-button:focus,
.scroll-top-button:focus,
.btnRB:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

.btn-ad {
  max-height: 64px;
  padding: 8px 16px;
  font-size: 16px;
  border-radius: 8px;
  background-image: linear-gradient(to bottom right, #33CC33, #ffff00);
  font-weight: 600;
}
.bg-love {
  background-image: linear-gradient(to bottom right, #f55fd2, #fafac3);
}
.bg-orange {
  background-image: linear-gradient(to bottom right, orange, #fafac3);
}
