/* DocuSort Homepage - Pricing Section Styles */

/* =============================================
   PRICING SECTION
   ============================================= */
.pricing {
    padding: 100px 0;
    background: white;
}

.pricing h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Special Offer Banner */
.special-offer {
    background: linear-gradient(135deg, #FF9800, #FF5926);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.3);
    animation: pulse-glow 3s ease-in-out infinite alternate;
}

.special-offer h3 {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.special-offer p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.95;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 8px 32px rgba(255, 152, 0, 0.3);
    }
    100% {
        box-shadow: 0 12px 40px rgba(255, 152, 0, 0.4);
    }
}

/* =============================================
   USER DASHBOARD LOADING STATES
   ============================================= */
.loading-placeholder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-size: 0.9rem;
    animation: loading-pulse 1.5s ease-in-out infinite alternate;
}

.loading-placeholder i {
    animation: spin 1s linear infinite;
}

@keyframes loading-pulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Status Badges für Dashboard */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-loading {
    background: #e3f2fd;
    color: #1976d2;
}

.status-active {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-trial {
    background: #fff3e0;
    color: #f57c00;
}

.status-expired {
    background: #ffebee;
    color: #d32f2f;
}

.status-error {
    background: #ffebee;
    color: #d32f2f;
}

.status-unknown {
    background: #f5f5f5;
    color: #616161;
}

/* Error Messages */
.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    color: #d32f2f;
    font-size: 0.9rem;
}

/* Plan Badges */
.plan-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.plan-basic {
    background: #e3f2fd;
    color: #1976d2;
}

.plan-plus {
    background: #f3e5f5;
    color: #7b1fa2;
}

.plan-enterprise {
    background: #e8f5e8;
    color: #2e7d32;
}

.plan-none {
    background: #f5f5f5;
    color: #616161;
}

/* Days Remaining Warning */
.days-remaining.warning {
    color: #d32f2f;
    font-weight: 600;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
}

.toggle-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.discount,
.discount_mobile {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 0.5rem;
    overflow: hidden;
}

/* Responsive Pricing für große Bildschirme */
@media (min-width: 1600px) {
    .pricing {
        padding: 120px 0;
    }
    
    .pricing h2 {
        font-size: 3.5rem;
    }
    
    .special-offer {
        padding: 2.5rem;
        margin: 3rem 0;
    }
    
    .special-offer h3 {
        font-size: 1.6rem;
    }
    
    .special-offer p {
        font-size: 1.2rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2.5rem;
        max-width: 1600px;
        padding: 4rem 1rem;
    }
    
    .pricing-card {
        padding: 3rem;
        padding-top: 4rem;
    }
    
    .plan-header h3 {
        font-size: 1.75rem;
    }
    
    .amount {
        font-size: 3.5rem;
    }
}

@media (min-width: 2000px) {
    .pricing {
        padding: 140px 0;
    }
    
    .pricing h2 {
        font-size: 4rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 3rem;
        max-width: 1800px;
        padding: 5rem 1rem;
    }
    
    .pricing-card {
        padding: 3.5rem;
        padding-top: 4.5rem;
    }
}

.pricing-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    padding-top: 3.5rem;
    position: relative;
    transition: var(--transition-slow);
    overflow: hidden;
    cursor: pointer;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: #2196F3;
    background: white;
    color: #2196F3;
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2), 0 20px 40px rgba(33, 150, 243, 0.15);
}

.popular-badge {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Plan Header */
.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.25rem;
    margin: 1rem 0;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.amount {
    font-size: 3rem;
    font-weight: 800;
}

.old-price {
    font-size: 2rem;
    text-decoration: line-through;
    color: var(--text-secondary);
    margin-right: 0.5rem;
    opacity: 0.7;
}

.new-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--success-color);
}

.featured .old-price {
    color: rgba(33, 150, 243, 0.5);
}

.featured .new-price {
    color: var(--accent-color);
}

.period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.featured .period {
    color: rgba(33, 150, 243, 0.7);
}

.plan-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.featured .plan-description {
    color: rgba(33, 150, 243, 0.8);
}

/* Plan Features */
.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.plan-features i {
    color: var(--success-color);
    font-size: 1.1rem;
    width: 16px;
    flex-shrink: 0;
}

.plan-features i.upgrade {
    color: var(--primary-color);
}

