/**
 * Wine Shop Module - Home Page Stylesheet
 * 參考Aberdeen風格設計
 */

/* 輪播圖區域 */
.main-slider {
    margin-bottom: var(--section-spacing);
}

.slider-item {
    height: 400px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.slider-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.slider-content {
    position: relative;
    padding: 60px;
    width: 60%;
    color: white;
}

.slider-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
}

.slider-description {
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.slider-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 25px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.slider-btn:hover {
    background-color: #8a1a29;
    color: white;
}

/* 熱門按鈕區域 */
.hotkey-buttons {
    margin-bottom: var(--section-spacing);
    padding: 25px 0;
    display: flex;
    flex-wrap: nowrap; /* 防止換行 */
    justify-content: center;
    gap: 0; /* 完全消除間距 */
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto; /* 在小屏幕上允許水平滾動 */
    gap: 50px;
}

.hotkey-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0; /* 防止按鈕壓縮 */
    text-align: center;
    color: var(--text-dark);
    transition: transform 0.3s ease;
    padding: 0; /* 移除內部間距 */
    margin: 0; /* 確保沒有外部間距 */
}

.hotkey-button:hover {
    transform: translateY(-5px);
    color: var(--accent-color);
}

.hotkey-icon {
    width: 120px; 
    height: 120px; 
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hotkey-icon img {
    width: 60px; 
    height: 60px; 
}

.hotkey-text {
    font-size: 16px; /* 增加字體大小 */
    font-weight: 500;
    margin-top: 5px;
}

/* 促銷區域 */
.promotion-area {
    margin-bottom: var(--section-spacing);
}

/* 促銷輪播 */
.promotion-slider {
    margin-bottom: 30px;
}

.promotion-slider-container {
    position: relative;
    overflow: hidden;
    height: 350px;
    border-radius: 4px;
}

.promotion-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.promotion-slide.active {
    opacity: 1;
    z-index: 1;
}

.promotion-slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.promotion-slide-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.promotion-slide-content {
    position: absolute;
    top: 0;
    left: 0;
    padding: 40px;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.promotion-slide-content h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.promotion-slide-content p {
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.promotion-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    width: fit-content;
}

.promotion-btn:hover {
    background-color: #8a1a29;
    color: white;
}

.promotion-slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}

.promotion-slider-prev,
.promotion-slider-next {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.promotion-slider-prev:hover,
.promotion-slider-next:hover {
    background-color: var(--accent-color);
}

.promotion-slider-dots {
    display: flex;
    gap: 8px;
}

.promotion-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
}

.promotion-slider-dot.active {
    background-color: var(--primary-color);
}

/* 促銷卡片 */
.promotion-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.promotion-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.promotion-card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: 180px;
    overflow: hidden;
}

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

.promotion-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.card-content p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.5;
}

.card-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.card-btn:hover {
    background-color: var(--accent-color);
    color: white;
}

/* 活動區域 */
.events-area {
    margin-bottom: var(--section-spacing);
}

.events-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.event-card {
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-image {
    height: 200px;
    overflow: hidden;
}

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

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-content {
    padding: 20px;
    display: flex;
}

.event-month {
    font-size: 12px;
    font-weight: 500;
}

.event-day {
    font-size: 22px;
    font-weight: 600;
}

.event-info {
    flex: 1;
}

.event-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.event-location {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.event-description {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.5;
}

.event-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.event-btn:hover {
    background-color: var(--accent-color);
    color: white;
}

/* 葡萄酒展示區域 */
.winery-showcase {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 15px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    margin-bottom: 30px;
}

.showcase-card {
    position: relative;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.showcase-card--large {
    /* 兩列佈局 */
}

.showcase-card--full {
    grid-column: 1 / -1; /* 橫跨所有列 */
    display: flex;
    flex-direction: row;
}

.showcase-card--full .showcase-image {
    width: 50%;
}

.showcase-card--full .showcase-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.showcase-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

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

.showcase-card:hover .showcase-image img {
    transform: scale(1.05);
}

.showcase-content {
    padding: 25px;
}

.showcase-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.showcase-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.showcase-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.showcase-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-color);
    letter-spacing: 1px;
    position: relative;
}

.showcase-link:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.showcase-link:hover:after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 響應式樣式 */
@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .showcase-card--full {
        flex-direction: column;
    }
    
    .showcase-card--full .showcase-image,
    .showcase-card--full .showcase-content {
        width: 100%;
        height: auto;
    }
}

/* 響應式設計 */
@media (max-width: 992px) {
    .slider-content {
        width: 80%;
        padding: 40px;
    }
    
    .promotion-slide-content {
        width: 70%;
    }
    
    .events-container,
    .promotion-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .hotkey-buttons {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .slider-content {
        width: 100%;
        padding: 30px;
    }
    
    .slider-title {
        font-size: 24px;
    }
    
    .hotkey-container {
        justify-content: center;
    }
    
    .promotion-slide-content {
        width: 100%;
        padding: 30px;
    }
    
    .promotion-slide-content h3 {
        font-size: 22px;
    }

    .hotkey-buttons {
        padding-left: 30px;
        padding-right: 30px;
    }

    .hotkey-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 640px) {
    .hotkey-buttons {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .events-container,
    .promotion-cards {
        grid-template-columns: 1fr;
    }
    
    .slider-item,
    .promotion-slide-image {
        height: 350px;
    }
}

/* 這里原本是消息欄樣式，已移動到wine-shop-head.css文件中 */
