/**
 * Viozzo Travel Features Widget Styles
 * "Where are you traveling next?" Section
 */

/* ============================================================================
   FEATURES SECTION
   ============================================================================ */

.viozzo-travel-features.features-section {
    padding: 10px 0;
    background: #F4F7FF;
    position: relative;
    color: #222222;
    min-height: 35vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.viozzo-travel-features.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
    z-index: 0;
}

.viozzo-travel-features .section-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.viozzo-travel-features .section-particle {
    position: absolute;
    width: 1px;
    height: 1px;
    background: #007bff;
    border-radius: 50%;
    animation: sectionFloat 8s infinite linear;
    opacity: 0.4;
}

@keyframes sectionFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

.viozzo-travel-features > * {
    position: relative;
    z-index: 1;
}

/* ============================================================================
   SECTION HEADER
   ============================================================================ */

.viozzo-travel-features .section-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 20px;
}

.viozzo-travel-features .section-title {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #222222 0%, #007bff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.viozzo-travel-features .section-subtitle {
    font-size: 0.8rem;
    color: #4A4A4A;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.4;
}

/* ============================================================================
   FEATURES GRID
   ============================================================================ */

.viozzo-travel-features .features-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    align-items: stretch;
    justify-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.viozzo-travel-features .feature-card {
    background: #E3F2FD;
    backdrop-filter: blur(15px);
    border: 2px solid #90CAF9;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 3px 15px rgba(33, 150, 243, 0.25), 0 0 30px rgba(33, 150, 243, 0.1);
}

.viozzo-travel-features .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #42A5F5);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.viozzo-travel-features .feature-card:hover::before {
    transform: scaleX(1);
}

.viozzo-travel-features .feature-card:hover {
    transform: translateY(-6px);
    border-color: #42A5F5;
    box-shadow: 0 6px 25px rgba(33, 150, 243, 0.35), 0 0 50px rgba(33, 150, 243, 0.15);
    background: #E3F2FD;
}

.viozzo-travel-features .feature-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 8px;
    background: #007bff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.25);
}

.viozzo-travel-features .feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222222;
    margin-bottom: 4px;
    line-height: 1.2;
}

.viozzo-travel-features .feature-description {
    font-size: 0.65rem;
    color: #4A4A4A;
    line-height: 1.3;
    margin: 0;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1024px) {
    .viozzo-travel-features .features-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 25px;
    }
}

@media (max-width: 768px) {
    .viozzo-travel-features .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 0 15px !important;
    }

    .viozzo-travel-features .feature-card {
        padding: 12px;
        min-height: 90px;
    }

    .viozzo-travel-features .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 4px;
    }

    .viozzo-travel-features .feature-title {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }

    .viozzo-travel-features .feature-description {
        font-size: 0.6rem;
    }

    .viozzo-travel-features .section-title {
        font-size: 1.8rem;
    }

    .viozzo-travel-features .section-subtitle {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .viozzo-travel-features .features-grid {
        gap: 12px !important;
        padding: 0 12px !important;
    }

    .viozzo-travel-features .feature-card {
        padding: 10px;
        min-height: 80px;
    }

    .viozzo-travel-features .feature-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .viozzo-travel-features .section-title {
        font-size: 1.5rem;
    }
}

/* ============================================================================
   PERFORMANCE OPTIMIZATIONS - Prevent Scroll Micro-movements
   ============================================================================ */

.viozzo-travel-features {
    contain: layout;  /* Isolate layout calculations */
    transform: translateZ(0);  /* Hardware acceleration */
    will-change: auto;  /* Prevent constant repaint */
}

.viozzo-travel-features .feature-card {
    contain: layout paint;  /* Isolate each card */
    transform: translateZ(0);  /* Hardware acceleration */
}

.viozzo-travel-features .feature-icon {
    contain: layout;  /* Isolate icon elements */
}
