/*
 * Module: Dashboard — styles
 * Colors come only from the tokens in mcms-global.css.
 *
 * SECTIONS
 *   1. Page + header (photo, greeting, name)
 *   2. Tiles
 *   3. Logout area
 *   4. Reminders banner (the base .mcms-remind-banner comes from modules/follow)
 */

/* ==================================================================
   1. PAGE + HEADER
   ================================================================== */
.mcms-dashboard {
	max-width: var(--mcms-max-width);
	margin: 0 auto;
	padding: 24px var(--mcms-pad) 40px;
}

.mcms-dashboard__head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}

.mcms-wrap .mcms-dashboard__photo {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--mcms-surface);
	border: 1px solid var(--mcms-line);
	max-width: none;
}

/* The company logo (no personal photo yet): show it whole, not cropped. */
.mcms-wrap .mcms-dashboard__photo.is-default {
	object-fit: contain;
	padding: 10px;
}

.mcms-dashboard__hello {
	min-width: 0;
}

.mcms-dashboard__greeting {
	font-size: var(--mcms-text-md);
	color: var(--mcms-text-muted);
}

.mcms-wrap .mcms-dashboard__name {
	font-size: clamp(24px, 7vw, 32px);
	font-weight: 800;
	line-height: 1.1;
	overflow-wrap: break-word;
}

/* ==================================================================
   2. TILES
   One column of wide tiles on phones (big tap targets, easy to scan),
   a grid from tablets up.
   ================================================================== */
.mcms-tiles {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--mcms-gap);
}

@media (min-width: 600px) {
	.mcms-tiles {
		grid-template-columns: repeat(2, 1fr); /* 4 tiles → a tidy 2 × 2 */
	}
}

.mcms-wrap .mcms-tile {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 88px;
	padding: 18px;
	background: var(--mcms-surface);
	border: 1px solid var(--mcms-line);
	border-radius: var(--mcms-radius-md);
	box-shadow: var(--mcms-shadow);
	color: var(--mcms-text);
	transition: border-color var(--mcms-ease), background var(--mcms-ease);
}

@media (min-width: 600px) {
	.mcms-wrap .mcms-tile {
		flex-direction: column;
		align-items: flex-start;
		min-height: 168px;
		padding: 22px;
	}
}

.mcms-wrap a.mcms-tile:hover {
	border-color: var(--mcms-brand);
	color: var(--mcms-text);
}

.mcms-wrap a.mcms-tile:active {
	background: var(--mcms-brand-softer);
}

.mcms-tile__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: var(--mcms-brand-soft);
	color: var(--mcms-brand-strong);
	flex-shrink: 0;
}

.mcms-tile__icon svg {
	width: 30px;
	height: 30px;
}

.mcms-tile__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.mcms-tile__label {
	font-size: var(--mcms-text-lg);
	font-weight: 700;
	line-height: 1.2;
}

.mcms-tile__desc {
	font-size: var(--mcms-text-sm);
	color: var(--mcms-text-muted);
}

/* The main action ("Νέα παραγγελία"): filled with the brand color. */
.mcms-wrap a.mcms-tile.is-primary {
	background: var(--mcms-brand-strong);
	border-color: var(--mcms-brand-strong);
	color: var(--mcms-on-brand);
}

.mcms-wrap a.mcms-tile.is-primary:hover,
.mcms-wrap a.mcms-tile.is-primary:active {
	background: var(--mcms-brand-strong-hover);
	color: var(--mcms-on-brand);
}

.mcms-tile.is-primary .mcms-tile__icon {
	background: rgba(255, 255, 255, .18);
	color: var(--mcms-on-brand);
}

.mcms-tile.is-primary .mcms-tile__desc {
	color: rgba(255, 255, 255, .85);
}

/* Not built yet: visible, but quiet and not clickable. */
.mcms-wrap .mcms-tile.is-soon {
	box-shadow: none;
	background: var(--mcms-surface-muted);
	cursor: default;
}

.mcms-tile.is-soon .mcms-tile__icon {
	background: var(--mcms-line);
	color: var(--mcms-text-muted);
}

.mcms-tile.is-soon .mcms-tile__label {
	color: var(--mcms-text-muted);
}

.mcms-tile__soon {
	position: absolute;
	top: 12px;
	right: 12px;
}

/* ==================================================================
   3. LOGOUT AREA
   Holds the site's own [logout_button]; we only space and center it.
   ================================================================== */
.mcms-dashboard__logout {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

/* ==================================================================
   4. REMINDERS BANNER
   Between the greeting and the tiles. Numbers only:
     🕒 5 υπενθυμίσεις για σήμερα        [Όλοι | Δικά μου]
     [ Παραγγελίες 3 › ]  [ Προσφορές 2 › ]
   The rows and their +1/+3/+7/Έγινε live in each listing's «Σήμερα» tab.
   ================================================================== */
.mcms-reminders {
	margin-bottom: 24px;
	transition: opacity var(--mcms-ease);
}

.mcms-reminders[hidden] {
	display: none;
}

.mcms-reminders.is-loading {
	opacity: .6;
}

/* The banner itself (.mcms-remind-banner, from modules/follow) wraps:
   text + chips on the first line, the two buttons under them. */
.mcms-reminders__banner {
	flex-wrap: wrap;
	gap: 10px 12px;
	margin: 0;
}

.mcms-reminders__top {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 200px;
	min-width: 0;
}

.mcms-wrap .mcms-reminders__who {
	margin: 0;
	flex: none;
}

.mcms-reminders__go {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 8px;
	flex: 1 1 100%;
}

.mcms-reminders__go[hidden] {
	display: none;
}

.mcms-wrap .mcms-reminders__btn {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 8px 14px;
	background: var(--mcms-surface);
	border-color: transparent;
	color: var(--mcms-text);
	font-weight: 700;
}

.mcms-wrap .mcms-reminders__btn:hover {
	border-color: var(--mcms-warning);
	color: var(--mcms-text);
}

.mcms-reminders__n {
	min-width: 26px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--mcms-warning);
	color: #fff;
	font-size: var(--mcms-text-sm);
	text-align: center;
}

.mcms-reminders__arrow {
	margin-left: auto;
	font-size: 22px;
	line-height: 1;
	color: var(--mcms-text-muted);
}

/* Nothing of mine due («Δικά μου»): quiet grey, so it doesn't shout. */
.mcms-reminders.is-quiet .mcms-remind-banner {
	background: var(--mcms-surface-muted);
	color: var(--mcms-text-muted);
	font-weight: 600;
}
