/**
 * Moduuli: 13-footer.css
 * Description: Sivuston alatunnisteen tyylit. Mobiilivalikko: Lasimainen ja keskitetty.
 * Version: 1.3
 */

#pre-footer-bar {
	background-color: #4c4c4c;
	min-height: 30px;
	position: relative;
	z-index: 100;
}

/* Työpöytänäkymän lista */
#pre-footer-bar .footer-navigation ul {
	display: flex;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0 10px;
	gap: 1.5rem;
	flex-wrap: wrap;
}

#pre-footer-bar .footer-navigation a {
	color: #ffffff;
	font-size: 0.8rem;
	text-transform: uppercase;
	white-space: nowrap;
	text-decoration: none;
}

/* Oletuksena piilotetaan mobiilielementit, näytetään responsive.css:ssä */
.footer-navigation.mobile-view {
	display: none;
}

.site-footer {
	background-color: #f1f1f1;
	padding: 2rem 0;
	margin-top: 0;
}

.site-info {
	text-align: center;
}

.footer-highlight {
	color: #024f91;
	font-weight: 800;
}

/* --- MOBIILINÄKYMÄN TYYLIT --- */

.footer-mobile-bar-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 1rem;
	width: 100%;
	height: 40px;
}

.footer-mobile-highlight {
	color: #fff;
	font-weight: 800;
	text-transform: uppercase;
	font-size: 0.9rem;
}

#footer-mobile-toggle {
	background: none;
	border: 2px solid rgba(255,255,255,0.2);
	border-radius: 4px;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.25rem 0.5rem;
	cursor: pointer;
	font-size: 0.8rem;
	text-transform: uppercase;
	font-weight: 700;
}

#footer-mobile-toggle.is-active {
	background-color: rgba(255,255,255,0.1);
	border-color: #fff;
}

/* UUSI: Lasimainen tausta ja keskitys */
.footer-mobile-drawer {
    /* Lasiefekti brändivärillä #024f91 */
	background-color: rgba(2, 79, 145, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px); /* Safari-tuki */

	border-top: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);

	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;

    /* Varmistetaan että tämä on muiden päällä */
    position: relative;
    z-index: 101;
}

.footer-mobile-drawer.is-open {
	max-height: 600px;
	opacity: 1;
}

.footer-mobile-drawer ul {
	list-style: none;
	margin: 0;
	padding: 2rem 1rem; /* Reilusti tilaa sormille */
	display: flex;
	flex-direction: column;
	align-items: center; /* Keskittää kohteet vaakasuunnassa */
	gap: 1.2rem; /* Väljät välit */
	text-align: center;
}

.footer-mobile-drawer li {
    width: 100%;
}

.footer-mobile-drawer a {
	color: #ffffff !important; /* Puhdas valkoinen */
	font-size: 1.1rem !important; /* Hieman isompi fontti */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
	display: block;
	padding: 0.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2); /* Pieni varjo luettavuuden parantamiseksi */
}

/* Poistetaan mahdolliset listamerkit ja sisennykset varmuuden vuoksi */
.footer-mobile-drawer ul li::before {
    display: none;
}
