/* Reset basic styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.agegate-body {
    font-family: 'Inter', -apple-system, sans-serif;
    overflow: hidden; /* Prevent background scrolling behind gate */
    width: 100vw;
    height: 100vh;
}

/* Fullscreen Background Loader */
.agegate-fullscreen-bg {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

/* Modal Window Base */
.agegate-modal {
    width: 90%;
    max-width: 420px;
    padding: 45px 35px;
    border-radius: 24px;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Glassmorphism Variants - Using modern backdrop-filters */
.agegate-modal.is-glassmorphic {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.agegate-modal.is-solid {
    background: #1a1a1a;
    border: 1px solid #333;
}

/* Internal Components */
.agegate-logo {
    max-height: 80px;
    max-width: 100%;
    margin-bottom: 20px;
    object-fit: contain;
}

/* Typography styles */
.agegate-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.agegate-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 24px;
    font-weight: 400;
}

/* Text Input Styling */
.agegate-input-name {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    margin-bottom: 28px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.agegate-input-name::placeholder {
    color: rgba(255,255,255,0.6);
}

.agegate-input-name:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255,255,255,0.7);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
}

/* Button Layouts */
.agegate-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.agegate-btn-yes, .agegate-btn-no {
    flex: 1;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

/* Affirmative Button */
.agegate-btn-yes {
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.agegate-btn-yes:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

.agegate-btn-yes:active {
    transform: translateY(1px);
}

/* Negative Button */
.agegate-btn-no {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.agegate-btn-no:hover {
    background: rgba(255,255,255,0.15);
}

/* Legal Terms Checkbox */
.agegate-legal {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.agegate-legal label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
}

.agegate-legal input[type="checkbox"] {
    accent-color: #4CAF50;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Entry Animations */
.fade-in-up {
    animation: fadeInUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
