/**
 * Pricing Page Styles
 * Modern, responsive pricing table design
 */

/* Pricing Page Container */
.gptd-pricing-page {
    padding: 3rem 0;
    min-height: 100vh;
    background: var(--bg-primary);
}

/* Pricing Header */
.gptd-pricing-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.gptd-pricing-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Billing Toggle */
.gptd-billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: 50px;
    border: 1px solid rgba(136, 146, 176, 0.1);
}

.billing-label {
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gray);
    transition: 0.4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.discount-badge {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--dark);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Pricing Plans Grid */
.gptd-pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

/* Plan Card */
.gptd-plan-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gptd-plan-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 217, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gptd-plan-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(0, 245, 160, 0.05) 100%);
    transform: scale(1.05);
}

.gptd-plan-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.gptd-plan-card.current-plan {
    border-color: var(--secondary);
}

.gptd-plan-card.enterprise {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.05) 0%, rgba(75, 0, 130, 0.05) 100%);
}

/* Diagonal Ribbon Badge */
.ribbon-badge {
    position: absolute;
    top: 25px;
    right: -30px;
    width: 150px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    transform: rotate(45deg);
    z-index: 10;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.ribbon-badge span {
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.ribbon-badge::before,
.ribbon-badge::after {
    content: '';
    position: absolute;
    top: 100%;
    z-index: -1;
    border-style: solid;
    border-color: transparent;
}

.ribbon-badge::before {
    left: 0;
    border-width: 0 0 5px 5px;
    border-left-color: rgba(0, 0, 0, 0.3);
}

.ribbon-badge::after {
    right: 0;
    border-width: 0 5px 5px 0;
    border-right-color: rgba(0, 0, 0, 0.3);
}

/* Current Plan Indicator */
.current-plan-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 245, 160, 0.2);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    z-index: 5;
}

.current-plan-indicator i {
    font-size: 0.875rem;
}

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

.plan-name {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.plan-price {
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

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

.plan-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.plan-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(136, 146, 176, 0.1);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.plan-features li i.bi-check-circle-fill {
    color: var(--secondary);
}

.plan-features li.feature-disabled {
    opacity: 0.5;
}

.plan-features li.feature-disabled i {
    color: var(--gray-light);
}

/* Plan Action Button */
.plan-action {
    margin-top: auto;
}

.gptd-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gptd-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--dark);
}

.gptd-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 217, 255, 0.3);
}

.gptd-btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.gptd-btn-outline:hover:not(:disabled) {
    background: rgba(0, 217, 255, 0.1);
    transform: translateY(-2px);
}

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

/* Features Comparison Table */
.gptd-features-comparison {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.gptd-features-comparison h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comparison-table-wrapper {
    overflow-x: auto;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(136, 146, 176, 0.1);
}

.comparison-table th {
    background: var(--bg-primary);
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.comparison-table th.featured {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2) 0%, rgba(0, 245, 160, 0.2) 100%);
}

.comparison-table td {
    color: var(--text-secondary);
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-primary);
}

.comparison-table td.featured {
    background: rgba(0, 217, 255, 0.05);
}

.comparison-table i.bi-check-lg {
    color: var(--secondary);
    font-size: 1.25rem;
}

.comparison-table i.bi-x-lg {
    color: var(--danger);
    font-size: 1.25rem;
}

/* FAQ Section */
.gptd-pricing-faq {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gptd-pricing-faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(136, 146, 176, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0, 217, 255, 0.3);
    transform: translateY(-5px);
}

.faq-item h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Sales Modal */
.gptd-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.gptd-modal-content {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    position: relative;
}

.gptd-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
}

.gptd-modal-close:hover {
    color: var(--danger);
}

.gptd-modal h3 {
    margin-bottom: 2rem;
    color: var(--text-primary);
}

#contact-sales-form .form-group {
    margin-bottom: 1.5rem;
}

#contact-sales-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

#contact-sales-form input,
#contact-sales-form textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid rgba(136, 146, 176, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

#contact-sales-form input:focus,
#contact-sales-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

#contact-sales-form textarea {
    resize: vertical;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gptd-pricing-title {
        font-size: 2rem;
    }
    
    .gptd-pricing-subtitle {
        font-size: 1rem;
    }
    
    .gptd-pricing-plans {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gptd-plan-card.featured {
        transform: none;
    }
    
    .gptd-plan-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }
}

/* Light Theme Adjustments */
[data-theme="light"] .gptd-pricing-page {
    background: #f8f9fa;
}

[data-theme="light"] .gptd-plan-card {
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .gptd-plan-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .comparison-table-wrapper {
    background: white;
}

[data-theme="light"] .comparison-table th {
    background: #f8f9fa;
}

[data-theme="light"] .faq-item {
    background: white;
}

[data-theme="light"] .gptd-modal-content {
    background: white;
}

[data-theme="light"] #contact-sales-form input,
[data-theme="light"] #contact-sales-form textarea {
    background: #f8f9fa;
}