/**
 * English Homepage Specific Styles
 * Adapted to existing Magica design system
 */

/* ================================
   HERO TRUST BADGES (COMPACT)
   ================================ */

.hero-trust-benefits {
    max-width: 600px;
    margin: 0 auto;
}

.trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    min-height: 60px;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.trust-badge i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.trust-badge span {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

/* Mobile responsive */
@media (max-width: 767.98px) {
    .hero-trust-benefits {
        margin-top: 1.5rem;
    }
    
    .trust-badge {
        padding: 0.5rem;
        min-height: 50px;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .trust-badge i {
        font-size: 1rem;
    }
    
    .trust-badge span {
        font-size: 0.75rem;
    }
}

/* ================================
   PROBLEM-SOLUTION MATRIX
   ================================ */

.problem-solution-card {
    background-color: var(--light-panel-bg);
    border-radius: 30px;
    padding: var(--card-padding);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.1);
}

.ps-header .header-section {
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.ps-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.ps-item:last-child {
    border-bottom: none;
}

.problem-item,
.solution-item {
    padding: 1rem;
    border-radius: 8px;
    height: 100%;
    transition: all 0.3s ease;
}

.problem-item {
    background: rgba(220, 53, 69, 0.03);
    border-left: 3px solid rgba(220, 53, 69, 0.3);
}

.solution-item {
    background: rgba(25, 135, 84, 0.03);
    border-left: 3px solid rgba(25, 135, 84, 0.3);
}

.problem-item:hover {
    background: rgba(220, 53, 69, 0.05);
    border-left-color: rgba(220, 53, 69, 0.5);
}

.solution-item:hover {
    background: rgba(25, 135, 84, 0.05);
    border-left-color: rgba(25, 135, 84, 0.5);
}

/* Stats Sidebar */
.stat-item {
    padding: 0.35rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-item:last-child {
    border-bottom: none;
}

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

/* Mobile responsiveness for Problem-Solution */
@media (max-width: 767.98px) {
    .ps-header .col-6 {
        margin-bottom: 0.5rem;
    }
    
    .ps-header .header-section {
        margin: 0;
        padding: 1rem !important;
    }
    
    .ps-item .col-6 {
        margin-bottom: 1rem;
    }
    
    .ps-item .pe-2,
    .ps-item .ps-2 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .problem-item,
    .solution-item {
        margin-bottom: 0.5rem;
    }
    
    .stats-sidebar {
        margin-top: 2rem;
    }
    
    .stats-card {
        position: static !important;
    }
}

/* ================================
   COMPARISON TABLE
   ================================ */

.comparison-section {
    position: relative;
    overflow: hidden;
}

.comparison-table-wrapper {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border: none;
}

.comparison-table-wrapper.shadow-lg {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12) !important;
}

.comparison-table {
    font-size: 0.95rem;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table thead th {
    padding: 1.5rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    background-color: transparent;
}

.comparison-table tbody td {
    padding: 1.25rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.comparison-table tbody tr:hover td {
    background-color: rgba(13, 98, 225, 0.02);
}

.feature-col {
    text-align: left !important;
    width: 28%;
    background-color: transparent !important;
    font-weight: 600;
    color: var(--light-text);
    padding-left: 2rem !important;
}

.magica-col {
    background: linear-gradient(180deg, rgba(13, 98, 225, 0.08) 0%, rgba(13, 98, 225, 0.04) 100%);
    position: relative;
    box-shadow: inset 0 0 0 2px rgba(13, 98, 225, 0.15);
}

.app-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.app-header.magica {
    position: relative;
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Feature value boxes */
.feature-value-box {
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-value-box.success-box {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.1) 0%, rgba(25, 135, 84, 0.05) 100%);
}

.feature-value-box.danger-box {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
}

/* Special rows */
.privacy-row {
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.08) 0%, transparent 100%);
}

.gdpr-row {
    background: linear-gradient(90deg, rgba(13, 202, 240, 0.08) 0%, transparent 100%);
}

.price-row {
    background: linear-gradient(180deg, rgba(13, 98, 225, 0.08) 0%, rgba(13, 98, 225, 0.12) 100%);
    font-weight: 700;
}

.price-row td {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Price boxes */
.price-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.winner-price {
    position: relative;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(13, 98, 225, 0.1) 0%, rgba(95, 210, 147, 0.1) 100%);
    border-radius: 12px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(13, 98, 225, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(13, 98, 225, 0.4);
    }
}

/* Pulse badge animation */
.pulse-badge {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Hover lift effect */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(13, 98, 225, 0.25) !important;
}

.comparison-footer {
    margin: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
}

/* Mobile responsiveness for comparison table */
@media (max-width: 767.98px) {
    .comparison-table-wrapper {
        padding: 1rem;
        overflow-x: auto;
    }
    
    .comparison-table {
        font-size: 0.8rem;
        min-width: 600px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.25rem;
    }
}

/* ================================
   BEFORE & AFTER TRANSFORMATION
   ================================ */

.transformation-card {
    background-color: var(--light-panel-bg);
    border-radius: 30px;
    padding: var(--card-padding);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.before-section,
.after-section {
    padding: var(--card-padding);
    height: 100%;
}

.before-section {
    border-right: 1px solid rgba(0,0,0,0.1);
}

.item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.item:last-child {
    border-bottom: none;
}

.item i {
    font-size: 1.1rem;
}

.mini-calculator-card {
    background-color: var(--light-panel-bg);
    border-radius: 30px;
    padding: var(--card-padding);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.form-range {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
}

.form-range::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.result-box {
    transition: all 0.3s ease;
}

.result-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 767.98px) {
    .before-section {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        margin-bottom: 1rem;
    }
    
    .transformation-card {
        margin-bottom: 1.5rem;
    }
    
    .mini-calculator-card .row {
        margin-bottom: 1rem;
    }
    
    .mini-calculator-card .col-md-3 {
        margin-bottom: 1rem;
    }
}

/* ================================
   DARK MODE SUPPORT
   ================================ */

@media (prefers-color-scheme: dark) {
    .trust-benefits-section,
    .roi-calculator-section {
        background-color: var(--dark-bg);
        color: var(--dark-text);
    }

    .trust-benefit-card,
    .calculator-card,
    .problem-solution-card,
    .comparison-table-wrapper,
    .result-card,
    .transformation-card,
    .mini-calculator-card {
        background-color: var(--dark-panel-bg) !important;
    }
    
    .trust-benefit-content h4,
    .problem-header, 
    .solution-header,
    .feature-col {
        color: var(--dark-text) !important;
    }
    
    .trust-benefit-content p {
        color: var(--dark-text-secondary) !important;
    }
    
    .result-card:not(.primary) {
        color: var(--dark-text);
    }
    
    .form-control, 
    .form-select {
        background-color: var(--dark-panel-bg);
        border-color: rgba(255, 255, 255, 0.1);
        color: var(--dark-text);
    }
    
    .form-control:focus, 
    .form-select:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 0.2rem rgba(13, 98, 225, 0.25);
    }
}