﻿/* 
 * Pricing Page Styles - Modern UI for Subscription Plans
 * Adapted from PricingPageV1 template for OrchardCore integration
 * Purpose: Provides modern, professional styling for subscription pricing cards
 */

/* ============================================
   ROOT VARIABLES - Custom Brand Colors
   ============================================ */
:root {
    /* Primary brand color - matches modern SaaS aesthetic */
/*    --bs-primary: #2D5BFF;

    !* Enterprise section colors - deep blue gradient *!
    --enterprise-bg: #0A1E5E;
    --enterprise-bg-light: #1a2f7a;

    !* Neutral grays for backgrounds and text *!
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-600: #6C757D;

    !* Shadow definitions for depth and elevation *!
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);*/
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
/* Light background for pricing section to create contrast with white cards */
.pricing-section {
    background-color: var(--gray-50);
    min-height: 100vh;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Override Bootstrap primary color for buttons and text */
.pricing-section .btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

/* Hover effect for primary buttons - slight lift and shadow */
.pricing-section .btn-primary:hover {
    background-color: #2347E8;
    border-color: #2347E8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 91, 255, 0.3);
}

/* Primary text color for plan names and accents */
.pricing-section .text-primary {
    color: var(--bs-primary) !important;
}

/* ============================================
   PRICING CARDS
   ============================================ */
/* Base pricing card styling - clean white cards with subtle shadows */
.pricing-card {
    background: white;
    border-radius: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

/* Flexbox layout ensures consistent card heights and proper content alignment */
.pricing-card .card-body {
    display: flex;
    flex-direction: column;
}

/* Subtle hover effect - cards lift slightly on hover */
.pricing-card:hover {
    transform: translateY(-4px);
}

/* Middle card (typically "Plus" or featured plan) gets more prominent shadow */
.col-lg-4:nth-child(2) .pricing-card {
    box-shadow: var(--shadow-md);
}

.col-lg-4:nth-child(2) .pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

/* ============================================
   HORIZONTAL ALIGNMENT - Card Sections
   Purpose: Ensures all cards align their sections at the same height
   ============================================ */
/* Plan header section - contains plan name, price, and description */
.plan-header {
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

/* Price section with consistent spacing for alignment */
.plan-header .d-flex.align-items-baseline {
    min-height: 70px;
}

/* Description text grows to fill available space */
.plan-header p.text-muted {
    flex-grow: 1;
}

/* Plan actions section - buttons and links */
.plan-actions {
    margin-bottom: 1.5rem;
}

/* Feature lists start at same vertical position across all cards */
.plan-features {
    flex-grow: 1;
}

/* ============================================
   PLAN FEATURES - Checkmark Lists
   ============================================ */
/* Feature list item styling */
.plan-features ul li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #495057;
}

/* Checkmark icon sizing and alignment */
.plan-features .bi-check-circle-fill {
    font-size: 1.1rem;
    vertical-align: middle;
}

/* ============================================
   BUTTONS & LINKS
   ============================================ */
/* Disabled button styling for "Current Plan" state */
.btn-outline-secondary:disabled {
    background-color: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--gray-600);
    cursor: not-allowed;
}

/* Link styling within pricing cards */
a.text-primary {
    font-weight: 500;
    transition: all 0.2s ease;
}

a.text-primary:hover {
    color: #2347E8 !important;
    text-decoration: underline !important;
}
 
/* ============================================
   RESPONSIVE DESIGN
   Purpose: Ensures proper display on all device sizes
   ============================================ */
/* Tablet and below - stack cards vertically */
@media (max-width: 991.98px) {
    .pricing-card {
        margin-bottom: 1.5rem;
    }

  
}

/* Mobile devices - reduce heading sizes */
@media (max-width: 767.98px) {
    .display-4 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .pricing-section {
        padding-top: 2rem;
    }
}

/* ============================================
   ANIMATIONS
   Purpose: Smooth entrance animations for cards
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply staggered animation to cards on page load */
.pricing-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Stagger animation delays for sequential appearance */
.col-lg-4:nth-child(1) .pricing-card {
    animation-delay: 0.1s;
}

.col-lg-4:nth-child(2) .pricing-card {
    animation-delay: 0.2s;
}

.col-lg-4:nth-child(3) .pricing-card {
    animation-delay: 0.3s;
}

 

