/**
 * WP Watermark Remover - Frontend Styles
 */

/* Container */
.wwr-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Header */
.wwr-header {
    text-align: center;
    margin-bottom: 2rem;
}

.wwr-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem;
}

.wwr-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

/* Credits Bar */
.wwr-credits-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.wwr-credit-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #0369a1;
}

.wwr-credits-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.wwr-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #7c3aed;
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 2px solid #c4b5fd;
}

.wwr-login-notice a {
    color: #6366f1;
    text-decoration: underline;
}

/* Buttons */
.wwr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

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

.wwr-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.wwr-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.wwr-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.wwr-btn-secondary:hover:not(:disabled) {
    background: #e5e7eb;
}

.wwr-btn-outline {
    background: white;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.wwr-btn-outline:hover {
    background: #eef2ff;
}

.wwr-btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.wwr-cost {
    font-weight: 400;
    opacity: 0.8;
}

/* Upload Zone */
.wwr-canvas-wrapper {
    position: relative;
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
}

.wwr-upload-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    border: 3px dashed #d1d5db;
    border-radius: 16px;
    background: #f9fafb;
    transition: all 0.3s;
}

.wwr-upload-zone.wwr-dragover {
    border-color: #6366f1;
    background: #eef2ff;
}

.wwr-upload-content {
    text-align: center;
    padding: 2rem;
}

.wwr-upload-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.wwr-upload-or {
    color: #9ca3af;
    margin: 1rem 0;
}

.wwr-upload-hint {
    color: #9ca3af;
    font-size: 0.75rem;
    margin-top: 1rem;
}

/* Editor */
.wwr-editor {
    background: #1f2937;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wwr-editor canvas {
    max-width: 100%;
    border-radius: 8px;
    cursor: crosshair;
}

/* Controls */
.wwr-controls {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.wwr-brush-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4b5563;
}

.wwr-brush-controls input[type="range"] {
    width: 150px;
    accent-color: #6366f1;
}

.wwr-action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Result */
.wwr-result {
    text-align: center;
}

.wwr-result h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.wwr-result img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.wwr-result-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Loading */
.wwr-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.wwr-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: wwr-spin 1s linear infinite;
}

@keyframes wwr-spin {
    to {
        transform: rotate(360deg);
    }
}

.wwr-loading p {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    color: #374151;
    font-weight: 600;
}

.wwr-loading-note {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 400 !important;
}

/* Modal */
.wwr-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wwr-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.wwr-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.wwr-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wwr-modal-close:hover {
    background: #e5e7eb;
}

.wwr-modal-content h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    color: #1f2937;
}

.wwr-modal-subtitle {
    color: #6b7280;
    margin: 0 0 1.5rem;
}

/* Pricing Cards */
.wwr-pricing-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.wwr-pricing-card {
    position: relative;
    padding: 1.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.wwr-pricing-card:hover {
    border-color: #a5b4fc;
}

.wwr-pricing-card.wwr-selected {
    border-color: #6366f1;
    background: #eef2ff;
}

.wwr-pricing-card.wwr-pricing-popular {
    border-color: #6366f1;
}

.wwr-pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.wwr-pricing-credits {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
}

.wwr-pricing-label {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.wwr-pricing-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6366f1;
}

.wwr-pricing-per {
    font-size: 0.75rem;
    color: #9ca3af;
}

.wwr-pricing-save {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #10b981;
}

.wwr-checkout-btn {
    width: 100%;
}

/* Responsive */
@media (max-width: 640px) {
    .wwr-container {
        padding: 1rem;
    }

    .wwr-credits-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .wwr-controls {
        flex-direction: column;
    }

    .wwr-action-buttons {
        width: 100%;
        justify-content: center;
    }

    .wwr-pricing-options {
        grid-template-columns: 1fr;
    }

    .wwr-modal-content {
        padding: 1.5rem;
    }
}