/**
 * Frontend-Styles für Paperless-Cloud Plugin
 */

/* Allgemeine Styles */
.paperless-cloud-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #374151;
}

/* Pricing-Section */
.paperless-pricing-section {
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.paperless-pricing-container {
    max-width: 1200px;
    margin: 0 auto;
}

.paperless-pricing-header {
    text-align: center;
    margin-bottom: 4rem;
}

.paperless-pricing-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.paperless-pricing-header p {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Pricing-Switcher */
.paperless-pricing-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.paperless-pricing-switcher label {
    padding: 0.75rem 1.5rem;
    margin: 0 0.25rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #374151;
}

.paperless-pricing-switcher input[type="radio"] {
    display: none;
}

.paperless-pricing-switcher input[type="radio"]:checked + label {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.discount-badge {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Pricing-Grid */
.paperless-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Pricing-Cards */
.paperless-pricing-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.paperless-pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.paperless-pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.paperless-pricing-card:hover::before {
    transform: scaleX(1);
}

.paperless-pricing-card.featured {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    transform: scale(1.05);
}

.paperless-pricing-card.featured::before {
    display: none;
}

.paperless-pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.plan-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: #ef4444;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 16px 0 16px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-header {
    margin-bottom: 2rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.paperless-pricing-card.featured .plan-name {
    color: white;
}

.plan-price {
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.paperless-pricing-card.featured .price-amount {
    color: white;
}

.price-period {
    color: #64748b;
    font-size: 1rem;
}

.paperless-pricing-card.featured .price-period {
    color: rgba(255, 255, 255, 0.8);
}

.plan-description {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.paperless-pricing-card.featured .plan-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Plan-Features */
.plan-features {
    margin-bottom: 2rem;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.plan-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    color: #374151;
    font-size: 0.95rem;
}

.paperless-pricing-card.featured .plan-features li {
    color: rgba(255, 255, 255, 0.9);
}

.plan-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.paperless-pricing-card.featured .plan-features li::before {
    color: #34d399;
}

/* Buttons */
.paperless-stripe-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.paperless-stripe-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.paperless-stripe-button:hover::before {
    left: 100%;
}

.paperless-stripe-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.paperless-pricing-card.featured .paperless-stripe-button {
    background: white;
    color: #3b82f6;
}

.paperless-pricing-card.featured .paperless-stripe-button:hover {
    background: #f8fafc;
    color: #2563eb;
}

.paperless-stripe-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.paperless-stripe-button:disabled::before {
    display: none;
}

/* Loading-Spinner */
.paperless-stripe-button .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 12px;
}

.paperless-pricing-card.featured .paperless-stripe-button .spinner {
    border-color: #3b82f6;
    border-top-color: transparent;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Notification-Modals */
.paperless-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.paperless-modal.active {
    opacity: 1;
    visibility: visible;
}

.paperless-modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.paperless-modal.active .paperless-modal-content {
    transform: scale(1);
}

.paperless-modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.paperless-modal h3 {
    color: #1e293b;
    margin-bottom: 1rem;
}

.paperless-modal p {
    color: #64748b;
    margin-bottom: 2rem;
}

.paperless-modal-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.paperless-modal-button:hover {
    background: #2563eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .paperless-pricing-header h1 {
        font-size: 2rem;
    }
    
    .paperless-pricing-header p {
        font-size: 1rem;
    }
    
    .paperless-pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .paperless-pricing-card {
        padding: 1.5rem;
    }
    
    .paperless-pricing-card.featured {
        transform: none;
    }
    
    .paperless-pricing-card.featured:hover {
        transform: translateY(-4px);
    }
    
    .paperless-pricing-switcher {
        flex-direction: column;
        padding: 1rem;
        border-radius: 12px;
    }
    
    .paperless-pricing-switcher label {
        width: 100%;
        text-align: center;
        margin: 0.25rem 0;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .paperless-pricing-section {
        padding: 2rem 1rem;
    }
    
    .paperless-pricing-header {
        margin-bottom: 2rem;
    }
    
    .paperless-pricing-header h1 {
        font-size: 1.75rem;
    }
    
    .paperless-pricing-card {
        padding: 1rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .paperless-pricing-section {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    }
    
    .paperless-pricing-header h1 {
        color: #f1f5f9;
    }
    
    .paperless-pricing-header p {
        color: #94a3b8;
    }
    
    .paperless-pricing-card {
        background: #334155;
        border-color: #475569;
        color: #f1f5f9;
    }
    
    .plan-name {
        color: #f1f5f9;
    }
    
    .plan-description {
        color: #94a3b8;
    }
    
    .price-amount {
        color: #f1f5f9;
    }
    
    .price-period {
        color: #94a3b8;
    }
    
    .plan-features li {
        color: #e2e8f0;
    }
    
    .paperless-pricing-switcher {
        background: #334155;
        border: 1px solid #475569;
    }
    
    .paperless-pricing-switcher label {
        color: #e2e8f0;
    }
    
    .paperless-modal-content {
        background: #334155;
        color: #f1f5f9;
    }
    
    .paperless-modal h3 {
        color: #f1f5f9;
    }
    
    .paperless-modal p {
        color: #94a3b8;
    }
}
