/**
 * ThreeGigs Subscription Styles
 * Minimal styling for subscription forms and alerts
 */

/* ========================================
   SUBSCRIPTION ALERTS
   ======================================== */

.subscription-alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    animation: slideInDown 0.3s ease-out;
}

.subscription-alert__message {
    flex: 1;
}

.subscription-alert__close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    margin-left: 1rem;
    padding: 0;
    width: 24px;
    height: 24px;
}

.subscription-alert__close:hover {
    opacity: 1;
}

/* Alert Types - Dark theme (default) */
.subscription-alert--success {
    background: rgba(46, 213, 115, 0.15);
    border-left: 4px solid #2ed573;
    color: #5dfc8d;
}

.subscription-alert--error {
    background: rgba(255, 71, 87, 0.15);
    border-left: 4px solid #ff4757;
    color: #ff6b7a;
}

.subscription-alert--info {
    background: rgba(52, 152, 219, 0.15);
    border-left: 4px solid #3498db;
    color: #5dade2;
}

/* Light theme overrides */
.light-theme .subscription-alert--success {
    background: rgba(46, 213, 115, 0.1);
    color: #1e824c;
}

.light-theme .subscription-alert--error {
    background: rgba(255, 71, 87, 0.1);
    color: #c0392b;
}

.light-theme .subscription-alert--info {
    background: rgba(52, 152, 219, 0.1);
    color: #2c3e50;
}

/* Close button colors */
.subscription-alert__close {
    color: inherit;
}

/* ========================================
   SUBSCRIPTION MODAL
   ======================================== */

.subscription-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(4px);
    z-index: 999999 !important;
    animation: fadeIn 0.2s ease-out;
}

.subscription-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: var(--card-bg, #1A1A1A);
    border: 2px solid var(--border, #2D2D2D);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 400px;
    width: calc(100% - 2rem);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 1000000 !important;
    animation: scaleIn 0.3s ease-out;
}

.subscription-modal__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscription-modal__icon svg {
    width: 36px;
    height: 36px;
}

.subscription-modal--success .subscription-modal__icon {
    background: rgba(46, 213, 115, 0.15);
    color: #2ed573;
}

.subscription-modal--error .subscription-modal__icon {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
}

.subscription-modal--info .subscription-modal__icon {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.subscription-modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text, #FFFFFF);
}

.subscription-modal__message {
    font-size: 1rem;
    color: var(--text-light, #9CA3AF);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.subscription-modal__btn {
    background: linear-gradient(135deg, #8A2BE2 0%, #9932CC 100%);
    color: white;
    border: none;
    padding: 0.875rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscription-modal__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
}

/* Light theme modal */
.light-theme .subscription-modal {
    background: #FFFFFF;
    border-color: #E5E7EB;
}

.light-theme .subscription-modal__title {
    color: #1A1A1A;
}

.light-theme .subscription-modal__message {
    color: #6B7280;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ========================================
   SUBSCRIPTION COUNTER
   ======================================== */

[data-subscription-count] {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    transition: transform 0.2s;
}

[data-subscription-count]:hover {
    transform: scale(1.05);
}

/* ========================================
   FORM LOADING STATE
   ======================================== */

[data-subscription-submit]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .subscription-alert {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
}
