/* Age Gate Modal Styles */

/* Overlay */
.my-age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.my-age-gate-overlay.is-visible {
    opacity: 1;
}

/* Modal Box */
.my-age-gate-modal {
    background: #fff;
    padding: 50px 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Logo */
.modal-logo {
    margin-bottom: 25px;
}

.modal-logo img {
    max-width: 150px;
    height: auto;
    display: inline-block;
}

/* Title */
.modal-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.3;
}

/* Description */
.modal-description {
    font-size: 18px;
    margin: 0 0 30px 0;
    color: #666;
    line-height: 1.5;
}

/* Buttons */
.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.btn {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    font-family: inherit;
}

.btn:focus {
    outline: 3px solid #0071a1;
    outline-offset: 2px;
}

.btn-yes {
    background: #28a745;
    color: #fff;
}

.btn-yes:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.btn-no {
    background: #dc3545;
    color: #fff;
}

.btn-no:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Message (when No is clicked) */
.modal-message {
    margin-top: 25px;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}

.modal-message p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 768px) {
    .my-age-gate-modal {
        padding: 40px 30px;
        max-width: 90%;
    }

    .modal-title {
        font-size: 26px;
    }

    .modal-description {
        font-size: 16px;
    }

    .btn {
        padding: 14px 35px;
        font-size: 17px;
        min-width: 44px;
        /* Touch target */
        min-height: 44px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .my-age-gate-modal {
        padding: 30px 20px;
        margin: 15px;
        max-width: calc(100% - 30px);
    }

    .modal-logo img {
        max-width: 120px;
    }

    .modal-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .modal-description {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        padding: 14px 30px;
        font-size: 16px;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .my-age-gate-modal {
        max-height: 90vh;
        overflow-y: auto;
        padding: 25px 20px;
    }

    .modal-logo {
        margin-bottom: 15px;
    }

    .modal-logo img {
        max-width: 100px;
    }

    .modal-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .modal-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }

    .btn:focus {
        outline-width: 4px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    .my-age-gate-overlay,
    .btn {
        transition: none;
    }

    .btn:hover {
        transform: none;
    }
}