/* Used colors
bílá: 			#F8F9FA
světle zelená:	#d8f0d8
tmavá zelená:	#328c32
černá:			#212121
šedivá:			#828282
Světle šedivá: 	#ebebeb
světle růžová:	#fce1f2
*/


/* Styl pro vyskakovací okno s informací o cookies */
#cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 0px;
  right: 0px;
  background: #fff;
  padding: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 2000;
  display: none;
  text-align: center;
}
#cookie-popup button {
    background-color: transparent;
    border: none;
    border-radius: 0;
    font-size: 16px;
	font-weight: 100;
    cursor: pointer;
}
#cookie-popup button:hover {
	color: #328c32;
}



body {
    margin: 0;
    padding: 0;
    position: relative;
    font-family: 'Raleway', sans-serif;
    background-color: #ebebeb; 
    color: #212121;
}

.container {
	top: 0;
	left: 0;
    width: 100vw;
	max-width: 100vw;
    display: flex;
	position: absolute;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.content-container {
    width: 100%;
	max-width: 1150px;
	padding: 130px 0 0 0;
	overflow-wrap: break-word;
	box-sizing: border-box;
	position: relative;
    text-align: center;
	z-index: 1;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1150px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.header h4 {
	margin: 0;
	padding: 5px 0 0 45px;
	overflow-wrap: break-word;
	box-sizing: border-box;
	position: relative;
    text-align: left;
	font-size: 16px;
	text-transform: uppercase;
}

.header p {
	margin: 0;
	padding: 5px 25px 0 0;
	overflow-wrap: break-word;
	box-sizing: border-box;
	position: relative;
    text-align: right;
}

.login-container {
    position: relative;
    margin: 50vh auto 0;
    transform: translateY(-50%);
    width: 400px;
    /*margin: 100px auto;*/
	padding: 50px;
    text-align: center;
	box-sizing: border-box;
	background: #F8F9FA;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.recipe-container {
	position: relative;
    width: 100%;
    margin: 40px auto 0;
	padding: 50px;
    text-align: center;
	background: #F8F9FA;
	box-sizing: border-box;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.login-container .logo {
    width: 250px;
    margin-bottom: 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

.login-form input,
.login-form textarea,
.login-form select,
.search-container input {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #828282;
    background: #F8F9FA;
    border-radius: 0;
    font-size: 16px;
    font-weight: 200;
    color: #212121;
    transition: border 0.3s ease;
}

.login-form input:focus,
.login-form textarea:focus,
.login-form select:focus,
.search-container input:focus {
    border: 2px solid #328c32;
    outline: none;
}
.login-form input::placeholder,
.login-form textarea::placeholder,
.search-container input::placeholder {
    font-size: 16px;
    font-weight: 200;
    color: #212121;
}

.login-form button,
.search-container button {
    padding: 10px;
    background-color: #828282;
    border: none;
    border-radius: 0;
    font-size: 16px;
	font-weight: 100;
    cursor: pointer;
	color: #F8F9FA;
	transition: background-color 0.3s ease;
}

.login-form button:hover,
.search-container button:hover {
    background-color: #328c32;
}


.rename-form {
    display: grid; 
	place-items: center; 
	width: 100%;
}

.rename-form input,
.rename-form textarea,
.rename-form select {
    padding: 5px;
    margin: 0;
    border: 0;
	text-align: center;
    background: transparent;
    font-size: 24px;
	font-weight: 300;
    color: #212121;
    transition: color 0.3s ease;
}

.rename-form input:focus,
.rename-form textarea:focus,
.rename-form select:focus {
	color: #328c32;
    outline: none;
}
.rename-form input::placeholder,
.rename-form textarea::placeholder {
	text-align: center;
    background: transparent;
    font-size: 24px;
	font-weight: 300;
    color: #212121;
}

.rename-form button {
    padding: 0;
	margin: 0;
	text-align: center;
    background: transparent;
    border: none;
    font-size: 16px;
	font-weight: 100;
    cursor: pointer;
    text-decoration: none; /* Odstraní podtržení */
    color: inherit; /* Použije výchozí barvu textu */
    outline: none; /* Odstraní obrys při kliknutí */
	transition: color 0.15s ease-in-out;
}

.rename-form button:hover {
    color: #328c32;
}



.no-desktop {
	display: none;
}


.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: #F8F9FA;
    color: #212121;
    border: 1px solid #828282;
    text-decoration: none;
}
.pagination a.active,
.pagination a:hover {
    background: #328c32;
    color: #F8F9FA;
    border-color: #328c32;
}



#file-input {
  display: none; /* Skrytí původního inputu */
}

.error {
    color: red;
    margin: 10px 0 10px 0;
}

.success {
    color: #328c32;
    margin: 10px 0 10px 0;
}

.category-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 10px 0;
}
.category-item {
    padding: 5px 10px;
    border: 1px solid #828282;
    background: #F8F9FA;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.category-item.selected {
    background: #328c32;
    color: #F8F9FA;
    border-color: #328c32;
}
.category-item:hover {
	background: #828282;
	color: #F8F9FA;
    border-color: #828282;
}
.category-checkbox {
    display: none;
}
/* Styl pro vyhledávací input a tlačítko */
.search-container {
    margin: 10px 0;
    text-align: center;
}

.logout-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #828282;
    color: #F8F9FA;
    text-decoration: none;
    border-radius: 0;
}

