/* 
 * Age Gate Pro - Modern Glassmorphism Design
 * Edit colors and fonts here.
 */

:root {
    /* Brand Colors - Edit these to match your site */
    --agp-green: #193F2A;
    --agp-gold: #70731C;
    --agp-cream: #F9F7F2;
    --agp-white: #ffffff;
    --agp-text: #193F2A;
    --agp-text-muted: rgba(25, 63, 42, 0.7);
    
    /* Fonts */
    --agp-font-serif: "Noto Serif", Georgia, serif;
    --agp-font-sans: "Noto Sans", sans-serif;
}

/* Overlay Container */
.agp-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2147483647 !important; /* Maximum possible z-index */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(25, 63, 42, 0.98) !important; /* Slightly more opaque */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
    box-sizing: border-box;
    pointer-events: auto !important;
}

/* The Card */
.agp-card {
    position: relative;
    max-width: 450px;
    width: 100%;
    background: var(--agp-cream);
    border: 1px solid rgba(112, 115, 28, 0.2); /* Subtle Gold border */
    border-radius: 4px; /* Classic sharp corners */
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    pointer-events: auto !important;
}

/* Subtle Pattern Overlay */
.agp-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
}

.agp-content {
    position: relative;
    z-index: 99999999 !important;
    pointer-events: auto !important;
}

/* Badge */
.agp-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(25, 63, 42, 0.05);
    border: 1px solid rgba(112, 115, 28, 0.2);
    font-family: var(--agp-font-sans);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--agp-gold);
    margin-bottom: 25px;
}

/* Typography */
.agp-title {
    font-family: var(--agp-font-serif);
    font-size: 32px;
    color: var(--agp-green);
    margin: 0 0 20px 0;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.agp-message {
    font-family: var(--agp-font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--agp-text-muted);
    margin-bottom: 40px;
}

/* Buttons */
.agp-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: auto !important;
}

.agp-btn {
    width: 100%;
    padding: 16px 30px;
    border-radius: 2px;
    font-family: var(--agp-font-sans);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer !important;
    transition: all 0.3s ease;
    border: 2px solid transparent !important; /* Ensure border exists */
    pointer-events: auto !important;
    display: block !important;
    position: relative !important;
    z-index: 100000000 !important; /* Extremely high z-index for buttons */
}

.agp-btn:active {
    transform: scale(0.98);
    opacity: 0.8;
}

.agp-btn-primary {
    background: var(--agp-green);
    color: var(--agp-cream);
    box-shadow: 0 4px 15px rgba(25, 63, 42, 0.2);
}

.agp-btn-primary:hover {
    background: #245a3c;
    transform: translateY(-2px);
}

.agp-btn-secondary {
    background: transparent;
    color: var(--agp-gold);
    border: 1px solid rgba(112, 115, 28, 0.4);
}

.agp-btn-secondary:hover {
    background: rgba(112, 115, 28, 0.05);
    border-color: var(--agp-gold);
}

/* Footer */
.agp-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(112, 115, 28, 0.1);
}

.agp-footer p {
    font-family: var(--agp-font-sans);
    font-size: 11px;
    color: var(--agp-gold);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .agp-card {
        padding: 40px 25px;
    }
    
    .agp-title {
        font-size: 26px;
    }
}
