/**
 * MRT Student App - Premium Kids UI
 * High-contrast, dynamic, engaging UI for the main learning dashboard.
 */

.mrt-student-app-home {
	font-family: 'Inter', system-ui, sans-serif;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}

.mrt-home-header {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-bottom: 3rem;
	background: #ffffff;
	padding: 2rem;
	border-radius: 20px;
	border: 1px solid #e5e7eb;
}

.mrt-home-avatar {
	font-size: 4rem;
	background: #fff;
	width: 100px;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	box-shadow: 0 8px 24px rgba(81, 155, 235, 0.2);
}

.mrt-home-title {
	font-size: 2.5rem;
	font-weight: 900;
	color: #0c1833;
	margin: 0 0 0.5rem 0;
	letter-spacing: -0.03em;
}

.mrt-home-subtitle {
	font-size: 1.2rem;
	color: #4a5c88;
	margin: 0;
	font-weight: 500;
}

.mrt-home-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 2rem;
	margin-bottom: 3rem;
}

.mrt-home-card {
	display: flex;
	align-items: stretch;
	gap: 1.5rem;
	background: #ffffff;
	padding: 2rem;
	border-radius: 20px;
	text-decoration: none;
	color: inherit;
	position: relative;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
	border: 2px solid transparent;
	overflow: hidden;
}

/* Hover effects for unlocked cards */
.mrt-home-card:not(.is-locked):hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 48, 120, 0.12);
}

