/* ALA PUKA - Features Page CSS Overrides */

/* Search & Filter Section */
.search-filter-section {
    padding: 30px 0;
    border-bottom: 1px solid rgba(0, 255, 183, 0.08);
    margin-bottom: 40px;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 24px auto;
    position: relative;
}

.search-container i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-accent);
    font-size: 1.1rem;
    opacity: 0.6;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 54px;
    background: rgba(4, 38, 30, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.05rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.search-input:focus {
    border-color: var(--brand-accent);
    background-color: rgba(4, 38, 30, 0.7);
    box-shadow: 0 0 15px rgba(0, 255, 183, 0.15);
}

.tabs-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.filter-tab {
    background: rgba(4, 38, 30, 0.3);
    border: 1px solid rgba(0, 255, 183, 0.1);
    color: var(--text-secondary);
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    border-color: var(--brand-accent);
    color: #fff;
    background: rgba(0, 255, 183, 0.05);
}

.filter-tab.active {
    background: var(--brand-accent);
    color: #011813;
    border-color: var(--brand-accent);
    box-shadow: 0 4px 12px var(--brand-accent-glow);
}

.results-meta {
    text-align: center;
    font-family: var(--font-label);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 12px;
}

/* Feature Cards Grid */
.features-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding-bottom: 80px;
}

.feature-card {
    position: relative;
    padding: 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.15s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
    background: var(--card-bg);
    overflow: hidden;
}

.feature-card:hover {
    box-shadow: 0 15px 30px rgba(0, 255, 183, 0.08);
}

.card-glow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: radial-gradient(
        circle at var(--gloss-x, 50%) var(--gloss-y, 50%), 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0) 50%
    );
    z-index: 2;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.feature-num {
    font-family: var(--font-label);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-accent);
}

.part-badge {
    background: rgba(0, 255, 183, 0.08);
    border: 1px solid rgba(0, 255, 183, 0.2);
    color: var(--brand-accent);
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 12px;
}

.feature-benefit-summary {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

.sensor-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    max-width: 60%;
}

.sensor-pill-micro {
    border: 1px solid;
    font-family: var(--font-label);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sensor-pill-micro i {
    font-size: 0.6rem;
}

.sensor-pill-micro-more {
    font-family: var(--font-label);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 2px 4px;
}

.btn-card-action {
    background: transparent;
    border: none;
    color: var(--brand-accent);
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.feature-card:hover .btn-card-action {
    gap: 8px;
}

/* Glassmorphic Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(1, 24, 19, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content-glass {
    background: rgba(4, 38, 30, 0.85);
    border: 1px solid rgba(0, 255, 183, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 255, 183, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content-glass {
    transform: translateY(0) scale(1);
}

.modal-close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(0, 255, 183, 0.1);
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

.modal-body {
    padding: 40px;
}

.modal-header-section {
    margin-bottom: 24px;
    padding-right: 32px;
}

.modal-num {
    font-family: var(--font-label);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-accent);
    margin-bottom: 8px;
    display: block;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 8px;
}

.modal-part-label {
    font-family: var(--font-label);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.modal-divider {
    height: 1px;
    background: rgba(0, 255, 183, 0.1);
    margin: 24px 0;
}

.modal-section-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-accent);
    margin-bottom: 12px;
    display: block;
}

.modal-text-content {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-sensors-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.sensor-pill-modal {
    border: 1px solid;
    font-family: var(--font-label);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sensor-pill-modal i {
    font-size: 0.9rem;
}
