/* ============================================
   SERVER INFRASTRUCTURE SECTION
   ============================================
   
   Purpose: Security & reliability trust-building card
   Location: After "Neden AysimaPOS?" section on landing page
   Design: Professional, clean, trust-focused
   
   ============================================ */

/* Section Background */
.server-infrastructure-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* Main Card Container */
.server-infrastructure-card {
    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: 24px;
    padding: 60px 50px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.08);
    position: relative;
}

/* Badge at Top */
.server-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Heading */
.server-heading {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-gray-900);
    line-height: 1.3;
    margin-bottom: 24px;
}

/* Description */
.server-description {
    font-size: 1.125rem;
    color: var(--color-gray-700);
    line-height: 1.8;
    margin-bottom: 32px;
}

/* Features List */
.server-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.server-features-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--color-gray-50);
    border-radius: 12px;
    border-left: 4px solid var(--color-success);
    transition: all 0.3s ease;
}

.server-features-list li:hover {
    background: var(--color-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

.server-features-list li i {
    font-size: 1.5rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.server-features-list li div {
    flex: 1;
}

.server-features-list li strong {
    display: block;
    font-size: 1.0625rem;
    color: var(--color-gray-900);
    margin-bottom: 6px;
    font-weight: 700;
}

.server-features-list li .text-muted {
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* CTA Button Area */
.server-cta .btn {
    padding: 16px 40px;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.3);
    transition: all 0.3s ease;
}

.server-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.4);
}

.server-cta-note {
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Image Wrapper with Overlays */
.server-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.server-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.server-infrastructure-card:hover .server-image {
    transform: scale(1.03);
}

/* Icon Overlays on Image */
.server-icon-overlay {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 2px solid var(--color-white);
}

.server-icon-overlay:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.server-icon-overlay i {
    font-size: 1.25rem;
    color: var(--color-primary);
}

.server-icon-overlay span {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-gray-800);
    white-space: nowrap;
}

/* Icon Positions */
.server-icon-1 {
    top: 15%;
    left: 8%;
}

.server-icon-2 {
    top: 15%;
    right: 8%;
}

.server-icon-3 {
    bottom: 35%;
    left: 5%;
}

.server-icon-4 {
    bottom: 35%;
    right: 5%;
}

/* Main Badge on Image */
.server-main-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: var(--color-white);
    padding: 16px 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.5);
    animation: pulse-badge 3s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(13, 110, 253, 0.5);
    }
    50% {
        box-shadow: 0 10px 40px rgba(13, 110, 253, 0.7);
    }
}

.server-main-badge .badge-icon {
    font-size: 2rem;
    line-height: 1;
}

.server-main-badge .badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.server-main-badge .badge-text strong {
    font-size: 1.25rem;
    font-weight: 800;
}

.server-main-badge .badge-text span {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .server-infrastructure-card {
        padding: 40px 30px;
    }
    
    .server-heading {
        font-size: 1.875rem;
    }
    
    .server-description {
        font-size: 1rem;
    }
    
    .server-image-wrapper {
        margin-top: 40px;
    }
    
    .server-icon-overlay {
        padding: 10px 14px;
    }
    
    .server-icon-overlay span {
        font-size: 0.75rem;
    }
}

@media (max-width: 767.98px) {
    .server-infrastructure-card {
        padding: 30px 20px;
    }
    
    .server-heading {
        font-size: 1.625rem;
    }
    
    .server-features-list li {
        flex-direction: column;
        gap: 12px;
    }
    
    .server-features-list li i {
        font-size: 1.25rem;
    }
    
    .server-cta .btn {
        width: 100%;
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    /* Mobile: Stack overlays vertically */
    .server-icon-1,
    .server-icon-2,
    .server-icon-3,
    .server-icon-4 {
        position: static;
        margin: 10px auto;
        width: fit-content;
    }
    
    .server-icon-overlay {
        justify-content: center;
    }
    
    .server-main-badge {
        position: static;
        transform: none;
        margin: 20px auto 0;
        width: fit-content;
    }
}

/* Print Styles */
@media print {
    .server-infrastructure-section {
        background: var(--color-white) !important;
    }
    
    .server-infrastructure-card {
        box-shadow: none;
        border: 1px solid var(--color-gray-300);
    }
    
    .server-cta,
    .server-icon-overlay {
        display: none;
    }
}
