/* 
 * Pricing Section für Vigthoria Landing Page
 * Modernes, responsives Design mit Dark/Light Mode Unterstützung
 */

.pricing-section {
    padding: 6rem 0;
    position: relative;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    transition: all 0.3s ease;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(var(--primary-rgb), 0.08), transparent 70%);
    z-index: 0;
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.pricing-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-heading);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
}

/* Produkt-Tabs */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.product-tab {
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid rgba(var(--border-rgb), 0.1);
    border-radius: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-tab:hover {
    background: rgba(var(--primary-rgb), 0.05);
    transform: translateY(-2px);
}

.product-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    position: relative;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

.product-tab.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
}

/* Produktbeschreibung */
.product-description {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 1rem;
    border: 1px solid rgba(var(--border-rgb), 0.1);
    box-shadow: var(--card-shadow);
}

.product-description-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.product-description-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-description h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-heading);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-description p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Pricing Toggle */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.toggle-label {
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-label.active {
    color: var(--primary-color);
    font-weight: 600;
}

.toggle-switch-container {
    position: relative;
    display: inline-block;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    border-radius: 15px;
    background: linear-gradient(to right, #4F46E5, #8B5CF6);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 2px;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background-color: transparent; /* Removing white color */
    border: none; /* Removing border */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(0); /* No blur effect */
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: none; /* No shadow to eliminate white toggle point */
}

.toggle-checkbox {
    position: absolute;
    opacity: 0;
    -webkit-appearance: none;
    appearance: none;
    width: 0;
    height: 0;
}

.toggle-checkbox:checked + .toggle-switch::after {
    transform: translateX(30px);
}

/* Savings Badge - Fixed position to prevent overlay */
.savings-badge {
    position: absolute;
    top: -20px; /* Move above the toggle instead of at the same level */
    right: 0;
    transform: none; /* Remove the vertical translation */
    background: #10B981;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}

.savings-badge::after {
    content: '';
    position: absolute;
    right: 8px;
    bottom: -4px;
    width: 8px;
    height: 8px;
    background-color: #10B981;
    transform: rotate(45deg);
}

/* Pricing Cards Container, immer 3 Karten nebeneinander */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: var(--card-bg);
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--border-rgb), 0.1);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

/* Popular Card Styling */
.pricing-card.popular {
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
}

.pricing-card.popular:hover {
    transform: translateY(-5px) scale(1.05);
}

.pricing-card.popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, transparent 100%);
    z-index: -1;
}

.popular-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Card Header */
.pricing-card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(var(--border-rgb), 0.1);
}

.pricing-card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-heading);
}

/* Price Container */
.price-container {
    display: flex;
    flex-direction: column;
    margin: 1.5rem 0;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-heading);
    display: flex;
    align-items: flex-start;
    line-height: 1;
}

.price span {
    font-size: 1rem;
    margin-left: 0.25rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.price::before {
    content: '€';
    font-size: 1.5rem;
    margin-right: 0.25rem;
    align-self: flex-start;
    color: var(--primary-color);
}

.price-period {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Monthly/Yearly Prices */
.monthly-price, .yearly-price,
.amount.monthly, .amount.yearly {
    transition: all 0.3s ease;
}

.yearly-price,
.amount.yearly {
    display: none;
}

/* For pricing.html structure */
.price .amount {
    display: none;
}

.price .amount.monthly {
    display: inline;
}

.show-yearly .amount.monthly {
    display: none;
}

.show-yearly .amount.yearly {
    display: inline;
}

/* Features List */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    flex-grow: 1;
}

.pricing-feature {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.pricing-feature svg {
    margin-right: 0.75rem;
    color: var(--primary-color);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Buttons */
.pricing-card-footer {
    margin-top: auto;
}

.pricing-btn {
    display: inline-block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid rgba(var(--border-rgb), 0.2);
    text-decoration: none;
}

.pricing-btn:hover {
    background-color: rgba(var(--border-rgb), 0.1);
    border-color: rgba(var(--border-rgb), 0.3);
}

.pricing-card.popular .pricing-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
}

.pricing-card.popular .pricing-btn:hover {
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.4);
    transform: translateY(-2px);
}

/* Information Box */
.pricing-info {
    background: var(--card-bg);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 3rem;
    border: 1px dashed rgba(var(--border-rgb), 0.2);
    text-align: center;
}

.pricing-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-heading);
}

.pricing-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.pricing-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.pricing-info a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .pricing-cards {
        gap: 1rem;
    }
    
    .pricing-card.popular {
        transform: scale(1.03);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-5px) scale(1.03);
    }
}

@media (max-width: 768px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .pricing-card, .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card:hover, .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
    
    .pricing-header h2 {
        font-size: 2rem;
    }
    
    .pricing-feature {
        font-size: 0.9rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
}

/* Yearly Mode */
.yearly-mode .monthly-price {
    display: none;
}

.yearly-mode .yearly-price {
    display: flex;
}

/* For pricing toggle in main pricing page */
.pricing-section.yearly-mode .price .amount.monthly {
    display: none;
}

.pricing-section.yearly-mode .price .amount.yearly {
    display: inline;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .pricing-card {
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .pricing-card-header {
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .pricing-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .pricing-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .pricing-info {
    border-color: rgba(255, 255, 255, 0.1);
}
