/* ============================================================
   APP_MOBILE.CSS — v2
   Učitava se NAKON app.css — samo overrideovi i mobilni specifici.
   Breakpointi:
     small  → max 639px
     medium → 640px – 1023px
     large  → 1024px+
   ============================================================ */


/* ============================================================
   SMALL + MEDIUM — zajednički mobilni stilovi (max 1023px)
   ============================================================ */

@media screen and (max-width: 1023px) {

	/* --- Hamburger — fixed gore desno, uvijek vidljiv --- */

	#spinner_master_container {
		display: block !important;
		position: absolute;
		top: 0;
		right: 1rem;
		z-index: 9999;
	}

	.spinner-master .spinner {
		background-color: var(--color-white);
	}

	/* Bijeli kad je meni otvoren */
	#spinner_master_container.open .spinner-master .spinner {
		background-color: var(--color-white);
	}

	/* --- Preheader --- */

	#preheader {
		height: auto;
		padding: 0.5rem 0;
		text-align: center;
	}

	#preheader .grid-x {
		justify-content: center;
	}

	#preheader .cell {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 0.5rem;
		flex-wrap: wrap;
	}

	#preheader .btn {
		margin: 0;
		min-width: 0;
		padding: 0 0.75rem;
		font-size: 0.85rem;
	}

	/* --- Header --- */

	header {
		padding: 0.75rem 0;
	}

	header .grid-x {
		align-items: center;
	}

	h1 {
		min-height: 50px;
	}

	/* Nav + search cell — default skriven */

	header .small-6.medium-10 {
		display: none !important;
	}

	/* --- Mobile nav panel — klizi s desna --- */

	header .small-6.medium-10.open {
		display: flex !important;
		flex-direction: column;
		position: fixed;
		top: 0;
		right: 0;
		width: 100%;
		max-width: 320px;
		height: 100%;
		background: var(--color-primary);
		z-index: 9000;
		padding: 4.5rem 0 2rem 0;
		overflow-y: auto;
		gap: 0;
		box-shadow: -6px 0 30px rgba(0, 0, 0, 0.35);
		animation: slideInRight 0.25s ease forwards;
	}

	@keyframes slideInRight {
		from { transform: translateX(100%); }
		to   { transform: translateX(0); }
	}

	/* --- Nav unutar panela --- */

	header .small-6.medium-10.open nav {
		display: block !important;
		width: 100%;
		margin: 0;
	}

	header .small-6.medium-10.open nav ul {
		display: flex;
		flex-direction: column;
		margin: 0;
		padding: 0;
	}

	header .small-6.medium-10.open nav ul li {
		display: block !important;
		width: 100%;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}

	header .small-6.medium-10.open nav ul li:first-child {
		border-top: 1px solid rgba(255, 255, 255, 0.12);
	}

	header .small-6.medium-10.open nav a {
		color: rgba(255, 255, 255, 0.82);
		font-family: 'Roboto Condensed', sans-serif;
		font-size: 1.05rem;
		font-weight: 400;
		line-height: 1;
		padding: 1rem 1.5rem;
		display: block;
		width: 100%;
		transition: background 0.15s, color 0.15s;
	}

	header .small-6.medium-10.open nav a:hover,
	header .small-6.medium-10.open nav ul li.active a {
		color: var(--color-white);
		background: rgba(255, 255, 255, 0.08);
	}

	/* Skrij underline efekt unutar panela */
	header .small-6.medium-10.open nav ul li a::before {
		display: none !important;
	}

	/* --- Search unutar panela --- */

	header .small-6.medium-10.open form#search_form {
		display: block !important;
		width: 100%;
		padding: 1rem 1.5rem;
		background: transparent;
	}

	header .small-6.medium-10.open #search_term {
		background: rgba(255, 255, 255, 0.12);
		border-color: rgba(255, 255, 255, 0.35);
		color: var(--color-white);
		border-radius: 0.5rem;
	}

	header .small-6.medium-10.open #search_term::placeholder {
		color: rgba(255, 255, 255, 0.5);
		font-weight: 300;
	}

	header .small-6.medium-10.open #search_term:focus {
		background: rgba(255, 255, 255, 0.2);
		border-color: rgba(255, 255, 255, 0.7);
	}

	header .small-6.medium-10.open .search_btn i {
		color: rgba(255, 255, 255, 0.75);
	}

	/* --- Headline --- */

	#headline h2 {
		font-size: 2.5rem;
	}

	/* --- text_container --- */

	.text_container {
		padding: 1.5rem 1.5rem;
	}

	.text_container h2 {
		margin: 0 -1.5rem 1rem -1.5rem;
	}

	/* --- Section headings --- */

	.therapeutic h3,
	.events h3,
	.experts h3,
	.patients h3 {
		font-size: 2rem;
		padding: 0.75rem 1rem;
	}

	.therapeutic .text_container h3,
	.events .text_container h3,
	.experts .text_container h3,
	.patients .text_container h3 {
		margin: 0 -1.5rem 2rem -1.5rem;
		font-size: 1.5rem;
	}

	/* --- Back link --- */

	.back { width: 100%; }

	/* --- Footer nav --- */

	footer nav ul li {
		display: block;
		width: 100%;
	}

	footer nav ul li a {
		padding: 0.4rem 0.5rem;
		font-size: 0.9rem;
	}

	/* --- Contacts --- */

	.contacts {
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	}

	/* --- Quiz --- */

	.quiz-answers { font-size: 0.9rem; }
	.quiz-answer  { padding: 0.6rem 0.75rem; }

}


/* ============================================================
   SMALL only — max 639px
   ============================================================ */

@media screen and (max-width: 639px) {

	h1 { min-height: 40px; }

	#headline h2 { font-size: 1.75rem; }

	/* Na small panel ide na punu širinu */
	header .small-6.medium-10.open {
		max-width: 100%;
	}

	.contacts {
		grid-template-columns: 1fr;
	}

	.text_container {
		padding: 1.25rem 1rem;
	}

	.text_container h2 {
		margin: 0 -1rem 1rem -1rem;
	}

	.therapeutic .text_container h3,
	.events .text_container h3,
	.experts .text_container h3,
	.patients .text_container h3 {
		margin: 0 -1rem 1.5rem -1rem;
	}

}


/* ============================================================
   LARGE — 1024px+
   Hamburger skriven, nav i search uvijek vidljivi.
   ============================================================ */

@media screen and (min-width: 1024px) {

	#spinner_master_container {
		display: none !important;
	}

	#nav-backdrop {
		display: none !important;
	}

	header .small-6.medium-10 {
		display: block !important;
	}

}
