/* ========================================
   筆順說明提示樣式
   ======================================== */

/* 筆順說明區塊 */
.stroke-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin: 16px 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
}

.stroke-notice::before {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 32px;
    opacity: 0.3;
}

.stroke-notice-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stroke-notice-title::before {
    content: '📝';
    font-size: 20px;
}

.stroke-notice-content {
    font-size: 14px;
    opacity: 0.95;
}

.stroke-notice-highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* 可愛的提示框 (替代方案) */
.stroke-tip {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 8px;
    font-size: 13px;
    color: #856404;
    display: flex;
    align-items: start;
    gap: 12px;
}

.stroke-tip-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.stroke-tip-text {
    flex: 1;
    line-height: 1.5;
}

/* 互動式 Modal (進階版本) */
.stroke-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.stroke-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.stroke-modal {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.stroke-modal-overlay.active .stroke-modal {
    transform: scale(1);
}

.stroke-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.stroke-modal-emoji {
    font-size: 64px;
    margin-bottom: 16px;
}

.stroke-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.stroke-modal-subtitle {
    font-size: 14px;
    color: #666;
}

.stroke-modal-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 24px;
}

.stroke-modal-example {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    margin: 16px 0;
    text-align: center;
}

.stroke-modal-example-char {
    font-size: 48px;
    font-family: 'edukai', 'DFKai-SB', serif;
    margin: 8px 0;
}

.stroke-modal-example-text {
    font-size: 13px;
    color: #666;
}

.stroke-modal-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stroke-modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.stroke-modal-button:active {
    transform: translateY(0);
}

/* 列印時隱藏 */
@media print {

    .stroke-notice,
    .stroke-tip,
    .stroke-modal-overlay {
        display: none !important;
    }
}