/* ================= DAILY IDIOM VIEWPORT ================= */
.daily-viewport {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 24px !important;
}

.daily-hero-card {
    width: 100%;
    max-width: 960px;
    min-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 42px !important;
    border-top: 5px solid var(--primary);
}

/* Top Metadata Bar */
.daily-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.daily-date-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.daily-date-pill {
    background: #eef2ff;
    color: var(--primary-dark);
    border: 1px solid #c7d2fe;
    font-weight: 700;
    font-size: 13.5px;
    padding: 5px 14px;
    border-radius: 999px;
    letter-spacing: 0.3px;
}

.daily-book-ref {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.daily-progress-pill {
    font-size: 13.5px;
    color: var(--text-muted);
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 5px 14px;
    border-radius: 999px;
}

.daily-progress-pill strong {
    color: var(--primary);
}

/* Big Centerpiece Phrase */
.daily-centerpiece {
    text-align: center;
    padding: 20px 0 18px;
}

.daily-phrase {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 700;
    color: #1e1b4b;
    line-height: 1.18;
    margin-bottom: 8px;
}

.daily-pos {
    font-style: italic;
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 12px;
}

.daily-pronunciation-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 8px;
}

.pron-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.region-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #1e293b;
}

.btn-icon-speak {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #1e1b4b;
    font-size: 15px;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-icon-speak:hover {
    border-color: var(--primary);
    background: #eef2ff;
    color: var(--primary);
    transform: scale(1.06);
}

.ipa-text {
    font-family: "Segoe UI", "Lucida Sans Unicode", sans-serif;
    font-size: 16.5px;
    color: #334155;
    letter-spacing: 0.2px;
}

.daily-tags-row {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.daily-speech-tip {
    margin-top: 10px;
    font-size: 14px;
    color: #475569;
}

/* Meaning & Example Sections */
.daily-content-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 8px 0 22px;
}

.section-kicker {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.daily-meaning-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 24px;
}

.daily-meaning-text {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.5;
}

.daily-example-box {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    border-radius: 0 12px 12px 0;
    padding: 16px 24px;
}

.daily-example-text {
    margin: 0;
    font-size: clamp(16.5px, 1.8vw, 19.5px);
    font-style: italic;
    color: #1e293b;
    line-height: 1.55;
}

.daily-extra-notes {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 14.5px;
    color: #78350f;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Bottom Action & History Trail */
.daily-footer-actions {
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.today-trail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 65%;
}

.trail-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
    margin-right: 4px;
}

.trail-chip {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 500;
}

.trail-chip.current {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 700;
}

.daily-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-change-word {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-change-word:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.all-done-badge {
    font-size: 13.5px;
    font-weight: 700;
    color: #065f46;
    background: #ecfdf5;
    padding: 8px 14px;
    border-radius: 8px;
}



/* ================= ULTRA-CLEAN MOBILE READER MODE ================= */
@media (max-width: 768px) {
	.mobile-change-form {
        display: inline-flex !important;
    }
    
    .site-header,
    .site-footer,
    .daily-top-bar,
    .daily-footer-actions {
        display: none !important;
    }

    .daily-viewport {
        padding: 0 !important;
        margin: 0 !important;
        min-height: 100vh;
        background: #ffffff;
        justify-content: flex-start !important;
        align-items: stretch !important;
    }

    .daily-hero-card {
        max-width: 100% !important;
        width: 100% !important;
        min-height: 100vh !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 16px 14px !important;
        justify-content: flex-start !important;
    }

    .daily-centerpiece {
        padding: 4px 0 18px !important;
    }

    .daily-content-body {
        margin: 0 !important;
        gap: 14px;
    }
    
    /* Title Row + Mobile Change Word Icon */
	.daily-title-row {
	    display: flex;
	    align-items: center;
	    justify-content: center;
	    gap: 12px;
	    margin-bottom: 8px;
	}
	
	.daily-title-row .daily-phrase {
	    margin-bottom: 0;
	}
	
	.mobile-change-form {
	    display: none; /* Hidden on desktop; shown on mobile below */
	    margin: 0;
	    flex-shrink: 0;
	}
	
	.btn-mobile-change {
	    width: 36px;
	    height: 36px;
	    border-radius: 50%;
	    border: 1.5px solid #c7d2fe;
	    background: #eef2ff;
	    color: var(--primary-dark);
	    font-size: 18px;
	    font-weight: 700;
	    display: inline-grid;
	    place-items: center;
	    cursor: pointer;
	    transition: transform 0.15s ease, background 0.15s ease;
	}
	
	.btn-mobile-change:active {
	    transform: rotate(90deg) scale(0.95);
	    background: #dbeafe;
	}
    
}
