/**
 * EdNoor Pricing Page Styles
 * Brand Colors: Navy #1d3557, Light Gray #f5f5f5, Teal #a8dadc
 */

@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ======================================
   ROOT VARIABLES - EDNOOR BRAND COLORS
   ====================================== */
:root {
    --ednoor-primary: #1d3557;
    --ednoor-primary-light: #2a4a73;
    --ednoor-primary-dark: #152840;
    --ednoor-secondary: #a8dadc;
    --ednoor-secondary-light: #c5e8ea;
    --ednoor-secondary-dark: #7fc8cb;
    --ednoor-accent: #457b9d;
    --ednoor-gold: #d4a84b;
    --ednoor-bg: #f5f5f5;
    --ednoor-bg-card: #ffffff;
    --ednoor-text: #1d3557;
    --ednoor-text-light: #5a6e82;
    --ednoor-border: #e0e5eb;
    --ednoor-shadow: rgba(29, 53, 87, 0.08);
    --ednoor-shadow-hover: rgba(29, 53, 87, 0.15);
    --ednoor-gradient: linear-gradient(135deg, #1d3557 0%, #2a4a73 100%);
    --ednoor-gradient-teal: linear-gradient(135deg, #a8dadc 0%, #7fc8cb 100%);
    --ednoor-radius-sm: 8px;
    --ednoor-radius-md: 12px;
    --ednoor-radius-lg: 16px;
    --ednoor-radius-xl: 50px;
}

/* ======================================
   PRICING SECTION WRAPPER - FULL WIDTH
   ====================================== */
.ednoor-pricing-section {
    background: var(--ednoor-bg);
    padding: 40px 0 60px;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Elementor full-width compatibility */
.elementor-section-full_width .ednoor-pricing-section,
.elementor-widget-container .ednoor-pricing-section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

.ednoor-pricing-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
}

/* ======================================
   HERO HEADER
   ====================================== */
.ednoor-pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.ednoor-pricing-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--ednoor-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.ednoor-pricing-header h1 span {
    color: var(--ednoor-accent);
}

.ednoor-pricing-header .arabic-title {
    font-family: 'Amiri', serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--ednoor-accent);
    margin-bottom: 12px;
    direction: rtl;
}

.ednoor-pricing-header p {
    font-size: 0.9rem;
    color: var(--ednoor-text-light);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ======================================
   DURATION TABS
   ====================================== */
.ednoor-duration-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.ednoor-tab-btn {
    position: relative;
    background: var(--ednoor-bg-card);
    border: 2px solid var(--ednoor-border);
    border-radius: var(--ednoor-radius-xl);
    padding: 10px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ednoor-text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px var(--ednoor-shadow);
}

.ednoor-tab-btn:hover {
    border-color: var(--ednoor-secondary);
    background: var(--ednoor-secondary-light);
    transform: translateY(-2px);
}

.ednoor-tab-btn.active {
    background: var(--ednoor-gradient);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(29, 53, 87, 0.25);
}

.ednoor-tab-btn .tab-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ednoor-tab-btn .tab-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* ======================================
   PRICING GRID - FULL WIDTH
   ====================================== */
.ednoor-pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .ednoor-pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 750px;
    }
}

@media (max-width: 768px) {
    .ednoor-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
    }
}

@media (max-width: 520px) {
    .ednoor-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
}

/* ======================================
   PRICING CARD
   ====================================== */
.ednoor-pricing-card {
    background: var(--ednoor-bg-card);
    border-radius: var(--ednoor-radius-md);
    padding: 20px 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    border: 1px solid var(--ednoor-border);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px var(--ednoor-shadow);
}

.ednoor-pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ednoor-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ednoor-pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px var(--ednoor-shadow-hover);
    border-color: var(--ednoor-secondary);
}

.ednoor-pricing-card:hover::before {
    opacity: 1;
}

/* Popular Card */
.ednoor-pricing-card.popular {
    border: 2px solid var(--ednoor-gold);
    transform: scale(1.02);
    z-index: 2;
    box-shadow: 0 8px 28px rgba(212, 168, 75, 0.2);
}

