/* ============================================
   琥珀食光 - Amber Izakaya
   Bootstrap 5 + jQuery 自訂樣式
   設計風格：深夜職人美學
   ============================================ */

/* ============================================
   字體定義
   ============================================ */
:root {
    /* 色彩系統 */
    --amber: #C5A059;
    --charcoal: #121212;
    --camellia-red: #9E2A2B;
    --ivory: #F5F1E8;
    --dark-gray: #1A1A1A;
    --light-gray: #D4C5B9;
    
    /* 字體 */
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
}

* {
    font-family: var(--font-sans);
}

h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: var(--font-serif);
}

/* ============================================
   基礎樣式
   ============================================ */
html, body {
    background-color: var(--charcoal);
    color: var(--ivory);
}

.bg-charcoal {
    background-color: var(--charcoal) !important;
}

.bg-dark-gray {
    background-color: var(--dark-gray) !important;
}

.text-amber {
    color: var(--amber) !important;
}

.text-ivory {
    color: var(--ivory) !important;
}

.text-light-gray {
    color: var(--light-gray) !important;
}

.text-camellia {
    color: var(--camellia-red) !important;
}

.border-amber-20 {
    border-color: rgba(197, 160, 89, 0.2) !important;
}

.border-amber {
    border-color: var(--amber) !important;
}

/* ============================================
   導航欄
   ============================================ */
.navbar {
    background-color: var(--charcoal) !important;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--amber) !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: rgba(197, 160, 89, 0.8) !important;
}

.nav-link {
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link.hover-amber:hover {
    color: var(--amber) !important;
}

/* ============================================
   按鈕樣式
   ============================================ */
.btn-amber {
    background-color: var(--amber);
    color: var(--charcoal);
    border: none;
    font-weight: 700;
    font-family: var(--font-serif);
    transition: all 0.3s ease;
}

.btn-amber:hover {
    background-color: rgba(197, 160, 89, 0.9);
    color: var(--charcoal);
    transform: scale(1.05);
}

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

.btn-outline-amber:hover {
    background-color: var(--amber);
    color: var(--charcoal);
}

/* ============================================
   表單樣式
   ============================================ */
.form-control, .form-select {
    background-color: var(--dark-gray);
    border: 1px solid rgba(197, 160, 89, 0.5);
    color: var(--ivory);
}

.form-control:focus, .form-select:focus {
    background-color: var(--dark-gray);
    border-color: var(--amber);
    color: var(--ivory);
    box-shadow: 0 0 0 0.2rem rgba(197, 160, 89, 0.25);
}

.form-control::placeholder {
    color: rgba(212, 197, 185, 0.6);
}

.form-label {
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* ============================================
   卡片與容器
   ============================================ */
.card {
    background-color: var(--dark-gray);
    border: 1px solid rgba(197, 160, 89, 0.2);
    color: var(--ivory);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(197, 160, 89, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.card-header {
    background-color: rgba(197, 160, 89, 0.1);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

/* ============================================
   標題樣式
   ============================================ */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--amber);
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--amber);
}

h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--amber);
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--amber);
}

/* ============================================
   邊框與分隔線
   ============================================ */
.border-left-amber {
    border-left: 4px solid var(--amber);
    padding-left: 2rem;
}

.divider-amber {
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    margin: 2rem 0;
}

/* ============================================
   動畫效果
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in {
    animation: fadeIn 1.2s ease-out;
}

/* ============================================
   Hero 區塊
   ============================================ */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(18, 18, 18, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 56rem;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ============================================
   特色區塊
   ============================================ */
.feature-box {
    background-color: var(--charcoal);
    border: 1px solid rgba(197, 160, 89, 0.2);
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: rgba(197, 160, 89, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* ============================================
   圖片樣式
   ============================================ */
img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.img-shadow {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* ============================================
   標籤與徽章
   ============================================ */
.badge {
    background-color: rgba(197, 160, 89, 0.2);
    color: var(--amber);
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
}

/* ============================================
   頁腳
   ============================================ */
footer {
    background-color: var(--charcoal);
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    margin-top: 5rem;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--amber) !important;
}

/* ============================================
   響應式設計
   ============================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ============================================
   工具類
   ============================================ */
.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-5 {
    gap: 1.5rem;
}

.lh-lg {
    line-height: 1.75;
}

.fw-bold {
    font-weight: 700;
}

.fw-semibold {
    font-weight: 600;
}

/* ============================================
   Toastr 自訂樣式
   ============================================ */
.toast-container {
    z-index: 9999;
}

.toast-success {
    background-color: var(--amber) !important;
    color: var(--charcoal) !important;
}

.toast-error {
    background-color: var(--camellia-red) !important;
    color: var(--ivory) !important;
}

.toast-info {
    background-color: var(--dark-gray) !important;
    color: var(--ivory) !important;
    border: 1px solid var(--amber);
}
