/* ============================================
   ADO/Jira AI Assistant - Pricing Page
   Glassmorphic Design
   ============================================ */

/* === Reset and Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0D1117;
    --bg-secondary: #161B22;
    --bg-tertiary: #1F2937;
    --bg-card: rgba(31, 41, 55, 0.6);

    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --text-tertiary: #6B7280;

    --accent-blue: #3B82F6;
    --accent-purple: #8B5CF6;
    --accent-cyan: #06B6D4;
    --accent-green: #10B981;

    --border-color: rgba(75, 85, 99, 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #111827 0%, #1F2937 50%, #111827 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 40px 20px;
}

/* === Main Container === */
.pricing-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* === Header Section === */
.pricing-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-content {
    margin-bottom: 32px;
}

.logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.title {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(90deg, #3B82F6 0%, #8B5CF6 50%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.subtitle {
    font-size: 20px;
    color: var(--text-secondary);
}

/* === Billing Toggle === */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.toggle-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.toggle-label.active {
    color: var(--text-primary);
}

.discount-badge {
    display: inline-block;
    padding: 4px 8px;
    background: linear-gradient(90deg, #10B981 0%, #06B6D4 100%);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin-left: 8px;
}

.toggle-switch {
    position: relative;
    width: 56px;
    height: 28px;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-switch.active {
    background: linear-gradient(90deg, #3B82F6 0%, #8B5CF6 100%);
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(28px);
}

/* === Pricing Cards === */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-cards.business-row {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin-bottom: 80px;
}

.pricing-card {
    position: relative;
    padding: 40px;
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    transition: all 0.3s;
    animation: fadeInUp 0.6s ease-out;
}

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

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.popular {
    border: 2px solid var(--accent-blue);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 24px;
    background: linear-gradient(90deg, #3B82F6 0%, #8B5CF6 100%);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.best-value-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 24px;
    background: linear-gradient(90deg, #10B981 0%, #06B6D4 100%);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Hero Feature */
.hero-feature {
    text-align: center;
    font-size: 14px;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    line-height: 1.4;
}

/* Feature Highlight */
.feature-item.highlight {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 4px -16px;
}

.feature-item.highlight i {
    color: var(--accent-blue);
}

/* Custom Price (Enterprise) */
.price-wrapper.custom-price .amount {
    font-size: 48px;
}

/* Featured Button */
.select-plan-btn.featured {
    background: linear-gradient(90deg, #10B981 0%, #06B6D4 100%);
}

/* === Card Header === */
.card-header {
    text-align: center;
    margin-bottom: 32px;
}

.plan-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.plan-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.plan-description {
    font-size: 14px;
    color: var(--text-secondary);
}

/* === Card Pricing === */
.card-pricing {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.price-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 4px;
}

.amount {
    font-size: 64px;
    font-weight: 700;
    background: linear-gradient(90deg, #3B82F6 0%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.period {
    font-size: 18px;
    color: var(--text-secondary);
    margin-left: 4px;
}

.billing-cycle {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* === Card Features === */
.card-features {
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
}

.feature-item i {
    color: var(--accent-green);
    font-size: 16px;
    flex-shrink: 0;
}

/* === Select Plan Button === */
.select-plan-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(90deg, #3B82F6 0%, #8B5CF6 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.select-plan-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.select-plan-btn:active {
    transform: scale(0.98);
}

/* === FAQ Section === */
.faq-section {
    max-width: 1000px;
    margin: 0 auto 80px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.faq-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
    background: linear-gradient(90deg, #3B82F6 0%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.faq-item {
    padding: 24px;
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-4px);
}

.faq-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

/* === Back Link === */
.back-link {
    text-align: center;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link a:hover {
    color: var(--text-primary);
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-cards.business-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 32px;
    }

    .subtitle {
        font-size: 16px;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards.business-row {
        grid-template-columns: 1fr;
    }

    .amount {
        font-size: 48px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}