.mrt-home-card--math {
	border-color: rgba(69, 137, 245, 0.3);
}
.mrt-home-card--math:not(.is-locked):hover {
	border-color: #4589f5;
	background: linear-gradient(to bottom right, #ffffff, #eff6ff);
}

.mrt-home-card--coding {
	border-color: rgba(250, 107, 72, 0.3);
}
.mrt-home-card--coding:not(.is-locked):hover {
	border-color: #fa6b48;
	background: linear-gradient(to bottom right, #ffffff, #fff2ef);
}

.mrt-home-card--robotics {
	border-color: rgba(30, 203, 143, 0.3);
}
.mrt-home-card--robotics:not(.is-locked):hover {
	border-color: #1ecb8f;
	background: linear-gradient(to bottom right, #ffffff, #ebfaf4);
}

/* Locked state */
.mrt-home-card.is-locked {
	background: #f0f3f9;
	border-color: #e2e8f0;
	cursor: not-allowed;
	opacity: 0.8;
}

.mrt-card-icon {
	font-size: 3.5rem;
	width: 90px;
	height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.mrt-home-card:hover .mrt-card-icon {
	transform: scale(1.1) rotate(5deg);
}

.mrt-card-content {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.mrt-card-title {
	font-size: 1.8rem;
	font-weight: 800;
	color: #0c1833;
	margin: 0 0 0.5rem 0;
	letter-spacing: -0.02em;
}

.mrt-card-desc {
	font-size: 1rem;
	color: #64748b;
	margin: 0;
	line-height: 1.4;
}

.mrt-card-action {
	font-size: 1.8rem;
	display: flex;
	align-items: center;
	padding-left: 1rem;
	opacity: 0.5;
	transition: opacity 0.3s ease;
}

.mrt-home-card:not(.is-locked):hover .mrt-card-action {
	opacity: 1;
	animation: bounceX 1s infinite alternate;
}

.mrt-home-footer-grid {
	display: flex;
	gap: 1rem;
	justify-content: center;
}

.mrt-home-btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem 2rem;
	background: #ffffff;
	color: #334155;
	font-size: 1.1rem;
	font-weight: 700;
	text-decoration: none;
	border-radius: 99px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.06);
	transition: all 0.2s ease;
	border: 1px solid #e2e8f0;
}

.mrt-home-btn-secondary:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.1);
	border-color: #cbd5e1;
	color: #0f172a;
}

@keyframes bounceX {
	from { transform: translateX(0); }
	to { transform: translateX(8px); }
}

@media (max-width: 768px) {
	.mrt-home-header {
		flex-direction: column;
		text-align: center;
		padding: 1.5rem;
	}
	.mrt-home-title { font-size: 2rem; }
	.mrt-home-card { flex-direction: column; align-items: center; text-align: center; padding: 1.5rem; }
	.mrt-card-action { padding-left: 0; padding-top: 1rem; }
	.mrt-home-footer-grid { flex-direction: column; width: 100%; }
}

/* --- New Priority 2 Styles --- */
.mrt-home-greeting-area {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.mrt-home-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.mrt-continue-learning-card {
	background: #fff;
	border: 2px solid #519beb;
	padding: 1.5rem 2rem;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(81, 155, 235, 0.15);
	min-width: 300px;
	position: relative;
	overflow: hidden;
}

.mrt-cl-badge {
	position: absolute;
	top: 0;
	right: 0;
	background: #519beb;
	color: #fff;
	padding: 0.3rem 1rem;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	border-bottom-left-radius: 12px;
}

.mrt-cl-title {
	font-size: 1.2rem;
	font-weight: 800;
	color: #0c1833;
	margin: 0 0 0.5rem 0;
}

.mrt-cl-desc {
	font-size: 1rem;
	color: #4a5c88;
	margin: 0 0 1rem 0;
}

.mrt-btn-primary {
	display: inline-block;
	background: #519beb;
	color: #fff;
	padding: 0.8rem 1.5rem;
	border-radius: 99px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.2s ease;
}
.mrt-btn-primary:hover {
	background: #3884d8;
	transform: translateY(-2px);
	color: #fff;
}

.mrt-section-title {
	font-size: 1.8rem;
	font-weight: 800;
	color: #0c1833;
	margin-bottom: 1.5rem;
}

.mrt-status-badge {
	display: inline-block;
	padding: 0.3rem 0.8rem;
	border-radius: 99px;
	font-size: 0.8rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.beta-badge {
	background: #fff2ef;
	color: #fa6b48;
	border: 1px solid #fa6b48;
}

.mrt-progress-bar-container {
	height: 8px;
	background: #e2e8f0;
	border-radius: 99px;
	margin-top: 1rem;
	overflow: hidden;
}

.mrt-progress-bar {
	height: 100%;
	background: #1ecb8f;
	border-radius: 99px;
	transition: width 0.5s ease;
}

.mrt-attention-module {
	background: #ffffff;
	border-left: 5px solid #e53e3e;
	padding: 1.5rem 2rem;
	border-radius: 12px;
	margin-bottom: 3rem;
	box-shadow: 0 4px 12px rgba(229, 62, 62, 0.05);
}

.mrt-attention-title {
	color: #c53030;
	font-size: 1.2rem;
	font-weight: 800;
	margin: 0 0 1rem 0;
}

.mrt-attention-list {
	margin: 0;
	padding-left: 1.5rem;
	color: #742a2a;
}
.mrt-attention-list li {
	margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
	.mrt-home-header {
		flex-direction: column;
		align-items: stretch;
	}
	.mrt-home-greeting-area {
		margin-bottom: 1.5rem;
		flex-direction: column;
		text-align: center;
	}
	.mrt-continue-learning-card {
		text-align: center;
	}
}

/* =========================================================================
   P4-UX Refresh: Premium Student App Home
   ========================================================================= */

.mrt-student-app-premium .mrt-premium-hero-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.mrt-student-app-premium .mrt-premium-greeting {
    flex: 1;
}

.mrt-student-app-premium .mrt-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.mrt-student-app-premium .mrt-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0 0 1.5rem 0;
}

.mrt-hero-quick-actions {
    display: flex;
    gap: 1rem;
}

.mrt-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.mrt-btn-ghost:hover {
    background: #e5e7eb;
    color: #111827;
}

.mrt-premium-kpi-strip {
    display: flex;
    gap: 1.5rem;
}

.mrt-kpi-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.mrt-kpi-icon {
    font-size: 2rem;
    background: #f3f4f6;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mrt-kpi-data {
    display: flex;
    flex-direction: column;
}

.mrt-kpi-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.mrt-kpi-label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mrt-premium-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.mrt-premium-continue-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.mrt-pcc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.mrt-pcc-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
}

.mrt-pcc-time {
    font-size: 0.85rem;
    color: #9ca3af;
}

.mrt-pcc-course {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.mrt-pcc-lesson {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0 0 1.5rem 0;
}
.mrt-pcc-lesson strong {
    color: #111827;
}

.mrt-pcc-progress-wrap {
    margin-bottom: 1.5rem;
}

.mrt-pcc-action .mrt-btn {
    font-size: 1.1rem;
    padding: 1rem;
}

/* Alerts */
.mrt-alerts-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mrt-alert-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 4px solid;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.mrt-alert-icon {
    font-size: 1.5rem;
}

.mrt-alert-content {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #374151;
}

.mrt-alert-content strong {
    font-weight: 700;
    color: #111827;
}

.mrt-alert-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}
.mrt-alert-link:hover {
    text-decoration: underline;
}

.mrt-alert-warning {
    border-color: #f59e0b;
}

.mrt-alert-success {
    border-color: #10b981;
}

.mrt-alert-info {
    border-color: #3b82f6;
}

/* Subject Grid */
.mrt-premium-subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mrt-premium-subject-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.mrt-premium-subject-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0,0,0,0.08);
}

.mrt-psc-cover {
    height: 120px;
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb;
}

.mrt-psc-icon {
    font-size: 3.5rem;
    background: #ffffff;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transform: translateY(20px);
}

.mrt-psc-badge {
    background: rgba(255,255,255,0.9);
    color: #1f2937;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 99px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mrt-psc-content {
    padding: 2rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mrt-psc-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
}

.mrt-psc-desc {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0 0 1.5rem 0;
}

.mrt-psc-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.mrt-btn-secondary {
    display: inline-flex;
    background: #f3f4f6;
    color: #1f2937;
    padding: 0.8rem 1.5rem;
    border-radius: 99px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}
.mrt-btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

@media (max-width: 1024px) {
    .mrt-premium-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .mrt-premium-hero-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