.ednoor-pricing-card.popular::before {
    background: linear-gradient(135deg, #d4a84b 0%, #c49a3d 100%);
    opacity: 1;
    height: 4px;
}

.ednoor-pricing-card.popular:hover {
    transform: scale(1.02) translateY(-6px);
}

.ednoor-popular-badge {
    position: absolute;
    top: 8px;
    right: -38px;
    background: linear-gradient(135deg, #d4a84b 0%, #c49a3d 100%);
    color: #ffffff;
    font-size: 0.48rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    padding: 4px 40px;
    transform: rotate(45deg);
    box-shadow: 0 2px 6px rgba(212, 168, 75, 0.3);
    text-align: center;
    white-space: nowrap;
}

/* Card Header */
.ednoor-card-header {
    text-align: center;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--ednoor-border);
    margin-bottom: 14px;
}

.ednoor-plan-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ednoor-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ednoor-plan-name .plan-icon {
    width: 22px;
    height: 22px;
    background: var(--ednoor-secondary-light);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ednoor-plan-name .plan-icon svg {
    width: 12px;
    height: 12px;
    stroke: var(--ednoor-primary);
    stroke-width: 2;
    fill: none;
}

.ednoor-frequency {
    font-size: 0.75rem;
    color: var(--ednoor-text-light);
}

/* Price Display */
.ednoor-price-display {
    text-align: center;
    margin-bottom: 14px;
}

/* Regular Price (Strikethrough) */
.ednoor-regular-price {
    margin-bottom: 2px;
}

.ednoor-regular-price .strikethrough {
    font-size: 0.8rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.ednoor-price-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
}

.ednoor-price-wrapper.on-sale .ednoor-price,
.ednoor-price-wrapper.on-sale .ednoor-currency,
.ednoor-price-wrapper.on-sale .ednoor-decimals {
    color: #c0392b;
}

.ednoor-currency {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ednoor-primary);
    margin-top: 4px;
}

.ednoor-price {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--ednoor-primary);
    line-height: 1;
}

.ednoor-decimals {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ednoor-primary);
    margin-top: 4px;
}

.ednoor-period {
    font-size: 0.75rem;
    color: var(--ednoor-text-light);
    margin-top: 2px;
}

/* Sale Badge - optional */
.ednoor-sale-badge {
    display: inline-block;
    background: #c0392b;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    margin-bottom: 6px;
}

/* Features List */
.ednoor-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.ednoor-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 0;
    font-size: 0.72rem;
    color: var(--ednoor-text);
    border-bottom: 1px solid var(--ednoor-border);
}

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

.ednoor-features li .feature-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
    background: var(--ednoor-secondary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.ednoor-features li .feature-icon svg {
    width: 8px;
    height: 8px;
    stroke: var(--ednoor-primary);
    stroke-width: 3;
    fill: none;
}

.ednoor-features li strong {
    color: var(--ednoor-primary);
    font-weight: 600;
}

/* CTA Button */
.ednoor-cta-btn {
    display: block !important;
    width: 100%;
    background: var(--ednoor-gradient) !important;
    color: #ffffff !important;
    text-align: center;
    padding: 10px 16px;
    border-radius: var(--ednoor-radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer !important;
    position: relative;
    overflow: hidden;
    pointer-events: auto !important;
    z-index: 10;
}

.ednoor-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.ednoor-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 53, 87, 0.25);
    color: #ffffff;
}

.ednoor-cta-btn:hover::before {
    left: 100%;
}

.ednoor-pricing-card.popular .ednoor-cta-btn {
    background: linear-gradient(135deg, #d4a84b 0%, #c49a3d 100%);
    color: #ffffff;
}

.ednoor-pricing-card.popular .ednoor-cta-btn:hover {
    box-shadow: 0 6px 16px rgba(212, 168, 75, 0.35);
}

/* ======================================
   TRUST SECTION
   ====================================== */
.ednoor-trust-section {
    margin-top: 40px;
    padding: 28px 24px;
    background: var(--ednoor-bg-card);
    border-radius: var(--ednoor-radius-md);
    border: 1px solid var(--ednoor-border);
    max-width: 1150px;
    margin-left: auto;
    margin-right: auto;
}

.ednoor-trust-section h3 {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ednoor-primary);
    margin-bottom: 22px;
}

