/**
 * Age Gate Styles for Cigar Query
 * 年龄验证弹窗样式
 */

/* ================= PC版本样式 ================= */

.age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
}

.age-gate-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    animation: ageGateFadeIn 0.3s ease-out;
}

@keyframes ageGateFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.age-gate-header {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    padding: 25px 20px;
    text-align: center;
}

.age-gate-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.age-gate-content {
    padding: 30px;
    text-align: center;
}

.age-gate-question {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.age-gate-question strong {
    color: #DC143C;
}

.age-gate-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.age-gate-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.age-gate-btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    min-width: 150px;
}

.age-gate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.age-gate-btn-yes {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.age-gate-btn-yes:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

.age-gate-btn-no {
    background: linear-gradient(135deg, #f44336 0%, #da190b 100%);
    color: white;
}

.age-gate-btn-no:hover {
    background: linear-gradient(135deg, #da190b 0%, #b71c1c 100%);
}

.age-gate-warning {
    background: #FFF3CD;
    border-top: 3px solid #DC143C;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.warning-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.warning-text {
    text-align: left;
}

.warning-text p {
    margin: 0;
    font-size: 13px;
    color: #856404;
    line-height: 1.5;
}

.warning-text p strong {
    color: #DC143C;
}

/* ================= Mobile版本样式 ================= */

.age-gate-overlay-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
}

.age-gate-box-mobile {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    width: 85%;
    max-width: 320px;
    overflow: hidden;
    animation: ageGateFadeInMobile 0.3s ease-out;
}

@keyframes ageGateFadeInMobile {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.age-gate-header-mobile {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    padding: 18px 15px;
    text-align: center;
}

.age-gate-header-mobile h2 {
    color: #ffffff;
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
}

.age-gate-content-mobile {
    padding: 20px;
    text-align: center;
}

.age-gate-question-mobile {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.age-gate-question-mobile strong {
    color: #DC143C;
}

.age-gate-subtitle-mobile {
    font-size: 14px;
    color: #666;
    margin-bottom: 18px;
}

.age-gate-buttons-mobile {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.age-gate-btn-mobile {
    padding: 12px 25px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    min-width: 100px;
}

.age-gate-btn-mobile:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.age-gate-btn-yes-mobile {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.age-gate-btn-no-mobile {
    background: linear-gradient(135deg, #f44336 0%, #da190b 100%);
    color: white;
}

.age-gate-warning-mobile {
    background: #FFF3CD;
    border-top: 2px solid #DC143C;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-icon-mobile {
    font-size: 24px;
    flex-shrink: 0;
}

.warning-text-mobile {
    text-align: left;
}

.warning-text-mobile p {
    margin: 0;
    font-size: 11px;
    color: #856404;
    line-height: 1.4;
}

.warning-text-mobile p strong {
    color: #DC143C;
}

/* ================= 健康警告Footer样式 ================= */

.health-warning-footer {
    margin-top: 20px;
    padding: 15px;
    background: #f8f8f8;
    border-top: 2px solid #DC143C;
    text-align: center;
}

.health-warning-content {
    max-width: 800px;
    margin: 0 auto;
}

.health-warning-icon {
    font-size: 24px;
    color: #DC143C;
    margin-bottom: 8px;
}

.health-warning-text {
    color: #DC143C;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.5;
    margin: 0;
}

.health-warning-subtext {
    color: #666;
    font-size: 11px;
    margin-top: 5px;
}

/* ================= 响应式适配 ================= */

@media screen and (max-width: 480px) {
    .age-gate-box {
        width: 95%;
        margin: 10px;
    }
    
    .age-gate-header h2 {
        font-size: 20px;
    }
    
    .age-gate-content {
        padding: 20px;
    }
    
    .age-gate-question {
        font-size: 16px;
    }
    
    .age-gate-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .age-gate-btn {
        width: 100%;
        padding: 12px 20px;
    }
    
    .age-gate-warning {
        flex-direction: column;
        text-align: center;
    }
    
    .warning-text {
        text-align: center;
    }
}

/* 隐藏弹窗时的样式 */
.age-gate-hidden {
    display: none !important;
}