/* static/css/original-content.css - 顯示原文功能和響應式樣式 */

/* ============ 原文容器樣式 ============ */
.original-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 3px solid #007bff;
    animation: slideIn 0.3s ease-out;
}

.original-content h5 {
    color: #007bff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding: 8px 0;
    border-bottom: 2px solid #007bff;
    background: linear-gradient(90deg, #007bff, #0056b3);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.original-content .icon-document {
    display: inline-block;
    margin-right: 8px;
    font-size: 18px;
    filter: sepia(1) hue-rotate(200deg) saturate(3);
}

.original-content strong {
    color: #007bff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.original-content > div {
    margin-bottom: 20px;
    position: relative;
}

.original-content > div:last-child {
    margin-bottom: 0;
}

/* ============ 原始標題樣式 ============ */
.original-content > div:first-child > div {
    background: linear-gradient(135deg, #e7f3ff 0%, #cce7ff 100%) !important;
    border: 1px solid #80c7ff;
    border-left: 4px solid #007bff;
    font-weight: 600;
    color: #003d82;
    box-shadow: 0 2px 4px rgba(0,123,255,0.1);
}

/* ============ 原始內容樣式 ============ */
.original-content > div:nth-child(2) > div {
    background: linear-gradient(135deg, #e7f3ff 0%, #d1e7dd 100%) !important;
    border: 1px solid #80c7ff;
    border-left: 4px solid #007bff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
    box-shadow: 0 2px 4px rgba(0,123,255,0.1);
    transition: all 0.3s ease;
}

.original-content > div:nth-child(2) > div:hover {
    box-shadow: 0 4px 8px rgba(0,123,255,0.15);
    transform: translateY(-1px);
}

/* ============ 原始來源連結樣式 ============ */
.original-content > div:last-child a {
    color: #007bff;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 2px 4px;
    border-radius: 3px;
    background: rgba(0,123,255,0.1);
}

.original-content > div:last-child a:hover {
    background: rgba(0,123,255,0.2);
    color: #0056b3;
    text-decoration: underline;
}

/* ============ 動畫效果 ============ */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 1000px;
    }
}

/* ============ 顯示原文按鈕樣式增強 ============ */
.button.secondary[title*="顯示"] {
    background: #28a745;
    color: white;
    transition: all 0.2s ease;
}

.button.secondary[title*="顯示"]:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40,167,69,0.3);
}

/* ============ 登入頁面樣式 ============ */
.login-container { 
    background: white; 
    padding: 30px; 
    border-radius: 10px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    width: 100%; 
    max-width: 400px; 
    text-align: center; 
}

.login-container h2 { 
    color: #005a87; 
    margin-bottom: 25px; 
}

.login-container .form-group { 
    margin-bottom: 15px; 
    text-align: left; 
}

.login-container .form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
}

.login-container .form-group input[type="text"], 
.login-container .form-group input[type="password"] { 
    width: calc(100% - 24px); 
    padding: 12px; 
    border: 1px solid #ced4da; 
    border-radius: 5px; 
    font-size: 16px; 
}

.login-container .button { 
    background: #007bff; 
    color: white; 
    padding: 12px 20px; 
    border: none; 
    border-radius: 6px; 
    cursor: pointer; 
    font-size: 16px; 
    transition: background-color 0.2s ease; 
    width: 100%; 
    margin-top: 15px; 
}

.login-container .button:hover { 
    background: #0056b3; 
}

body.login-page { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
}

/* ============ 響應式設計 ============ */
@media (max-width: 768px) {
    .controls-row { 
        flex-direction: column; 
        align-items: stretch; 
    }
    
    .controls-row label, 
    .controls-row select, 
    .controls-row input[type="number"], 
    .controls-row button { 
        width: 100%; 
        margin: 5px 0; 
    }
    
    .bulk-controls { 
        text-align: center; 
    }
    
    .bulk-controls button { 
        margin: 2px; 
        padding: 8px 12px; 
    }
    
    /* 原文按鈕在手機上的樣式調整 */
    .completed-article-compact .article-header > div:last-child {
        flex-direction: column;
        gap: 5px;
    }
    
    .completed-article-compact .article-header button {
        padding: 6px 10px !important;
        font-size: 11px !important;
        white-space: nowrap;
    }
    
    .original-content {
        padding: 10px;
    }
    
    .original-content h5 {
        font-size: 14px;
    }
    
    .original-content > div > div {
        font-size: 13px;
        padding: 8px;
    }
}