.logout-button:hover {
    background-color: #328c32;
}


/*Šipky u názvu receptu na přepínání mezi recepty v recipe_viewer */
.arrow {
    font-size: 2em;
    color: #212121;
    text-decoration: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2em;
}

.left-arrow {
    left: 0;
	text-align: left;
}

.right-arrow {
    right: 0;
	text-align: right;
}

.arrow:hover {
    color: #328c32;
}
/* Styl pro tooltip */
.arrow::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 120%;  /* Umístění nad šipkou – případně upravte dle potřeby */
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
	font-size: 14px;
	font-weight: 200;
}

/* Při hoveru se tooltip objeví s prodlevou 2 sekundy */
.arrow:hover::after {
    transition-delay: 0.5s;
    opacity: 1;
}

.left-arrow::after {
	left: 80%;
	transform: translateX(-80%);
}

.right-arrow::after {
	left: -20%;
	transform: translateX(20%);
}

.plan-details {
	margin-top: 30px;
}



/* PLANS EDIT MODAL */
.modal {
    display: none; 
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background-color: #F8F9FA;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #828282;
    width: 80%;
    max-width: 600px;
    text-align: left;
	box-sizing: border-box;
}
.day-block {
    border: 1px solid #828282;
    padding: 10px;
    margin: 10px 0;
    text-align: left;
	width: 100%;
	box-sizing: border-box;
}
.meal-input {
    margin-bottom: 5px;
	width: 100%;
}
#recipeResults .selected {
    background-color: #328c32 !important;
    color: #F8F9FA !important;
}



/* Styl pro tabulku uživatelů */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 12px;
    text-align: left;
    background: #F8F9FA;
}
.admin-table th, .admin-table td {
    padding: 3px 5px;
    border: 0;
}
.admin-table th {
    background-color: #828282; 
    color: #F8F9FA;
    text-transform: uppercase;
}
.admin-table tr {
	color: #212121;
}
.admin-table tr:nth-child(even) {
    background-color: #ebebeb;
}
/*.admin-table tr:hover {
    background-color: #328c32;
    color: #F8F9FA;
}*/



/* Styl pro zobrazování receptu */
.recipe-container2 {
	position: relative;
    width: 100%;
    margin: 50px auto 0;
	padding: 20px 50px 50px 50px;
    text-align: center;
	background: #F8F9FA;
	box-sizing: border-box;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.recipe-action {
	width: 100%;
    position: relative;
    display: flex;
    align-items: left;
    justify-content: left;
    margin-bottom: 15px;
	gap: 20px;
}
.recipe-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
	text-align: center;
    margin-bottom: 30px;
}
.recipe-header h2 {
    margin: 0;
    text-transform: uppercase;
	padding: 0 40px 0 40px;
}
.back-button {
    position: absolute;
    right: 0;
    background-color: #828282;
    color: #F8F9FA;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0;
    transition: background-color 0.3s ease;
}
.back-button:hover {
    background-color: #328c32;
}
/* Popis receptu */
.recipe-description {
    text-align: left;
}
.recipe-details {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: nowrap; /* Na desktopu nechceme zabalovat */
}
.recipe-image {
    flex: 1 1 calc(60% - 10px);
    width: 100%;
    height: 450px; /* nebo jiná požadovaná výška */
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	display: block;
}

