/*
 * Modern Custom Packages Section Styles
 * Modüler ve temiz yapı - Size Özel Paketlerimiz bölümü için modern tasarım
 * Ana renk: #160f3e (Koyu mor/mürdüm)
 */

/* Section background - White/Light background */
.packages-section-custom {
    background: #ffffff !important;
    position: relative;
    overflow: hidden;
}

/* Heading styles for light background */
.packages-section-custom .heading-subtitle span {
    color: #6b7280 !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.packages-section-custom .heading-title {
    color: #160f3e !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
}

.packages-section-custom .heading-title .tx-primary {
    color: #160f3e !important;
}

.packages-section-custom .heading-description {
    color: #6b7280 !important;
    font-size: 1.1rem !important;
}

/* VPS Highlight - Simple Bold Style */
.packages-section-custom .vps-highlight {
    color: #160f3e !important;
    font-weight: 800 !important;
}

/* Modern Card Design - Clean & Minimal like example */
.packages-section-custom .pricing-card {
    background: #ffffff !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.packages-section-custom .pricing-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Progress bar at top like example */
.packages-section-custom .pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #e5e7eb 0%, #e5e7eb 100%);
    border-radius: 24px 24px 0 0;
}

.packages-section-custom .pricing-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 8px;
    width: 75%;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 24px 0 0 0;
    transition: width 0.3s ease;
}

.packages-section-custom .pricing-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15) !important;
    border-color: #6366f1 !important;
}

.packages-section-custom .pricing-card:hover::after {
    width: 100%;
}

