/**
 * Simple Web3 Identity - Content Blocking CSS
 * Styles for paywall and token-gating functionality
 */

/* Common styles for content blocking */
.swi-paywall,
.swi-token-gate {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5em 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.swi-paywall-message,
.swi-token-gate-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
}

.swi-lock-icon,
.swi-token-icon {
    margin-bottom: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.swi-lock-icon svg,
.swi-token-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.swi-paywall-message h3,
.swi-token-gate-message h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5em;
}

.swi-paywall-message p,
.swi-token-gate-message p {
    margin: 0 0 1.5rem;
    font-size: 1.1em;
    max-width: 600px;
}

.swi-unlock-button,
.swi-verify-button {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.swi-unlock-button:hover,
.swi-verify-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.swi-unlock-button:active,
.swi-verify-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.swi-paywall-content,
.swi-gate-content {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Loading spinner */
.swi-paywall-loading,
.swi-gate-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.swi-loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #6e8efb;
    animation: spin 1s linear infinite;
    margin-bottom: 0.75rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.swi-loading-text {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Token gate specific styles */
.swi-token-info {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9em;
    width: 100%;
    max-width: 400px;
}

.swi-token-contract,
.swi-token-balance,
.swi-token-id {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.swi-token-contract:last-child,
.swi-token-balance:last-child,
.swi-token-id:last-child {
    margin-bottom: 0;
}

.swi-token-address {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Dark mode adjustments */
.swi-dark-theme .swi-paywall,
.swi-dark-theme .swi-token-gate {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
}

.swi-dark-theme .swi-lock-icon,
.swi-dark-theme .swi-token-icon {
    background: rgba(255, 255, 255, 0.05);
}

.swi-dark-theme .swi-token-info {
    background: rgba(255, 255, 255, 0.05);
}

.swi-dark-theme .swi-token-address {
    background: rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .swi-paywall-message,
    .swi-token-gate-message {
        padding: 1.5rem 1rem;
    }
    
    .swi-paywall-content,
    .swi-gate-content {
        padding: 1rem;
    }
    
    .swi-token-info {
        max-width: 100%;
    }
    
    .swi-paywall-message h3,
    .swi-token-gate-message h3 {
        font-size: 1.3em;
    }
    
    .swi-paywall-message p,
    .swi-token-gate-message p {
        font-size: 1em;
    }
}