.recipe-image2 {
    margin: 20px auto;
    text-align: center;
    width: 100%;
	max-width: 600px;
	height: 200px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.recipe-image2 img {
	display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.recipe-materials {
    flex: 1 1 calc(40% - 10px);
	height: 450px;
    overflow-y: auto;     /* zobrazí vertikální scrollbar, pokud je obsah vyšší */
    overflow-x: hidden;   /* skryje horizontální scrollbar */
    text-align: left;
	position: relative;
}

/* Řádek s workflow */
.recipe-workflow {
    margin-top: 25px;
    text-align: left;
}
/* Další informace */
.recipe-extra {
    margin-top: 20px;
    text-align: left;
}
.recipe-extra p {
    margin: 5px 0;
}





/* Styl pro menu */
.menu {
	display: flex; /* Pro zobrazení inline prvku */
    position: fixed;
	flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
	box-sizing: border-box; /* Zajistí, že padding neroztáhne element */
    top: 0;
    left: 0;
	padding: 5px 5px 0px 5px;
    width: 100%; /* Zabírá celou šířku rodiče */
    max-width: 100%; /* Zabrání roztažení */
	/*background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 95%);*/
	transition: background 0.5s ease, box-shadow 0.5s ease;
	gap: 0;
	z-index: 20;
}

.menu .logo {
    width: 180px;
}

.menu.scrolled {
  background: #F8F9FA;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), inset 0 14px 20px rgba(0, 0, 0, 0.2);
}

.menu a {
    font-size: 18px;
    font-weight: 600;
	padding: 0px 5px 25px 0px;
    text-transform: uppercase;
	text-decoration: none; /* Odstranění výchozího podtržení */
	color: inherit; /* Barva stejná jako text rodiče */
	border-bottom: 3px solid transparent;
	transition: border-bottom-color 0.15s ease-in-out;
}

.menu a:hover {
    border-bottom: 3px solid currentColor; /* Podtržení stejné barvy jako text */
}

.menu-header {
    width: 30%; /* Pevná šířka 30% */
	min-width: 100px;
	padding-left: 5%;
	display: flex;
    text-align: left;
    justify-content: left;
    align-items: left;
	flex-direction: column;
}

.menu-content {
    width: 50%; /* Pevná šířka 50% */
	min-width: 720px;
    display: flex;
    flex-direction: row;
	text-align: left;
    gap: 20px;
}

.menu-header p {
	line-height: 1.2;
}

.menu-toggle {
    display: none; /* Skryté na desktopu */
    font-size: 32px;
    cursor: pointer;
    padding: 10px;
    color: #212121;
}



/* Styl pro dlaždice s recepty /*

        /* Kontejner dlaždic */
        .tiles-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
			margin-top: 20px;
        }
        /* Jedna dlaždice */
        .tile {
            position: relative;
            width: 350px;
            height: 270px;
            background-size: cover;
            background-position: center;
            overflow: hidden;
            text-decoration: none;
            color: white;
			box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), inset 0 0px 40px rgba(120, 120, 120, 0.99);
			transition: transform 0.3s ease-in-out;
        }
        /* Overlay pro lehké ztmavení obrázku */
        .tile-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /*background: rgba(120, 120, 120, 0);*/
			background: linear-gradient(to bottom, rgba(20, 20, 20, 0.90) 0%, rgba(20, 20, 20, 0) 50%);
        }
        .tile:hover /*.tile-overlay*/ {
			transform: scale(1.1);
			z-index: 1000;
            /*background: rgba(120, 120, 120, 0.20);*/
        }
        /* Název receptu nahoře */
        .tile h5 {
            position: relative;
			width: 90%;
		    left: 50%;
		    transform: translateX(-50%);
            margin-top: 15px;
			text-transform: uppercase;
            /* background: rgba(0, 0, 0, 0.5); */
        }
        .tile h6 {
            position: relative;
			width: 90%;
		    left: 50%;
		    transform: translateX(-50%);
            margin-top: 5px;
            /* background: rgba(0, 0, 0, 0.5); */
        }
        /* Kategorie ve spodní části */
        .tile p {
			font-size: 10px;
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            margin: 0;
            padding: 5px 10px;
			width: 80%;
            background: rgba(0, 0, 0, 0.5);
            transition: background 0.3s ease;
        }
        /* Responzivita pro mobil (širší 90 %, výška 200px) */
        @media (max-width: 768px) {
            .tile {
                width: 100%;
                height: 200px;
            }
        }




