/**
 * AysimaPOS - E-Invoice Landing Page Styles
 * 
 * Modular CSS for E-Fatura landing page
 * No inline styles - full external stylesheet
 * 
 * @version 2.3.0
 * @author AysimaPOS Development Team
 */

/* ============================================
   Hero Section
   ============================================ */
.einvoice-hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 40px 0 40px;
    position: relative;
    overflow: hidden;
}

.einvoice-hero-section .container {
    max-width: 1280px;
}

.einvoice-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.2)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.8;
}

.einvoice-hero-content {
    color: var(--color-white);
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
    box-sizing: border-box;
}

.einvoice-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease;
}

.einvoice-hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
    animation: fadeInUp 0.8s ease;
}

.einvoice-hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 auto 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
    max-width: 1280px !important;
}

.max-w-wide {
    max-width: 1280px !important;
}

.text-lg {
    font-size: 1.125rem;
}

.leading-relaxed {
    line-height: 1.8;
}

.text-xl {
    font-size: 1.25rem;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7);
}

.text-sm {
    font-size: 0.875rem;
}

/* ============================================
   USP Section - Why AysimaPOS?
   ============================================ */
.einvoice-usp-section {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #718096;
    margin-bottom: 1.5rem;
}

.usp-card {
    background: white;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    border-radius: 12px;
    padding: 1.25rem;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.usp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.usp-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: white;
}

.usp-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.usp-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 0;
}

/* ============================================
   Feature Cards Section
   ============================================ */
.einvoice-features-section {
    background: #ffffff;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.feature-card-wrapper {
    background: #f8f9fa;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-card-wrapper:last-child {
    margin-bottom: 0;
}

.feature-content {
    padding: 1rem;
}

/* Feature Badge (Step Indicator) */
.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: #ffffff !important;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Feature Title */
.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Feature Description */
.feature-description {
    font-size: 0.9375rem;
    color: var(--color-gray-700);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.feature-description a {
    color: var(--color-primary-600);
    text-decoration: underline;
    font-weight: 600;
}

.feature-description a:hover {
    color: var(--color-primary-700);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.feature-list li {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: start;
    gap: 0.5rem;
}

.feature-list li i {
    margin-top: 2px;
    font-size: 1rem;
}

.feature-note {
    background: #edf2f7;
    border-left: 3px solid #4299e1;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: start;
    gap: 0.5rem;
}

.feature-note i {
    color: #4299e1;
    font-size: 1.125rem;
    margin-top: 2px;
}

.feature-note span {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #2d3748;
}

/* Feature Image */
.feature-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.feature-image:hover {
    opacity: 0.85;
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   CTA Section
   ============================================ */
.einvoice-cta-section {
    background: var(--gradient-primary);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.einvoice-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid-cta" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.2)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid-cta)"/></svg>');
    opacity: 0.8;
    z-index: 1;
}

.cta-card {
    background: white;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
}

.cta-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
    animation: pulse 2s infinite;
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 1.25rem;
}

.cta-features {
    margin-bottom: 1.25rem;
}

.cta-features .row {
    justify-content: center;
}

.cta-features .col-md-4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.cta-features i {
    font-size: 1.25rem;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 991px) {
    .einvoice-hero-title {
        font-size: 2.25rem;
    }
    
    .einvoice-hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .feature-title {
        font-size: 1.375rem;
    }
    
    .feature-card-wrapper {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .feature-content {
        padding: 0;
        margin-bottom: 1rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-card {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 767px) {
    .einvoice-hero-section {
        padding: 40px 0 30px;
    }
    
    .einvoice-hero-title {
        font-size: 1.875rem;
    }
    
    .einvoice-hero-subtitle {
        font-size: 0.9375rem;
    }
    
    .einvoice-hero-badge {
        padding: 8px 20px;
        font-size: 0.8125rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-title {
        font-size: 1.25rem;
    }
    
    .feature-description {
        font-size: 0.875rem;
    }
    
    .feature-card-wrapper {
        margin-bottom: 1.25rem;
        padding: 1.25rem;
    }
    
    .usp-card {
        margin-bottom: 1rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-card {
        padding: 1.5rem 1rem;
    }
    
    .cta-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .cta-features .col-md-4 {
        flex-basis: 100%;
        justify-content: start;
    }
}

@media (max-width: 575px) {
    .einvoice-hero-title {
        font-size: 1.5rem;
    }
    
    .einvoice-hero-subtitle {
        font-size: 0.875rem;
    }
    
    .feature-title {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .usp-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .usp-title {
        font-size: 1.125rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .einvoice-hero-section::before {
        display: none;
    }
    
    .einvoice-cta-section {
        display: none;
    }
    
    .feature-card-wrapper {
        page-break-inside: avoid;
        background: #ffffff;
        box-shadow: none;
    }
}

/* ============================================
   Dark Mode Support (Future Ready)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here in future */
}
