/* =================================================================
   TIER GATE COMPONENT STYLES
   ================================================================= */

/* Base tier gate styles */
.tier-gate-block,
.tier-gate-overlay,
.tier-gate-limit,
.tier-gate-badge {
    position: relative;
}

/* =================================================================
   BLOCK MODE - Completely blocks access
   ================================================================= */
.tier-gate-block {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: rgba(15, 15, 17, 0.95);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 12px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.tier-restriction-message {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}

.tier-restriction-message .restriction-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: rgba(255, 255, 255, 0.4);
}

.tier-restriction-message .restriction-icon svg {
    width: 100%;
    height: 100%;
}

.tier-restriction-message h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.tier-restriction-message p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.upgrade-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(75, 85, 99, 0.8), rgba(55, 65, 81, 0.8));
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.upgrade-button:hover {
    background: linear-gradient(135deg, rgba(75, 85, 99, 1), rgba(55, 65, 81, 1));
    border-color: rgba(75, 85, 99, 0.7);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

/* =================================================================
   OVERLAY MODE - Shows content with upgrade overlay
   ================================================================= */
.tier-gate-overlay {
    position: relative;
}

.tier-gate-content {
    position: relative;
    filter: blur(2px);
    opacity: 0.6;
    pointer-events: none;
}

.tier-restriction-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 10;
}

.restriction-popup {
    background: rgba(15, 15, 17, 0.95);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    max-width: 300px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.restriction-popup .restriction-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: rgba(255, 255, 255, 0.4);
}

.restriction-popup .restriction-icon svg {
    width: 100%;
    height: 100%;
}

.restriction-popup h4 {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.upgrade-button-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(75, 85, 99, 0.8), rgba(55, 65, 81, 0.8));
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.upgrade-button-small:hover {
    background: linear-gradient(135deg, rgba(75, 85, 99, 1), rgba(55, 65, 81, 1));
    border-color: rgba(75, 85, 99, 0.7);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

/* =================================================================
   LIMIT MODE - Shows limited content with upgrade notice
   ================================================================= */
.tier-gate-limit {
    position: relative;
}

.tier-limit-notice {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(15, 15, 17, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 8px;
    text-align: center;
}

.tier-limit-notice p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.upgrade-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.upgrade-link:hover {
    color: white;
    text-decoration: underline;
}

/* =================================================================
   BADGE MODE - Shows content with tier requirement badge
   ================================================================= */
.tier-gate-badge {
    position: relative;
}

.tier-badge-overlay {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 5;
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: rgba(75, 85, 99, 0.9);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */
@media (max-width: 768px) {
    .tier-restriction-message {
        padding: 1.5rem;
    }
    
    .tier-restriction-message h3 {
        font-size: 1.125rem;
    }
    
    .restriction-popup {
        max-width: 280px;
        padding: 1.25rem;
    }
    
    .restriction-popup h4 {
        font-size: 0.9rem;
    }
    
    .tier-badge-overlay {
        top: 0.25rem;
        right: 0.25rem;
    }
}

/* =================================================================
   INTEGRATION WITH EXISTING TIER RESTRICTIONS
   ================================================================= */
.tier-upgrade-overlay.tier-gate-overlay {
    /* Ensure compatibility with existing tier restriction styles */
}

.tier-upgrade-prompt.restriction-popup {
    /* Ensure compatibility with existing upgrade prompt styles */
}
