/* IndexNew.cshtml 專屬樣式 */

/* 搜尋按鈕樣式 */
.search-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(52, 142, 56, 0.3);
}

/* Top Feature 區塊樣式調整 */
.top-feature {
    margin-top: -100px;
    position: relative;
    z-index: 1;
}

@media (max-width: 991.98px) {
    .top-feature {
        margin-top: 0;
    }
}

/* 導航卡片圖片樣式 */
.bg-main img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.bg-main h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    padding: 10px 0;
}

/* 熱門推薦卡片按鈕 */
.tour-card .more {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tour-card .more:hover {
    background-color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tour-card .btn-secondary.more {
    background-color: #6c757d;
}

.tour-card .btn-secondary.more:hover {
    background-color: #5a6268;
}

/* 影片卡片樣式 */
.video-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-card .ratio {
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

.video-card .card-title {
    color: var(--dark);
    font-weight: 600;
}

.video-card .card-title i {
    color: var(--primary);
}

/* 搜尋 Modal 樣式 */
#searchModal .modal-content {
    border-radius: 15px;
    border: none;
}

#searchModal .modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 20px 30px;
}

#searchModal .modal-title {
    font-weight: 600;
}

#searchModal .form-control-lg {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 12px 20px;
}

#searchModal .form-control-lg:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(52, 142, 56, 0.25);
}

#searchModal .btn-lg {
    border-radius: 10px;
    padding: 12px 30px;
}

#searchModal .badge {
    padding: 8px 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#searchModal .badge:hover {
    background-color: var(--primary) !important;
    color: white !important;
    transform: translateY(-2px);
}

/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #0f4229;
}

.copyright a {
    color: #FFFFFF;
}

.copyright a:hover {
    color: var(--primary);
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

/* 行動裝置優化 */
@media (max-width: 768px) {
    .navbar-brand img {
        max-width: 140px !important;
    }

    .top-feature .col-5 {
        margin: 5px !important;
    }

    .bg-main h4 {
        font-size: 0.9rem;
    }

    #searchModal .modal-dialog {
        margin: 10px;
    }

    .footer .col-md-6 {
        margin-bottom: 20px;
    }
}

/* Sticky Navbar 效果 */
.navbar.sticky-top.sticky {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 卡片陰影效果增強 */
.shadow-sm {
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.075) !important;
}

/* 輪播控制按鈕優化 */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    transform: scale(1.2);
}

/*** Page Header ***/
.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background-size: cover !important;
    background-position: center !important;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}

/*** Product Card ***/
.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.product-card .product-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-card .product-info {
    padding: 1.25rem 1.5rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card .product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
    line-height: 1.4;
    min-height: auto;
}

.product-card .product-tagline {
    color: #dc3545;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.product-card .product-price {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.product-card .product-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
    margin-right: 0.25rem;
}

.product-card .product-price .price-suffix {
    font-size: 1rem;
    color: #666;
    margin-right: 0.5rem;
}

.product-card .product-price .original-price {
    display: none;
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.product-card .btn.more {
    width: 100%;
    background-color: #28a745;
    color: white;
    /* border: none; */
    padding: 0.875rem 1.5rem;
    /* border-radius: 8px; */
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    margin-top: auto;
    margin-left: 0;
    margin-right: 0;
    border-radius: 15px 0px 15px 0px;
}

.product-card .btn.more:hover {
    /* background-color: #218838; */
    transform: translateY(-2px);
    color: #009a3e;
    border-color: #009a3e;
    background-color: transparent;
}

.product-card .btn-secondary.more {
    background-color: #6c757d;
}

.product-card .btn-secondary.more:hover {
    background-color: #5a6268;
}

/*** Product List View ***/
.product-card-list {
    background: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.product-card-list:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-card-list .product-image-list {
    width: 250px;
    flex-shrink: 0;
}

.product-card-list .product-image-list img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card-list .product-info-list {
    padding: 20px;
}

.product-card-list .product-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.product-card-list .product-tagline {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 15px;
}

.product-card-list .product-price .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.product-card-list .product-price .price-suffix {
    font-size: 1.1rem;
    color: #666;
    margin-left: 5px;
}

.product-card-list .btn.more {
    padding: 10px 30px;
}

/*** View Toggle Buttons ***/
.btn-outline-primary {
    border-color: #28a745;
    color: #28a745;
}

.btn-outline-primary:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-check:checked + .btn-outline-primary {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .product-card-list {
        flex-direction: column !important;
    }

    .product-card-list .product-image-list {
        width: 100%;
    }

    .product-card-list .product-image-list img {
        height: 250px;
    }

    .page-header {
        padding-top: 8rem;
        padding-bottom: 4rem;
    }
}
