/* ============================================
   基礎重置
============================================ */
.daily-signin-card * {
    box-sizing: border-box;
}

.daily-signin-card {
    max-width: 420px;
    margin: 0 auto;
    font-family: 'Microsoft JhengHei', '微軟正黑體', sans-serif;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

/* ============================================
   主體結構
============================================ */
.daily-signin-card .signin-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* 小語置中 */
    gap: 12px;
}

/* ============================================
   頂部資訊列：左資訊 + 右按鈕
============================================ */
.daily-signin-card .signin-top-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.daily-signin-card .signin-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.daily-signin-card .signin-stats-compact {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.daily-signin-card .signin-right {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
}

/* ============================================
   按鈕
============================================ */
.daily-signin-card .signin-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, #ff6b00, #ff8c00);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: 0.3s ease;
}

.daily-signin-card .signin-btn.signed,
.daily-signin-card .signin-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* ============================================
   小語框（本次重點）
============================================ */
.daily-signin-card .quote-area {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
}

.daily-signin-card .signin-quote-box {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-style: italic;
    color: #666;
    text-align: center;
    font-size: 15px;
    background: #f9f9f9;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* 簽到後亮色框 */
.daily-signin-card .signin-quote-box.signed {
    border-color: #ffcc33;
    background: linear-gradient(135deg,#fff9e6,#fff0cc);
    color: #333;
    font-weight: 500;
}

/* ============================================
   日曆
============================================ */
.daily-signin-card .calendar-container {
    width: 100%;
}

.daily-signin-card .signin-calendar {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

/* 日曆標頭 */
.daily-signin-card .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.daily-signin-card .calendar-header button {
    background: #ffcc33;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.daily-signin-card .month-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

/* 日曆格子 */
.daily-signin-card .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.daily-signin-card .calendar-weekday {
    font-weight: bold;
    text-align: center;
    padding: 8px 0;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
}

.daily-signin-card .calendar-day {
    text-align: center;
    padding: 10px 0;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    border: 1px solid #f0f0f0;
    font-size: 14px;
}

.daily-signin-card .calendar-day.empty {
    background: transparent;
    cursor: default;
    border: none;
}

.daily-signin-card .calendar-day.today {
    border: 2px solid #ff6b00;
    font-weight: bold;
    color: #ff6b00;
}

.daily-signin-card .calendar-day.today.signed {
    background: #ff6b00;
    color: #fff;
    border: none;
}

.daily-signin-card .calendar-day.signed:not(.today) {
    background: #ffd700;
    color: #333;
}

/* ============================================
   手機排版
============================================ */
@media (max-width: 480px) {
    .daily-signin-card .signin-top-row {
        flex-direction: column;
        align-items: center;
    }
    .daily-signin-card .signin-left {
        text-align: center;
        align-items: center;
    }
    .daily-signin-card .signin-right {
        width: 100%;
        justify-content: center;
    }
    .daily-signin-card .signin-quote-box {
        max-width: 100%;
    }
}