/* Icon on the right with background */
.packages-section-custom .avatar {
    background: linear-gradient(135deg, #160f3e 0%, #2a1a5e 100%) !important;
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 20px rgba(22, 15, 62, 0.2) !important;
    transition: all 0.3s ease !important;
    order: 2 !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}

.packages-section-custom .pricing-card:hover .avatar {
    transform: scale(1.2) rotate(-10deg) !important;
}

.packages-section-custom .avatar svg {
    display: block !important;
    width: 40px !important;
    height: 40px !important;
    fill: #d4af37 !important;
}

/* Show SVG icons */

/* Price Display - Large and prominent like example */
.packages-section-custom .price-badge {
    display: none !important;
}

.packages-section-custom .package-price {
    text-align: left !important;
    margin: 2rem 0 1.5rem 0 !important;
    padding: 1.5rem 0 !important;
    border-top: 1px solid #f3f4f6 !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

.packages-section-custom .package-price .price-amount {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #1f2937 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 0.5rem !important;
}

.packages-section-custom .package-price .price-currency {
    font-size: 1.5rem !important;
    color: #6b7280 !important;
    font-weight: 600 !important;
}

.packages-section-custom .package-price .price-period {
    font-size: 1rem !important;
    color: #9ca3af !important;
    font-weight: 500 !important;
    margin-top: 0.25rem !important;
}

.packages-section-custom .price-badge span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.packages-section-custom .btn-featured {
    background: linear-gradient(135deg, #d4af37 0%, #f6e27a 100%) !important;
    color: #160f3e !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4) !important;
}

.packages-section-custom .btn-featured:hover {
    background: linear-gradient(135deg, #f6e27a 0%, #d4af37 100%) !important;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6) !important;
    transform: translateY(-2px) !important;
}

/* Card Title - Clean and simple like example */
.packages-section-custom .card-body h4 {
    color: #1f2937 !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    margin-bottom: 0 !important;
    order: 1 !important;
    flex: 1 !important;
}

/* Card description spacing - header area */
.packages-section-custom .card-body .d-flex {
    margin-bottom: 1rem !important;
    align-items: center !important;
    padding-top: 1.5rem !important;
}

/* Price Styling - Modern */
.packages-section-custom .card-body h2 {
    color: #160f3e;
    font-size: 3rem;
    font-weight: 800;
    margin: 1rem 0;
    background: linear-gradient(135deg, #160f3e 0%, #2a1a5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.packages-section-custom .card-body p.tx-muted {
    color: #6b7280 !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    margin-bottom: 0 !important;
    line-height: 1.6 !important;
}

.packages-section-custom .card-body p:not(.tx-muted) {
    color: #6b7280;
    line-height: 1.7;
}

/* Original Button Design */
.packages-section-custom .btn-primary {
    background: linear-gradient(135deg, #160f3e 0%, #2a1a5e 100%) !important;
    border: none !important;
    color: #fff !important;
    padding: 12px 30px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(22, 15, 62, 0.2) !important;
    margin-top: auto !important;
}

.packages-section-custom .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(22, 15, 62, 0.4) !important;
}

/* Pattern overlay adjustments for dark background */
.packages-section-custom .patterns-7,
.packages-section-custom .patterns-1,
.packages-section-custom .patterns-3 {
    opacity: 0.05 !important;
    filter: invert(1);
}

/* Featured Card - Premium Glow & Aura Effect */
.packages-section-custom .pricing-card-featured {
    position: relative;
    transform: scale(1.05) translateY(-12px);
    z-index: 10;
    /* Soft layered shadows for depth and premium feel */
    box-shadow:
        0 20px 50px rgba(124, 58, 237, 0.12),
        0 0 80px rgba(124, 58, 237, 0.08),
        0 0 120px rgba(212, 175, 55, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    margin-top: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 3px solid transparent !important;
    border-radius: 20px;
    filter: brightness(1.02);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-image:
        linear-gradient(white, white),
        linear-gradient(90deg, #160f3e, #d4af37, #160f3e, #d4af37, #160f3e);
    background-size: 100% 100%, 300% 100%;
    animation: gradientBorderFlow 4s linear infinite;
}

@keyframes gradientBorderFlow {
    0% {
        background-position: 0% 0%, 0% 0%;
    }
    100% {
        background-position: 0% 0%, 300% 0%;
    }
}

/* Soft Blur Aura Behind Card - Enhanced */
.packages-section-custom .pricing-card-featured::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(135deg,
        rgba(124, 58, 237, 0.3) 0%,
        rgba(212, 175, 55, 0.3) 50%,
        rgba(124, 58, 237, 0.3) 100%
    );
    border-radius: 22px;
    z-index: -3;
    filter: blur(25px);
    opacity: 0.5;
    animation: gentleGlow 3s ease-in-out infinite;
}

@keyframes gentleGlow {
    0%, 100% {
        opacity: 0.5;
        filter: blur(25px);
    }
    50% {
        opacity: 0.7;
        filter: blur(30px);
    }
}

.packages-section-custom .pricing-card-featured .card-body {
    padding: 2rem 1.5rem !important;
}

.packages-section-custom .card-body {
    padding: 0 2rem 2rem 2rem !important;
    display: flex !important;
    flex-direction: column !important;
}


.packages-section-custom .pricing-card-featured:hover {
    transform: scale(1.08) translateY(-16px) !important;
    box-shadow:
        0 30px 60px rgba(124, 58, 237, 0.18),
        0 0 100px rgba(124, 58, 237, 0.12),
        0 0 140px rgba(212, 175, 55, 0.08) !important;
    filter: brightness(1.03);
}

.packages-section-custom .pricing-card-featured:hover::before {
    opacity: 0.8;
    filter: blur(35px);
}

/* Badge Label - Styled with soft golden glow */
.packages-section-custom [data-label]::before {
    content: attr(data-label);
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    color: #160f3e;
    padding: 8px 20px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    z-index: 15;
    white-space: nowrap;
    box-shadow:
        0 6px 20px rgba(212, 175, 55, 0.3),
        0 0 15px rgba(212, 175, 55, 0.2);
    border: 2px solid #d4af37;
}

@keyframes badgeFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* Featured Button */
.packages-section-custom .btn-featured {
    background: linear-gradient(135deg, #d4af37 0%, #f6e27a 100%) !important;
    color: #160f3e !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4) !important;
}

.packages-section-custom .btn-featured:hover {
    background: linear-gradient(135deg, #f6e27a 0%, #d4af37 100%) !important;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6) !important;
}

/* Package Feature List Styles */
.packages-section-custom .card-body ul.list-unstyled {
    padding-left: 0;
    margin-bottom: auto !important;
    flex: 1;
}

.packages-section-custom .card-body ul.list-unstyled li {
    font-size: 0.925rem !important;
    color: #4b5563 !important;
    line-height: 1.6 !important;
    display: flex !important;
    align-items: flex-start !important;
    margin-bottom: 0.875rem !important;
    padding: 0 !important;
}

.packages-section-custom .card-body ul.list-unstyled li i {
    font-size: 1.25rem !important;
    min-width: 32px !important;
    margin-right: 0.75rem !important;
    flex-shrink: 0 !important;
    color: #6366f1 !important;
    margin-top: 0.125rem !important;
}

.packages-section-custom .card-body ul.list-unstyled li strong {
    color: #1f2937 !important;
    font-weight: 700 !important;
    margin-right: 0.35rem !important;
}

.packages-section-custom .card-body ul.list-unstyled li:last-child {
    color: #5f6c7b;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 991px) {
    .packages-section-custom .pricing-card {
        margin-bottom: 25px !important;
    }

    .packages-section-custom .pricing-card-featured {
        margin-top: 25px !important;
        margin-bottom: 35px !important;
    }

    .packages-section-custom .heading-title {
        font-size: 2rem !important;
    }

    /* Badge responsive - Tablet */
    .packages-section-custom [data-label]::before {
        font-size: 0.6875rem;
        padding: 8px 20px;
        top: -16px;
        letter-spacing: 1.2px;
    }

    .packages-section-custom .pricing-card-featured {
        transform: scale(1.03) translateY(-10px) !important;
    }

    .packages-section-custom .card-body {
        padding: 1.25rem 1rem !important;
    }

    .packages-section-custom .card-body h4 {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 767px) {
    .packages-section-custom .price-badge {
        font-size: 1rem;
        padding: 6px 12px;
    }

    /* Badge responsive - Mobile */
    .packages-section-custom [data-label]::before {
        font-size: 0.625rem;
        padding: 6px 16px;
        top: -14px;
        letter-spacing: 1px;
    }
}

@media (max-width: 576px) {
    .packages-section-custom .heading-title {
        font-size: 1.75rem !important;
    }

    .packages-section-custom .card-body h2 {
        font-size: 2.5rem;
    }

    .packages-section-custom .card-body ul.list-unstyled li {
        font-size: 0.85rem;
    }

    /* Badge responsive - Small mobile */
    .packages-section-custom [data-label]::before {
        font-size: 0.5625rem;
        padding: 5px 12px;
        top: -12px;
        letter-spacing: 0.8px;
    }

    .packages-section-custom .pricing-card-featured {
        transform: scale(1.02) translateY(-8px);
    }

    .packages-section-custom .card-body h4 {
        font-size: 1.25rem;
    }
}
