/**
 * Cloudpainter Authentication & Protection Styles
 */

/* Toast animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.auth-toast {
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Subscription locked indicator */
.subscription-locked {
    position: relative;
    opacity: 0.7;
    cursor: not-allowed !important;
}

.subscription-locked::after {
    content: '\F623'; /* Bootstrap Icons lock */
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: #ffc107;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Protected canvas styles */
.protected-canvas {
    transition: filter 0.3s ease;
}

.protected-canvas.blurred {
    filter: blur(20px);
}

/* Watermark overlay disabled */
.watermark-overlay {
    position: relative;
}

/* Auth modal enhancements */
#auth-modal .modal-content {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

#auth-modal .card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#auth-modal .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#auth-modal .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Tier badge colors */
.tier-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.tier-badge.tier-free {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

.tier-badge.tier-gold {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.tier-badge.tier-diamond {
    background: rgba(0, 191, 255, 0.2);
    color: #00bfff;
}

.tier-badge.tier-netherite {
    background: rgba(74, 74, 74, 0.4);
    color: #c0c0c0;
    border: 1px solid rgba(255, 107, 53, 0.5);
}

/* Export button states */
.btn-export {
    position: relative;
    overflow: hidden;
}

.btn-export.locked {
    background: linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 100%);
    border-color: #ffc107;
}

.btn-export.locked::before {
    content: '\F623';
    font-family: 'bootstrap-icons';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffc107;
}

/* User dropdown in navbar */
#auth-container .dropdown-toggle::after {
    margin-left: 0.5rem;
}

#auth-container .dropdown-menu {
    min-width: 200px;
}

#auth-container .dropdown-item-text {
    padding: 0.5rem 1rem;
}

/* Upgrade modal tier cards */
.upgrade-tier-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.upgrade-tier-card:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Pulsing lock icon for emphasis */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.lock-pulse {
    animation: pulse 2s infinite;
}

/* Screenshot prevention visual feedback */
.screenshot-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    color: white;
    font-size: 1.5rem;
    text-align: center;
    pointer-events: none;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Disable text selection on protected elements */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Canvas container protection overlay */
.canvas-protection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    pointer-events: none;
}

.canvas-protection.active {
    pointer-events: all;
    cursor: not-allowed;
}

/* Divider with text */
.divider-with-text {
    display: flex;
    align-items: center;
    text-align: center;
}

.divider-with-text::before,
.divider-with-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.divider-with-text span {
    padding: 0 1rem;
}

/* Google Sign-In button styling */
#google-signin-btn {
    font-weight: 500;
    border: 1px solid #dadce0;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#google-signin-btn:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

#google-signin-btn:active {
    background-color: #e8e8e8;
}

#google-signin-container {
    min-height: 0;
}

#google-signin-container:not(:empty) {
    min-height: 44px;
}