/* Styl pro texty */
h1 {
    font-size: 68px;
    font-weight: 700;
    text-transform: uppercase;
	padding: 0;
	margin: 0 0 10px 0;
}
h2 {
    font-size: 30px;
    font-weight: 500;
    text-transform: uppercase;
	padding: 0;
	margin: 0 0 10px 0;
}
h3 {
    font-size: 24px;
    font-weight: 300;
	padding: 0;
	margin: 0px 0 5px 0;
}	
h4 {
    font-size: 18px;
    font-weight: 600;
	padding: 0;
	margin: 0 0 0 0;
}	
h5 {
    font-size: 16px;
    font-weight: 600;
	padding: 0;
	margin: 0 0 0 0;
}	
h6 {
    font-size: 13px;
    font-weight: 300;
	padding: 0;
	margin: 0 0 0 0;
}	
p {
    font-family: 'Raleway', sans-serif; /* Stejný font jako ostatní text */
    font-size: 15px; /* Stejná velikost jako H2 (případně uprav) */
    font-weight: 300; /* Lehké písmo, podobné H2 */
    line-height: 1.4; /* Zvýšené řádkování pro lepší čitelnost */
}
a {
    text-decoration: none; /* Odstraní podtržení */
    color: inherit; /* Použije výchozí barvu textu */
    outline: none; /* Odstraní obrys při kliknutí */
}
.clink, 
.clink-remove,
.clink-back {
    text-decoration: none; /* Odstraní podtržení */
    color: inherit; /* Použije výchozí barvu textu */
    outline: none; /* Odstraní obrys při kliknutí */
	transition: color 0.15s ease-in-out;
}
.clink-back {
	position: absolute;
	right: 0;
}
.clink:hover,
.clink-back:hover {
	color: #328c32;
}
.clink-remove:hover {
	color: red;
}
.big-bold {
    font-size: 20px;
    font-weight: 500;
}
.big-light {
    font-size: 16px;
    font-weight: 300;
}


/* Responzivní styl */
@media (max-width: 1370px) {
	
	.menu-content {
		gap: 5px;
		min-width: 650px;
		width: auto;
	}
	.menu-header {
		padding: 0 10px 0 0;
		min-width: 300px;
		width: auto;
	}

}	

@media (max-width: 970px) {
	
	.big-bold {
        font-size: 18px;
        font-weight: 500;
	}
	.big-light {
        font-size: 14px;
        font-weight: 300;
	}
	.menu a {
        font-size: 16px;
        font-weight: 600;
		padding: 0px 5px 25px 0px;
	}
	.menu {
		display: flex;
		justify-content: space-between
	}
	.menu-content {
		min-width: 0px;
		width: auto;
		text-align: right;
	}
	.menu-header {
		min-width: 0px;
		width: auto;
	}
	.menu-header img {
	    float: left;
	    margin-right: 10px; /* volitelná mezera mezi obrázkem a dalšími prvky */
	}
}

/* Menší velikosti pro mobilní telefony (max-width: 868px) */
@media screen and (max-width: 768px) {
	
	h1 {
	    font-size: 34px;
	}
	h2 {
	    font-size: 26px;
	}
	h3 {
	    font-size: 24px;
	}	
	h4 {
	    font-size: 18px;
	}	
	h5 {
	    font-size: 16px;
	}
	
	.recipe-image2 {
	    width: 100%;
	}
	
	/* Zvýraznění při najetí */
	.menu-items a:hover {
	    background: rgba(255, 255, 255, 0.2);
	}

	/* 📌 Položky v menu */
	.menu-items a {
	    display: block;
	    padding: 12px;
	    color: #F8F9FA;
	    font-size: 20px;
	}
	
    .menu-content a {
        display: block;
        padding: 10px;
        color: #F8F9FA;
    }
	
	.menu-header {
		width: 100%;
	}
	
    .menu-toggle {
	    justify-content: right;
	    align-items: right;
	    text-align: right;
        display: block; /* Zobrazit hamburger */
		width: 25px;
    }
	
    .menu {
        flex-direction: row;
        justify-content: center;
        padding: 10px;
		width 100%;
    }

    .menu-content {
        display: none; /* Skryté menu */

    }

    /* 📌 Skryté menu, které se objeví po kliknutí */
    .menu-items {
        display: none;
		z-index: 1000;
        flex-direction: column;
        position: fixed;
	    justify-content: center;
	    align-items: center;
	    text-align: center;
        top: 120px;
        width: 100%;
        background: rgba(100, 100, 100, 0.95);
        text-align: center;
        padding: 10px 0;
		min-width: 100px;
		z-index: 1000;
    }

    .menu-items.active {
        display: flex; /* Po kliknutí se zobrazí */
    }		
	
	.login-container {
	    width: 100%;
	}

	.recipe-container,
	.recipe-container2 {
	    width: 100%;
		padding: 15px;
	}
	
	.no-mobile {
		display: none;
	}
	
    .recipe-details {
        flex-direction: column;
    }
	.recipe-image {
	    flex: 1 1 100%;
	    width: 100%;
		height: 200px;
	}
	.recipe-image img{
	    width: 100%;
		height: 100%;
	}
	.recipe-header {
	    margin-top: 30px;
		overflow-x: hidden;
	}
	
	.header h4 {
		padding-left: 10px;
	}
	
	button.res-mobile,
	input.res-mobile {
	  width: 90% !important;
	  min-width: 200px;
	  margin: 5px 0px 5px 0px !important;
	}
	
	.day-block input {
		max-width: 49%;
	}
	
	.table-mobile {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	
	.no-desktop {
		display: block;
	}
	
}	