/* Main container */
.promotion_detail_page {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans TC', sans-serif;
    background: #FFFFFF;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.promotion_detail_page *,
.promotion_detail_page *::before,
.promotion_detail_page *::after {
    box-sizing: border-box;
}

/* Status bar - hidden by default */
.promotion_detail_page .status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: #FFFFFF;
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 0 21px;
    z-index: 1000;
}

.promotion_detail_page .status-time {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    letter-spacing: -0.3px;
}

.promotion_detail_page .status-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* App Bar - Fixed at top with high z-index */
.promotion_detail_page .app-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 46px;
    background: #FFFFFF;
    border-bottom: 1px solid #DADADA;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 999;
}

.promotion_detail_page .back-btn {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.promotion_detail_page .back-btn svg {
    width: 6px;
    height: 12px;
    color: #00BACB;
}

.promotion_detail_page .app-bar-title {
    flex: 1;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #00BACB;
    text-align: center;
    letter-spacing: -0.29px;
    padding: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}

.promotion_detail_page .share-btn {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    color: #00BACB;
}

.promotion_detail_page .share-btn svg {
    width: 20px;
    height: 22px;
}

/* Content area - with top padding to account for fixed app-bar */
.promotion_detail_page .content {
    flex: 1;
    overflow-y: auto;
    padding: 66px 20px 130px;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
}

.promotion_detail_page .content-inner {
    max-width: 600px;
    margin: 0 auto;
}

.promotion_detail_page .content-title {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    line-height: 1.45;
    margin: 0 0 8px 0;
}

.promotion_detail_page .content-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.promotion_detail_page .content-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #828282;
    letter-spacing: 0.24px;
}

.promotion_detail_page .bookmark-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.promotion_detail_page .bookmark-btn svg {
    width: 22px;
    height: 24px;
}

.promotion_detail_page .bookmark-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #000000;
}

.promotion_detail_page .content-image {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 335 / 169;
    background: #D1D1D1;
    overflow: hidden;
    margin-bottom: 20px;
}

.promotion_detail_page .content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promotion_detail_page .content-description {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    line-height: 1.75;
    letter-spacing: 0.28px;
    white-space: pre-line;
}

.promotion_detail_page .content-description img {
    width: 100%;
    max-width: 600px;
}

.promotion_detail_page .bottom-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 20px;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.promotion_detail_page .bottom-section::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background: #000000;
    border-radius: 100px;
}

.promotion_detail_page .primary-btn {
    width: 100%;
    max-width: 600px;
    height: 45px;
    background: #74CBCD;
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promotion_detail_page .primary-btn:hover {
    background: #5CB8BA;
}

.promotion_detail_page .primary-btn:active {
    transform: scale(0.98);
}

.promotion-sharing-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.sharing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.sharing-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    text-align: center;
}

.sharing-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

.sharing-options {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.share-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.share-icon.facebook {
    background: #1877F2;
}

.share-icon.whatsapp {
    background: #25D366;
}

.share-icon.line {
    background: #00B900;
}

.share-icon.email {
    background: #EA4335;
}

.share-icon.copy {
    background: #666;
}

.share-item span {
    font-size: 12px;
    color: #666;
}

.sharing-content .btn-cancel {
    background: #f5f5f5;
    border: none;
    color: #333;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
}

@media (min-width: 768px) {
    .promotion_detail_page .status-bar {
        display: none;
    }

    .promotion_detail_page .app-bar {
        top: 0;
    }

    .promotion_detail_page .content {
        padding-top: 66px;
    }

    .promotion_detail_page .app-bar-title {
        font-size: 20px;
    }

    .promotion_detail_page .content-title {
        font-size: 20px;
    }

    .promotion_detail_page .content-description {
        font-size: 16px;
    }

    .promotion_detail_page .primary-btn {
        height: 50px;
        font-size: 20px;
    }
}

@supports (padding-top: env(safe-area-inset-top)) {
    .promotion_detail_page .status-bar {
        height: calc(44px + env(safe-area-inset-top));
        padding-top: env(safe-area-inset-top);
    }

    .promotion_detail_page .app-bar {
        top: env(safe-area-inset-top);
    }

    .promotion_detail_page .content {
        padding-top: calc(46px + env(safe-area-inset-top));
    }

    .promotion_detail_page .bottom-section {
        padding-bottom: calc(18px + env(safe-area-inset-bottom));
    }

    .promotion_detail_page .bottom-section::before {
        bottom: calc(8px + env(safe-area-inset-bottom));
    }

    @media (min-width: 768px) {
        .promotion_detail_page .app-bar {
            top: 0;
        }

        .promotion_detail_page .content {
            padding-top: 66px;
        }
    }
}
