/* ==========================================
   Features Page Styles
   ========================================== */

/* Page Header */
.page-header {
    background: var(--primary-gradient);
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.03) 20px,
        rgba(255, 255, 255, 0.03) 40px
    );
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-header .badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Feature Detail Section */
.feature-detail {
    padding: 100px 0;
    background: var(--bg-white);
}

.feature-detail.alt {
    background: var(--bg-light);
}

.feature-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-detail-grid.reverse {
    direction: ltr;
}

.feature-detail-grid.reverse .feature-detail-content {
    direction: rtl;
}

.feature-detail-content .badge {
    margin-bottom: 15px;
}

.feature-detail-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.feature-detail-content > p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.feature-list {
    margin-bottom: 30px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 0;
}

.feature-list li i {
    color: var(--success);
    font-size: 1.1rem;
    margin-top: 3px;
}

.feature-list li span {
    font-size: 1.05rem;
    color: var(--text-medium);
}

.feature-detail-image {
    position: relative;
}

.feature-detail-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.feature-detail-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--accent-yellow-gradient);
    border-radius: 50%;
    opacity: 0.3;
    z-index: -1;
}

.feature-detail-image::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0.2;
    z-index: -1;
}

/* All Features Grid */
.all-features {
    padding: 100px 0;
    background: var(--bg-white);
}

.features-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.feature-compact {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-normal);
}

.feature-compact:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.feature-compact i {
    font-size: 2rem;
    color: var(--primary-purple);
    margin-bottom: 15px;
    display: block;
}

.feature-compact:hover i {
    color: var(--accent-yellow);
    transform: scale(1.1);
}

.feature-compact h4 {
    font-size: 1rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .feature-detail-grid,
    .feature-detail-grid.reverse {
        grid-template-columns: 1fr;
        gap: 50px;
        direction: rtl;
    }

    .feature-detail-grid.reverse .feature-detail-content {
        order: 1;
    }

    .feature-detail-grid.reverse .feature-detail-image {
        order: 2;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 150px 0 80px;
    }

    .feature-detail {
        padding: 60px 0;
    }

    .features-compact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .features-compact-grid {
        grid-template-columns: 1fr;
    }
}
