/* pd4pm-menu.css */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hoofdnavigatie Menubalk*/
.pd4pm-nav {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.9), rgba(51, 51, 51, 1));
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    height: 70px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Favicon */
.pd4pm-favicon-container {
    position: absolute;
    left: 20px;
    top: 10px;
    
}

.pd4pm-favicon-container img {
    height: 48px;
    width: 48px;
}

/* Tijd */
.pd4pm-time-display {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: Arial, sans-serif;
    font-size: 20px;
    color: white;
    display: none;
}

/* Hamburger */
.pd4pm-hamburger {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.pd4pm-hamburger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: 0.4s;
}

.pd4pm-hamburger.active .pd4pm-hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.pd4pm-hamburger.active .pd4pm-hamburger-line:nth-child(2) {
    opacity: 0;
}

.pd4pm-hamburger.active .pd4pm-hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hoofdmenu */
.pd4pm-main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    height: 100%;
}

.pd4pm-main-menu > li {
    position: relative;
    height: 100%;
}

/* Als je het pijltje via CSS wilt doen */
.pd4pm-main-menu > li > span::after {
    content: ' ▾';
    display: inline-block;
    margin-left: 4px;
}

.pd4pm-main-menu > li > span {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 15px;
    color: white;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 16px;
    user-select: none;
}

.pd4pm-main-menu > li > span:hover {
    background-color: #575757;
}

/* Dropdown */
.pd4pm-dropdown {
	
	text-align: center;
    display: none;
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.9), rgba(51, 51, 51, 1));
    min-width: 180px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 4px;
}

.pd4pm-dropdown li:has(> .pd4pm-submenu) > a.pd4pm-dropdown-item::after {
    content: '▸';
    position: absolute;
    right: 10px;
}



.pd4pm-main-menu > li:hover > .pd4pm-dropdown {
    display: block;
}

/* Dropdown items */
.pd4pm-dropdown > li {
    position: relative;
}

/* Submenu */
.pd4pm-submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.9), rgba(51, 51, 51, 1));
    min-width: 180px;
    box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-left: -2px;
}

.pd4pm-dropdown > li:hover > .pd4pm-submenu {
    display: block;
}

/* Menu items styling */
.pd4pm-dropdown li a,
.pd4pm-dropdown li span,
.pd4pm-submenu li a {
    display: block;
    padding: 8px 1px;
    color: white;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
    white-space: nowrap;
	user-select: none; /* Voorkomt tekstselectie */
}

.pd4pm-dropdown li a:hover,
.pd4pm-dropdown li span:hover,
.pd4pm-submenu li a:hover {
    background-color: #575757;
}

/* Items met submenu pijltje */
.pd4pm-dropdown li:has(> .pd4pm-submenu) > span {
    padding-right: 25px;
    position: relative;
}

.pd4pm-dropdown li:has(> .pd4pm-submenu) > span::after {
    content: '▸';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Scheidingslijnen */
.pd4pm-dropdown hr,
.pd4pm-submenu hr {
    margin: 5px 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Menu verborgen status */
.pd4pm-nav.menu-hidden .pd4pm-main-menu {
    display: none;
}

.pd4pm-nav.menu-hidden .pd4pm-time-display,
.pd4pm-nav.menu-hidden .pd4pm-favicon-container {
    display: flex;
}

/* Stream styling */
#streamStatus {
    cursor: pointer;
    padding: 8px 15px;
    color: white;
    display: block;
    font-family: Arial, sans-serif;
    font-size: 14px;
}
.pd4pm-time-display {
    user-select: none; /* Voorkomt dat de tekst van de klok selecteerbaar is */
	font-size: 34px;
}

@media (max-width: 768px) {
    .pd4pm-main-menu {
        gap: 5px; /* Pas aan naar wens */
    }

    .pd4pm-main-menu > li > span {
        padding: 0 5px; /* Verklein padding binnen de menu-items */
    }
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid white;
    margin-left: 8px;
    font-size: 12px;
    font-style: italic;
    color: white;
    cursor: pointer;
    vertical-align: middle;
    text-align: center;
    padding-bottom: 1px;
}