/* Import Google Font */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700;900&display=swap");

/* Import component styles */
@import "global/variables.css";
@import "global/base.css";
@import "global/animations.css";

:root {
    --primary: #2196F3;
    --primary-light: #64B5F6;
    --primary-dark: #1976D2;
    --secondary: #FFC107;
    --accent: #FF5722;
    --text-dark: #263238;
    --text-light: #FFFFFF;
    --background-light: #F5F7FA;
}

body {
    font-family: 'Segoe UI', '微軟正黑體', sans-serif;
    color: var(--text-dark);
    background-color: var(--background-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* 導航欄樣式 */
.navbar {
    background-color: var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    color: var(--text-light) !important;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    transform: translateY(-2px);
    color: var(--secondary) !important;
}

/* 按鈕樣式 */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* 卡片樣式 */
.feature-card, .trip-card {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    background-color: white;
    height: 100%;
    border: none;
}

.feature-card:hover, .trip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    background-color: var(--primary-light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
}

.trip-img {
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.trip-card .card-title {
    font-weight: bold;
    font-size: 1.2rem;
}

.trip-meta {
    font-size: 0.9rem;
    color: #607D8B;
}

.trip-tags .badge {
    background-color: var(--primary-light);
    margin-right: 0.5rem;
    font-weight: normal;
}

/* 頁腳樣式 */
footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    margin-top: 3rem;
}

.footer-heading {
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.footer-link:hover {
    color: var(--text-light);
    transform: translateX(5px);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    color: var(--text-light);
    transition: all 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    color: var(--text-dark);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* 浮動按鈕 */
.floating-button {
    position: fixed;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 100;
    transition: all 0.3s;
    text-decoration: none;
}

.floating-button.back-to-top {
    right: 30px;
    background-color: var(--secondary);
    color: var(--text-dark);
}

.floating-button.create-trip {
    right: 100px;
    background-color: var(--accent);
    color: var(--text-light);
}

.floating-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* 載入中覆蓋層 */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 響應式調整 */
@media (max-width: 768px) {
    .floating-button.create-trip {
        right: 30px;
        bottom: 100px;
    }
    
    footer {
        padding: 3rem 0 1rem;
    }
}
