/* Info.com.tw 自訂樣式 */

/* 全域樣式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* 導航列樣式 */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* 英雄區塊 */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    border-radius: 0 0 20px 20px;
    margin-bottom: 2rem !important;
}

/* 卡片樣式 */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* 按鈕樣式 */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

/* 收藏按鈕 */
.favorite-btn {
    border: none;
    background: none;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.favorite-btn.favorited {
    color: #dc3545 !important;
}

/* 標籤樣式 */
.badge {
    font-size: 0.75em;
    font-weight: 500;
}

/* 文章/工具列表 */
.content-item {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
    transition: background-color 0.2s ease;
}

.content-item:hover {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 0 -1rem;
}

.content-item:last-child {
    border-bottom: none;
}

.content-title {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.content-title:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0 !important;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .content-item:hover {
        margin: 0;
        padding: 1rem 0;
        background-color: transparent;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* 載入動畫 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(13, 110, 253, 0.3);
    border-radius: 50%;
    border-top-color: #0d6efd;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}