/**
 * Age Verification & Membership Plugin Styles
 * Frontend styles for modals, forms, and UI elements
 */

/* ===========================
   OVERLAY & MODAL BASE
   =========================== */
.avm-overlay {
     display: flex;
            align-items: center;
            justify-content: center;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #002035d1;
            z-index: 99999;
			background: #002035d1;
    backdrop-filter: blur(8px);
    animation: avmModalSlideIn 0.3s ease-out;
}

.avm-modal {
    background: #f5f5f7c5;
            border-radius: 20px;
            padding: 0 2rem 2rem;
            max-width: 550px;
            width: 90%;
            text-align: center;
              backdrop-filter: blur(10px);
        overflow-y: visible;
    box-shadow: 0 10px 40px rgba(255,255, 255, 0.4);
    animation: avmModalSlideIn 0.3s ease-out;
}

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

.avm-modal-content {
    padding: 0 15px 15px;
	text-align: center;
    overflow-y: visible;
}
.avm-modal {
            color: #002035;
        }
.avm-modal a{
            text-decoration: none;
        }
.avm-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #002035;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.avm-modal-close:hover {
    transform: rotate(90deg);
}

/* ===========================
   MODAL HEADER
   =========================== */
.avm-modal-header {
    text-align: center;
    overflow-y: visible;
    padding: 0 15px 10px ;

}

.avm-logo-circle {
    margin: -45px auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
	overflow-y: visible;
	padding:0;

}
   .avm-modal-header h3{
			color: #002035; 
			
		}
		.avm-modal-header h1{
			font-family: var(--wp--preset--font-family--rage-italic) !important;
			  color: #900000;
			font-weight: 700;
			 margin-bottom: .5rem;
		}

.avm-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.avm-modal-header h2 {
    margin: 0 0 10px;
    color: #002035;
	font-weight: 400;
}
	.divider{
			border-width: 1px 0;
			border-color: var(--wp--preset--color--primary)
				display:flex;
			margin: 1rem auto;
			padding: 0.1rem auto;
			justify-content:center;
		}
.avm-age-gate-subtitle, h6 {
    color: #002035;
    font-size: 18px;
	margin-bottom:5px;
	line-height: 1.1;   
	font-weight: 700;
}

/* ===========================
   MODAL BODY
   =========================== */
.avm-modal-body {
    padding: 0 15px 10px;
}

/* ===========================
   AGE GATE SPECIFIC
   =========================== */
.avm-age-gate-message {
    text-align: center;
    color: #002035;
    font-size: 16px;
    line-height: 1.1;
    margin-bottom: 15px;
	font-weight:700;
}

.avm-age-gate-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 5px auto 15px;
}



.avm-age-gate-disclaimer {
    font-size: 13px;
            color: #6c757d;
            margin: 3px auto;
        }
		
.avm-modal .divider{
    height: 2.5px;
    margin: 15px auto;
    background: linear-gradient(90deg, #bf870000, #bf9f46, #bf870000);
    width: 60%;
    display: block;
    align-self: center;
	text-align:center;
}
/* ===========================
   BUTTONS
   =========================== */
.avm-btn {
  padding: 10px 20px;
    border: none !important;
    border-radius: 15px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
			color: White;
}

.avm-btn-primary {
    background: linear-gradient(180deg, #234f74 0%, #04304e 80%,#002035 100%);
    color: #fff;
}

.avm-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
	 background: var(--wp--preset--gradient--accent-gradient);
    border: 1px solid #bf8700;
}


.avm-btn-secondary  {
     background: linear-gradient(180deg, #a30D0D 0%, #780101 100%);
     color: #fff ;
	
	
	
}

.avm-btn-secondary:hover {
	transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
  border: 2px solid #0000009a;
	background:linear-gradient(180deg, #900000 0%, #780101 100%)
}

.avm-modal .login-btn{
			background: var(--wp--preset--gradient--pale-ocean);
			border: 1.5px solid #002035c9;
			border-radius: 10px ;
			color:#002035c9;
			padding: 10px 20px;
		
			font-weight:700;
			min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
		}

.avm-btn-block {
    width: 100%;
    display: block;
}

.avm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===========================
   FORMS
   =========================== */
.avm-form {
    color: #002035;
}

.avm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.avm-form-group {
    margin-bottom: 20px;
}

.avm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e0e0e0;
    font-size: 14px;
}

.avm-form-group input[type="text"],
.avm-form-group input[type="email"],
.avm-form-group input[type="password"],
.avm-form-group input[type="tel"],
.avm-form-group input[type="date"],
.avm-form-group select,
.avm-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #4A84A5CC;
    border-radius: 6px;
    background: #fff;
    color: #002035;
    font-size: 16px;
    transition: border-color 0.3s;
}

.avm-form-group input:focus,
.avm-form-group select:focus,
.avm-form-group textarea:focus {
    outline: none;
    border-color: #002035;
}

.avm-form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #8b8b9f;
}