.plan-features i.special {
    color: var(--accent-color);
}

.featured .plan-features i {
    color: var(--success-color);
}

.featured .plan-features i.upgrade {
    color: var(--primary-color);
}

.featured .plan-features i.special {
    color: var(--accent-color);
}

/* Plan Availability */
.plan-availability {
    text-align: center;
    margin: 1rem 0;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.availability-text {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Plan Buttons */
.btn-plan {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-plan:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-plan:disabled {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    transform: none !important;
}

.btn-featured {
    background: var(--primary-color);
    color: white;
}

.btn-featured:hover {
    background: var(--primary-dark);
}

.btn-featured:disabled {
    background: #f5f5f5 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.btn-coming-soon {
    background: #6b7280 !important;
    color: white !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.btn-coming-soon:hover {
    background: #6b7280 !important;
    transform: none !important;
}

.btn-active {
    background: linear-gradient(135deg, #FF9800, #FF5926);
    color: white;
    cursor: pointer;
}

.btn-manage {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    cursor: pointer;
}

.btn-manage:hover {
    background: linear-gradient(135deg, #45a049, #2E7D32);
    transform: translateY(-2px);
}

.btn-manage:disabled {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
}

.btn-active:hover {
    background: linear-gradient(135deg, #FF9800, #FF5926);
    transform: none;
}

.btn-downgrade {
    background: linear-gradient(135deg, #404040, #282828);
    color: white;
    cursor: pointer;
    opacity: 0.7;
}

.btn-downgrade:hover {
    background: linear-gradient(135deg, #404040, #282828);
    transform: none;
}

/* Pricing Notes */
.pricing-note {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-note i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.annual-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

/* =============================================
   SUPPORT OVERVIEW SECTION
   ============================================= */
.support-overview {
    padding: 6rem 0;
    background: var(--surface-color);
}

.support-overview h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
    padding-inline: 0.5rem;
    overflow: hidden;
    padding-top: 1rem;
}

.support-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: var(--transition-slow);
    overflow: hidden;
    cursor: pointer;
}

.support-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.support-card:hover .support-icon {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.support-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
}

.support-card.featured:hover {
    border-color: var(--primary-dark);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.25);
}

.support-card.premium {
    border-color: #FF9800;
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.15);
}

.support-card.premium:hover {
    border-color: #FF5926;
    box-shadow: 0 20px 40px rgba(255, 152, 0, 0.25);
}

.support-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition-normal);
}

.support-card.premium .support-icon {
    background: linear-gradient(135deg, #FF9800, #FF5926);
}

.support-icon i {
    color: white;
    font-size: 1.5rem;
}

.support-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.support-details p {
    margin: 0.5rem 0;
    color: var(--text-light);
}

.support-details p:first-child {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* =============================================
   FAQ SECTION
   ============================================= */
.pricing-faq {
    padding: 6rem 0;
    background: white;
}

.pricing-faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.faq-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================================
   RESPONSIVE DESIGN FOR PRICING
   ============================================= */
@media (max-width: 768px) {
    .pricing h2,
    .support-overview h2 {
        font-size: 2rem;
        word-wrap: break-word;
    }

    .pricing-grid,
    .support-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .support-grid .support-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .pricing-card,
    .support-card {
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
        flex: 1; /* Make all support cards equal width */
        min-width: 280px; /* Consistent minimum width */
    }

    .support-card {
        padding: 2rem 1.5rem;
    }

    .special-offer {
        padding: 1.5rem;
        margin: 1.5rem 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .special-offer h3 {
        font-size: 1.2rem;
    }

    .special-offer p {
        font-size: 1rem;
    }

    .billing-toggle {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .toggle-label {
        text-align: center;
    }

    .discount {
        margin-left: 0;
        margin-top: 0.5rem;
        display: block;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .pricing-card.featured {
        transform: scale(1); /* Remove scaling on mobile for consistent size */
    }
    
    .pricing-cards {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 400px; /* Consistent max width */
        min-height: 600px; /* Consistent minimum height */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding-top: 3.5rem;
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 2rem 1.5rem;
        padding-top: 4.5rem;
    }

    .price .amount {
        font-size: 2.5rem;
    }

    .price .currency {
        font-size: 1.2rem;
    }
}
