/* ==========================================
   前台共用樣式 V2 (Frontend Common Styles V2)
   使用 Tailwind CSS CDN + 自定義樣式
   對齊 reference (1219demo) 視覺比例
   ========================================== */

/* V2 全站基礎字體放大 */
html {
    font-size: 17px;
}

/* 麵包屑導覽 (深色背景用-白字版) */
.breadcrumb-nav-light {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
}
.breadcrumb-nav-light a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}
.breadcrumb-nav-light a:hover {
    color: #fff;
    text-decoration: underline;
}
.breadcrumb-nav-light span[aria-current="page"] {
    color: #fff;
    font-weight: 600;
}

/* Hero Section 共用樣式 */
.hero-gradient {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.gov-box-shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Navbar Scroll Effect */
#main-nav.shadow-md {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

/* Line Clamp for text truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Form Input Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

/* Button Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Transition utilities */
.transition-fast {
    transition: all 0.15s ease;
}

.transition-normal {
    transition: all 0.3s ease;
}

.transition-slow {
    transition: all 0.5s ease;
}