.avm-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.avm-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.avm-form-actions {
    margin-top: 30px;
}

.avm-form-footer {
    margin-top: 20px;
    text-align: center;
}

.avm-form-footer p {
    color: #002035;
    font-size: 14px;
}

.avm-form-footer a {
    color: #047EC5;
    text-decoration: none;
    font-weight: 600;
}

.avm-form-footer a:hover {
    text-decoration: underline;
}

/* ===========================
   MEMBERSHIP PLANS
   =========================== */
.avm-membership-plans {
    margin-bottom: 30px;
}

.avm-membership-plans h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

.avm-plans-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.avm-plan-card {
    background: #1a1a2e;
    border: 2px solid #2d3561;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.avm-plan-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.avm-plan-card.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.avm-plan-card.selected::after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

.avm-plan-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.avm-plan-price {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.avm-plan-price small {
    font-size: 14px;
    color: #8b8b9f;
}

.avm-plan-description {
    font-size: 13px;
    color: #b8b8d1;
    margin-bottom: 15px;
}

.avm-plan-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.avm-plan-benefits li {
    font-size: 12px;
    color: #e0e0e0;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.avm-plan-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* ===========================
   SOCIAL LOGIN
   =========================== */
.avm-social-login {
    margin-top: 20px;
}

.avm-divider {
    text-align: center;
    color: #8b8b9f;
    font-size: 14px;
    margin: 20px 0;
    position: relative;
}

.avm-divider::before,
.avm-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #2d3561;
}

.avm-divider::before {
    left: 0;
}

.avm-divider::after {
    right: 0;
}

.avm-social-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.avm-btn-social {

			background-color: var(--wp--preset--gradient--pale-ocean);
			border: 1.5px solid #002035c9!important;
			border-radius: 10px !important;
			color:#002035c9;
			padding: 10px 20px;
			width: 40%;
			font-weight:700;
			min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
		}
		.login-btn:hover {
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
  border: 2px solid #002035;
			color:#002035;
} flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.avm-btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.avm-btn-social img {
    width: 20px;
    height: 20px;
}

/* ===========================
   SUCCESS MESSAGE
   =========================== */
.avm-success-message {
    text-align: center;
    padding: 40px 20px;
}

.avm-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #4CAF50;
    color: #fff;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.avm-success-message h3 {
    color: #fff;
    margin-bottom: 10px;
}

.avm-success-message p {
    color: #b8b8d1;
}

/* ===========================
   MEMBERSHIP NOTICE
   =========================== */
.avm-membership-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.avm-membership-notice p {
    margin: 0;
    color: #856404;
}

.avm-membership-notice a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.avm-membership-notice a:hover {
    text-decoration: underline;
}

/* ===========================
   MEMBERSHIP BADGE
   =========================== */
.avm-membership-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.avm-badge-free {
    background: #e0e0e0;
    color: #333;
}

.avm-badge-vip {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

/* ===========================
   ACCOUNT MEMBERSHIP CARD
   =========================== */
.avm-account-membership {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.avm-membership-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.avm-membership-name {
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0;
}

.avm-membership-benefits h4 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.avm-membership-benefits ul {
    list-style: none;
    padding: 0;
}

.avm-membership-benefits li {
    padding: 5px 0;
    padding-left: 25px;
    position: relative;
}

.avm-membership-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.avm-cashback-balance {
    margin-top: 20px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 6px;
}

.avm-cashback-amount {
    font-size: 24px;
    font-weight: 700;
    color: #bf8700;
    margin: 5px 0;
}

.avm-verification-badge {
    margin-top: 15px;
    padding: 10px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    color: #155724;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===========================
   LOADING STATE
   =========================== */
.avm-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.avm-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: avmSpin 0.6s linear infinite;
}

@keyframes avmSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .avm-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .avm-form-row {
        grid-template-columns: 1fr;
    }
    
    .avm-plans-container {
        grid-template-columns: 1fr;
    }
    
    .avm-social-buttons {
        flex-direction: column;
    }
    
    .avm-btn-social {
        width: 100%;
    }
}