.ednoor-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.ednoor-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ednoor-trust-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--ednoor-secondary-light);
    border-radius: var(--ednoor-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ednoor-trust-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--ednoor-primary);
    stroke-width: 2;
    fill: none;
}

.ednoor-trust-content h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ednoor-primary);
    margin-bottom: 2px;
}

.ednoor-trust-content p {
    font-size: 0.72rem;
    color: var(--ednoor-text-light);
    line-height: 1.4;
    margin: 0;
}

/* ======================================
   LOADING STATE
   ====================================== */
.ednoor-pricing-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.ednoor-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--ednoor-border);
    border-top-color: var(--ednoor-primary);
    border-radius: 50%;
    animation: ednoorSpin 0.8s linear infinite;
}

@keyframes ednoorSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ======================================
   ANIMATIONS
   ====================================== */
.ednoor-fade-in {
    animation: ednoorFadeIn 0.5s ease forwards;
}

.ednoor-pricing-card {
    opacity: 0;
    animation: ednoorSlideUp 0.5s ease forwards;
}

.ednoor-pricing-card:nth-child(1) { animation-delay: 0.05s; }
.ednoor-pricing-card:nth-child(2) { animation-delay: 0.1s; }
.ednoor-pricing-card:nth-child(3) { animation-delay: 0.15s; }
.ednoor-pricing-card:nth-child(4) { animation-delay: 0.2s; }
.ednoor-pricing-card:nth-child(5) { animation-delay: 0.25s; }

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

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

/* Popular card animation override */
.ednoor-pricing-card.popular {
    animation: ednoorSlideUpPopular 0.5s ease forwards;
}

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

/* ======================================
   RESPONSIVE STYLES
   ====================================== */
@media (max-width: 1024px) {
    .ednoor-pricing-section {
        padding: 50px 0 70px;
    }
    
    .ednoor-pricing-card.popular {
        transform: scale(1);
    }
    
    .ednoor-pricing-card.popular:hover {
        transform: translateY(-6px);
    }
    
    @keyframes ednoorSlideUpPopular {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 768px) {
    .ednoor-pricing-header {
        margin-bottom: 35px;
        padding: 0 20px;
    }
    
    .ednoor-duration-tabs {
        gap: 8px;
    }
    
    .ednoor-tab-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .ednoor-pricing-card {
        padding: 24px 18px;
    }
    
    .ednoor-price {
        font-size: 2.75rem;
    }
    
    .ednoor-trust-section {
        padding: 30px 20px;
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .ednoor-trust-grid {
        gap: 20px;
    }
}

@media (max-width: 520px) {
    .ednoor-pricing-container {
        padding: 0 15px;
    }
    
    .ednoor-duration-tabs {
        flex-direction: column;
        align-items: stretch;
        padding: 0 15px;
    }
    
    .ednoor-tab-btn {
        justify-content: center;
    }
    
    .ednoor-popular-badge {
        top: 10px;
        right: -44px;
        font-size: 0.5rem;
        padding: 5px 45px;
    }
    
    .ednoor-pricing-grid {
        padding: 0 10px;
    }
}

/* ======================================
   ELEMENTOR OVERRIDES
   ====================================== */
.elementor-widget-shortcode .ednoor-pricing-section,
.elementor-shortcode .ednoor-pricing-section {
    width: 100%;
    max-width: 100%;
}

.elementor-section.elementor-section-boxed .ednoor-pricing-section {
    max-width: none;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Ensure full width in Elementor sections */
.elementor-section-full_width .elementor-widget-shortcode .ednoor-pricing-section,
.elementor-section-stretched .elementor-widget-shortcode .ednoor-pricing-section {
    width: 100%;
}

