﻿/* =====================================================
   PACK DETAIL CSS
   Styles pour les pages de détail des packs DevLife
   ===================================================== */

/* ===== REALITY SECTION (Nouvelle section percutante) ===== */
.reality-section {
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
}

[data-theme="dark"] .reality-section {
    background: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
}

.reality-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .reality-card {
    background: #161b22;
}

.reality-icon i {
    color: #7a9171;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.reality-item {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

[data-theme="dark"] .reality-item {
    background: #21262d;
}

.reality-item:hover {
    border-left-color: #7a9171;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reality-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.reality-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

.reality-solution {
    background: linear-gradient(135deg, rgba(122, 145, 113, 0.1) 0%, rgba(168, 196, 160, 0.1) 100%);
    border: 2px solid #7a9171;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

[data-theme="dark"] .reality-solution {
    background: linear-gradient(135deg, rgba(122, 145, 113, 0.2) 0%, rgba(168, 196, 160, 0.2) 100%);
    border-color: #5a7350;
}

/* ===== PERSONA & SOLUTION LISTS ===== */
.persona-list,
.solution-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.persona-list li,
.solution-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.persona-list li:last-child,
.solution-list li:last-child {
    border-bottom: none;
}

.persona-list i {
    color: #7a9171;
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.solution-list strong {
    color: var(--text-primary);
}

/* ===== BONUS APPS SECTION ===== */
.bonus-apps-section {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.1) 100%);
    border: 2px solid rgba(40, 167, 69, 0.2);
    border-radius: 16px;
    padding: 2rem;
}

[data-theme="dark"] .bonus-apps-section {
    background: linear-gradient(135deg, rgba(46, 160, 67, 0.1) 0%, rgba(46, 160, 67, 0.15) 100%);
    border-color: rgba(46, 160, 67, 0.3);
}

.bonus-app-item {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

[data-theme="dark"] .bonus-app-item {
    background: #161b22;
}

.bonus-app-item:hover {
    border-color: #28A745;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.bonus-app-item i {
    font-size: 2.5rem;
    color: #28A745;
    margin-bottom: 1rem;
}

[data-theme="dark"] .bonus-app-item i {
    color: #3fb950;
}

.bonus-app-item h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.bonus-app-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ===== RESULTS SECTION (Avant/Après) ===== */
.results-section {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 3rem;
}

[data-theme="dark"] .results-section {
    background: #21262d;
}

.result-item {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
}

[data-theme="dark"] .result-item {
    background: #161b22;
}

.result-before,
.result-after {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.result-before i {
    font-size: 1.8rem;
    color: var(--danger-color);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.result-after i {
    font-size: 1.8rem;
    color: var(--success-color);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

[data-theme="dark"] .result-after i {
    color: #3fb950;
}

.result-before span,
.result-after span {
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.6;
}

/* ===== SOLUTION ICON ===== */
.solution-icon {
    color: #7a9171;
}

/* ===== EXISTING STYLES ===== */
.min-vh-75 {
    min-height: 75vh;
}

.pack-hero {
    padding: 8rem 0 4rem;
    color: white;
}

.pack-hero-icon {
    font-size: 6rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.pack-age-badge-large {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 1.3rem;
    backdrop-filter: blur(10px);
}

.detail-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.detail-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.persona-icon {
    color: #7a9171;
}

.problem-icon {
    color: #DC3545;
}

.app-detail-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: all 0.3s ease;
    height: 100%;
}

.app-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.app-detail-icon {
    font-size: 3rem;
    color: #7a9171;
    flex-shrink: 0;
}

.app-detail-content {
    flex-grow: 1;
}

.app-detail-content .badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
}

.app-detail-content .badge i {
    margin-right: 0.25rem;
}

/* Dark mode for app badges */
[data-theme="dark"] .app-detail-content .badge.bg-primary {
    background-color: #1f6feb !important;
    color: #ffffff;
}

/* Dark mode for app badges */
[data-theme="dark"] .app-detail-content .badge {
    background-color: #3fb950 !important;
    color: #ffffff;
}

[data-theme="dark"] .app-detail-content .badge i {
    color: #ffffff;
}

.benefit-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.benefit-item i {
    font-size: 1.5rem;
    color: #7a9171;
    flex-shrink: 0;
}

.benefit-item span {
    font-weight: 500;
    color: #212529;
}

.pricing-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 2px solid #DEE2E6;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    border-color: #7a9171;
    transform: translateY(-5px);
}

.pricing-card-popular {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE8B3 100%);
    border-color: #FFC107;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFC107;
    color: #212529;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.pricing-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 1rem 0;
}

.cta-section {
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
    border-radius: 16px;
    padding: 4rem 2rem;
}

.pack-cta-section {
    background: linear-gradient(135deg, #7a9171 0%, #5d7555 100%);
    border-radius: 16px;
    padding: 4rem 2rem;
    color: white;
}

.pack-cta-section h2,
.pack-cta-section .lead {
    color: white;
}

.pack-cta-section .btn-primary {
    background: white;
    color: #7a9171;
    border-color: white;
}

.pack-cta-section .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #5d7555;
    border-color: white;
}

.pack-cta-section .btn-outline-primary {
    background: transparent;
    color: white;
    border-color: white;
}

.pack-cta-section .btn-outline-primary:hover {
    background: white;
    color: #7a9171;
    border-color: white;
}

/* ===== DARK THEME SUPPORT ===== */

/* Pricing cards in dark mode */
[data-theme="dark"] .pricing-card {
    background: #21262d;
    border-color: #30363d;
    color: #f0f6fc;
}

[data-theme="dark"] .pricing-card h4,
[data-theme="dark"] .pricing-card h3 {
    color: #f0f6fc;
}

[data-theme="dark"] .pricing-card small,
[data-theme="dark"] .pricing-card p {
    color: #c9d1d9;
}

[data-theme="dark"] .pricing-card .text-secondary {
    color: #8b949e !important;
}

/* Monthly subscription - Better contrast in dark mode */
[data-theme="dark"] .pricing-card:not(.bg-light) {
    background: #161b22;
    border-color: #30363d;
}

[data-theme="dark"] .pricing-card.bg-light {
    background: #21262d !important;
    border-color: #444c56;
}

[data-theme="dark"] .pricing-card:hover {
    border-color: #5a7350;
    background: #2d333b;
}

[data-theme="dark"] .pricing-card.bg-light:hover {
    background: #2d333b !important;
    border-color: #5a7350;
}

[data-theme="dark"] .pricing-card-popular {
    background: linear-gradient(135deg, #2d2410 0%, #3d3010 100%);
    border-color: #d29922;
}

/* Modal in dark mode */
[data-theme="dark"] .modal-content {
    background-color: #161b22;
    border-color: #30363d;
    color: #f0f6fc;
}

[data-theme="dark"] .modal-header {
    border-bottom-color: #30363d;
}

[data-theme="dark"] .modal-footer {
    border-top-color: #30363d;
}

[data-theme="dark"] .modal-body h3,
[data-theme="dark"] .modal-body h4,
[data-theme="dark"] .modal-body h5,
[data-theme="dark"] .modal-body h6 {
    color: #f0f6fc;
}

[data-theme="dark"] .modal-body p {
    color: #c9d1d9;
}

/* Order summary card in modal - dark mode */
[data-theme="dark"] .card.bg-light {
    background-color: #21262d !important;
    border-color: #30363d;
}

[data-theme="dark"] .card.bg-light .card-body {
    color: #f0f6fc;
}

[data-theme="dark"] .card.bg-light .card-title,
[data-theme="dark"] .card.bg-light h6 {
    color: #f0f6fc;
}

[data-theme="dark"] .card.bg-light span,
[data-theme="dark"] .card.bg-light strong {
    color: #c9d1d9;
}

[data-theme="dark"] .card.bg-light h5 {
    color: #58a6ff !important;
}

/* Alert boxes in modal - dark mode */
[data-theme="dark"] .alert-info {
    background-color: #1b2b33;
    border-color: #2a4a52;
    color: #85d1e7;
}

[data-theme="dark"] .alert-info strong {
    color: #ffffff;
}

[data-theme="dark"] .alert-success {
    background-color: #1a2e1a;
    border-color: #2a4a2a;
    color: #7dd87d;
}

/* Buttons in dark mode */
[data-theme="dark"] .btn-outline-secondary {
    color: #c9d1d9;
    border-color: #30363d;
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: #21262d;
    border-color: #444c56;
    color: #f0f6fc;
}

/* Cards in dark mode */
[data-theme="dark"] .card {
    background-color: #161b22;
    border-color: #30363d;
}

[data-theme="dark"] .card-header {
    border-bottom-color: #30363d;
}

[data-theme="dark"] .card-footer {
    border-top-color: #30363d;
    background-color: transparent;
}

/* Detail cards in dark mode */
[data-theme="dark"] .detail-card,
[data-theme="dark"] .app-detail-card,
[data-theme="dark"] .benefit-item {
    background: #161b22;
    color: #f0f6fc;
}

[data-theme="dark"] .detail-card h2,
[data-theme="dark"] .detail-card h3,
[data-theme="dark"] .app-detail-card h3,
[data-theme="dark"] .app-detail-card h4 {
    color: #f0f6fc;
}

[data-theme="dark"] .app-detail-content p {
    color: #c9d1d9;
}

[data-theme="dark"] .benefit-item span {
    color: #c9d1d9;
}

/* Accordion in dark mode */
[data-theme="dark"] .accordion-item {
    background-color: #161b22;
    border-color: #30363d;
}

[data-theme="dark"] .accordion-button {
    background-color: #21262d;
    color: #f0f6fc;
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: #2d333b;
    color: #58a6ff;
}

[data-theme="dark"] .accordion-body {
    background-color: #161b22;
    color: #c9d1d9;
}

/* Text colors in dark mode */
[data-theme="dark"] .text-primary {
    color: #58a6ff !important;
}

[data-theme="dark"] small.text-muted {
    color: #8b949e !important;
}

/* Responsive */
@media (max-width: 768px) {
    .pack-hero {
        padding: 6rem 0 3rem;
    }

    .pack-hero-icon {
        font-size: 4rem;
    }

    .pack-age-badge-large {
        font-size: 1.1rem;
        padding: 0.75rem 2rem;
    }

    .app-detail-card {
        flex-direction: column;
        text-align: center;
    }

    .app-detail-icon {
        margin: 0 auto 1rem;
    }
    
    .cta-section,
    .pack-cta-section {
        padding: 3rem 1.5rem;
    }
    
    .reality-card {
        padding: 2rem;
    }
    
    .reality-solution {
        padding: 1.5rem;
    }
    
    .bonus-apps-section {
        padding: 1.5rem;
    }
}
