/* 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: #FF8A65;
    --secondary: #FF5722;
    --light-accent: #FFF3E0;
    --dark: #5D4037;
    --text: #424242;
    --light-gray: #F5F5F5;
}

body {
    font-family: 'Microsoft JhengHei', sans-serif;
    color: var(--text);
    background-color: #FFFFFF;
    font-size: 16px;
}

.navbar {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary) !important;
    font-size: 1.3rem;
}

.brand-icon {
    margin-right: 8px;
    font-size: 1.5rem;
    vertical-align: middle;
}

.nav-link {
    color: var(--text) !important;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
}

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

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
}

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

/* 盲盒卡片樣式 */
.mystery-box {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.mystery-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.box-image {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: linear-gradient(45deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mystery-box:hover .box-image img {
    transform: scale(1.05);
}

.box-content {
    padding: 15px;
}

.box-title {
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.box-restaurant {
    color: var(--text);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.box-price {
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 10px;
}

.box-description {
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 15px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.surprise-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary);
    color: white;
    padding: 2px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    z-index: 1;
}

.time-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 0.75rem;
    z-index: 1;
}

.hero {
    background-color: white;
    padding: 20px 0 30px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 138, 101, 0.05) 0%, rgba(255, 87, 34, 0.1) 100%);
    z-index: -1;
}

.hero h1 {
    color: var(--dark);
    font-weight: bold;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.hero p {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 25px;
}

.filter-container {
    position: sticky;
    top: 70px;
    z-index: 999;
    background-color: white;
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.filter-scroll {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
}

.filter-scroll::-webkit-scrollbar {
    height: 0;
    display: none;
}

.filter-item {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 15px;
    margin-right: 10px;
    display: inline-block;
    white-space: nowrap;
    color: var(--text);
    text-decoration: none;
}

.filter-item.active {
    background-color: var(--light-accent);
    border-color: var(--primary);
    color: var(--primary);
}

/* Loading 樣式 */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
