:root {
    --navy: #003366;
    --green: #2e7d32;
    --cream: #fdfbed;
    --wood: #8b5a2b;
    --chalkboard: #2c2c2c;
    --text-color: #333;
    --border-width: 4px;
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: url('../bg-wood.png') repeat;
    background-size: 800px;
    color: var(--text-color);
    line-height: 1.4;
    min-height: 100vh;
    padding: 0;
}

.container {
    max-width: 1400px;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 10px 20px;
}

/* Header & Nav */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    margin-bottom: 5px;
    flex-shrink: 0;
}

/* Subpages: match homepage .container (10px) + header vertical padding */
.cafe-top-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 5px;
    padding: 30px 20px 20px;
}

.device-desktop .cafe-top-nav {
    padding-top: 25px;
    padding-bottom: 15px;
}

.logo-container {
    flex-shrink: 0;
}

.logo-container img {
    height: 120px;
    width: auto;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 11px;
    align-items: center;
}

.chalkboard-btn {
    background: var(--chalkboard);
    color: white;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.125rem;
    padding: 12px 18px;
    border: 4px solid var(--wood);
    border-radius: 8px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
    transition: transform 0.1s;
    text-align: center;
    min-width: 165px;
    color: #a5d6a7;
}

.chalkboard-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

/* Hero Section */
.hero {
    margin-bottom: 20px;
    flex-shrink: 0;
}

.hero-banner {
    width: 100%;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Scalloped Content Boxes */
.content-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    padding-bottom: 15px;
}

.scalloped-box {
    background: var(--cream);
    border: 4px solid var(--navy);
    padding: 15px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.05);
}

.scalloped-box::before {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border: 4px solid var(--navy);
    border-radius: 20px;
    mask-image: radial-gradient(circle at 0 0, transparent 20px, black 21px),
                radial-gradient(circle at 100% 0, transparent 20px, black 21px),
                radial-gradient(circle at 100% 100%, transparent 20px, black 21px),
                radial-gradient(circle at 0 100%, transparent 20px, black 21px);
    pointer-events: none;
}

.scalloped-box h2 {
    color: var(--green);
    font-family: 'Schoolbell', cursive;
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.buzz-list {
    list-style: none;
}

.buzz-list li {
    position: relative;
    padding-left: 20px;
    font-weight: 700;
    color: var(--navy);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.buzz-list li::before {
    content: '●';
    position: absolute;
    left: 0;
}

.side-panels {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Daily Grind & Weather Layout */
.grind-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.grind-section, .weather-section {
    flex: 1;
}

.weather-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.7);
    padding: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    height: auto;
    min-height: 90px;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.weather-icon {
    font-size: 1.8rem;
}

.weather-temp {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
}

.weather-info {
    text-align: center;
}

.weather-desc {
    font-weight: 700;
    color: var(--green);
    font-size: 0.95rem;
}

.weather-feels {
    font-size: 0.75rem;
    opacity: 0.7;
}

.calendar-mini {
    flex-shrink: 0;
    width: 120px;
    background: white;
    padding: 10px;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
}

.task-list {
    width: 100%;
}

.conversation-starters,
.history-fact {
    width: 100%;
}

.conversation-starters-text,
.history-fact-text {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.95rem;
    line-height: 1.5;
}

.conversation-starters-footer {
    margin-top: 10px;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.conversation-setup-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.7rem;
    color: var(--navy);
    opacity: 0.35;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
    font-family: inherit;
}

.conversation-setup-link:hover {
    opacity: 0.65;
}

.conversation-prompt-item {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px dashed rgba(0, 0, 0, 0.08);
}

.conversation-prompt-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
}

.conversation-prompt-item textarea,
.conversation-prompt-item .conversation-prompt-name {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    font-family: inherit;
}

.conversation-prompt-name {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--navy);
}

.conversation-prompt-item textarea {
    min-height: 90px;
    resize: vertical;
}

.conversation-prompt-remove {
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
    font-family: inherit;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--navy);
    font-size: 0.9rem;
}

/* Icons */
.perks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    flex: 1;
}

.perk-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

.perk-icon {
    font-size: 1.5rem;
    height: 40px;
}

.perk-label {
    font-weight: 800;
    font-size: 0.65rem;
    color: var(--navy);
    text-transform: uppercase;
}

/* Footer Section */
footer {
    min-height: 60px;
    background: var(--navy);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.contact-info {
    font-weight: 700;
}

.footer-email-link {
    color: inherit;
    text-decoration: none;
}

.footer-email-link:hover {
    text-decoration: underline;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
    flex-shrink: 0;
}

.footer-auth-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
}

.footer-auth-link:hover {
    color: white;
    text-decoration: underline;
}

.footer-school-link {
    color: white;
    text-decoration: none;
    font-weight: 700;
    flex-shrink: 0;
}

.footer-school-link:hover {
    text-decoration: underline;
}

.footer-bee-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.footer-bee-box img {
    height: 20px;
}

/* --- DESKTOP LAYOUT --- */
.device-desktop header {
    flex-direction: row;
    min-height: auto;
    padding: 15px 0;
    justify-content: center;
    align-items: center;
}

.device-desktop nav {
    gap: 9px;
    justify-content: center;
    width: 100%;
}

.device-desktop .chalkboard-btn {
    font-size: 1.275rem;
    padding: 15px 23px;
    border-width: 5px;
    min-width: 150px;
}

.device-desktop .content-grid {
    display: grid;
    grid-template-columns: 38% 60%;
}

.device-desktop .scalloped-box h2 { font-size: 1.8rem; }
.device-desktop .buzz-list li { font-size: 1rem; }

.device-desktop .side-panels {
    flex: 1;
    gap: 15px;
    display: flex;
    flex-direction: column;
}

.device-desktop .flex-2 { flex: 2; }
.device-desktop .perks-bar { flex: 0.8; }

.device-desktop .grind-layout {
    flex-direction: row;
}

.device-desktop .grind-section {
    border-right: 2px dashed rgba(0,0,0,0.1);
    padding-right: 20px;
}

.device-desktop .calendar-mini { width: 180px; }
.device-desktop .task-item { font-size: 1rem; }

.device-desktop .perks-grid {
    display: flex;
    justify-content: space-around;
    grid-template-columns: none;
}

.device-desktop .perk-icon { font-size: 2rem; height: 50px; }
.device-desktop .perk-label { font-size: 0.75rem; }

.device-desktop footer {
    height: 40px;
    min-height: 0;
    padding: 0 40px;
}
