/* ===== DEVICES PAGE — matches halosim.com design ===== */

:root {
    --bg-gray: #F0F2F9;
    --border-soft: #E2E8F0;
}

/* ---- Hero ---- */
.compatibility-hero {
    background: var(--bg-gray);
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 520px;
}

.hero-text {
    flex: 1;
    padding: 50px 0;
}

.hero-text h1 {
    padding-top: 2rem;
    font-size: 4rem;
    font-weight: 600;
    color: #1a2035;
    line-height: 1.1;
    margin: 0;
}

.hero-graphic {
    flex: 1;
    padding-top: 5rem;
    overflow: hidden;
    height: 100%;
}

.hero-graphic img {
    object-fit: cover;
    object-position: top;
    height: 100%;
    width: 100%;
}

/* ---- Search Bar ---- */
.search-integration-wrap {
    max-width: 600px;
    margin-top: 10px;
    position: relative;
}

.hero-search-bar {
    width: 100%;
    padding: 18px 20px;
    padding-left: 60px;
    border-radius: 100px;
    border: 2px solid var(--border-soft);
    background: white;
    font-size: 1.1rem;
    color: #1a2035;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 26, 114, 0.05);
}

.hero-search-bar:focus {
    outline: none;
    border-color: var(--brand-primary, #F2A65A);
    box-shadow: 0 15px 40px rgba(0, 26, 114, 0.1);
    transform: translateY(-2px);
}

.search-icon-fixed {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--brand-primary, #F2A65A);
    pointer-events: none;
}

/* ---- Toast ---- */
.compatibility-toast {
    margin-top: 20px;
    padding: 18px 25px;
    border-radius: 15px;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    display: none;
    animation: slideUpFade 0.4s ease;
}

.toast-success {
    background: rgba(0, 175, 102, 0.1);
    color: #00af66;
    border: 1px solid #00af66;
    display: flex;
}

.toast-error {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid #EF4444;
    display: flex;
}

.toast-info {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
    border: 1px solid #94a3b8;
    display: flex;
}

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

/* ---- Hub ---- */
.compatibility-hub {
    padding: 40px 5%;
    text-align: center;
}

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

.filter-pill {
    padding: 10px 20px;
    border-radius: 50px;
    background: white;
    border: 1px solid var(--border-soft);
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-pill.active {
    background: var(--brand-primary, #F2A65A);
    color: white;
    border-color: var(--brand-primary, #F2A65A);
    box-shadow: 0 10px 20px var(--brand-primary-soft, rgba(242,166,90,0.25));
}

/* ---- Device Grid ---- */
.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-card {
    background: white;
    border-radius: 24px;
    padding: 22px;
    text-align: left;
    border: 1px solid var(--border-soft);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: none;
}

.brand-card.show {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

.brand-card:hover {
    transform: translateY(-3px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.card-header i {
    font-size: 1.5rem;
    color: var(--brand-primary, #F2A65A);
    background: var(--brand-primary-soft, rgba(242,166,90,0.1));
    padding: 12px;
    border-radius: 12px;
    flex-shrink: 0;
}

.card-header h3 {
    color: #1a2035;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.card-header span {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* ---- Device List ---- */
.device-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.device-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 0.95rem;
    color: #1a2035;
    font-weight: 500;
}

.device-item i {
    color: var(--brand-primary, #F2A65A);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.more-models {
    margin-top: 15px;
    color: var(--brand-primary, #F2A65A);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

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

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .compatibility-hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 5%;
        height: auto;
        min-height: 400px;
    }
    .hero-text h1 { font-size: 3rem; margin-bottom: 40px; }
    .hero-graphic { display: none; }
}

@media (max-width: 600px) {
    .hero-text h1 { font-size: 2.2rem; }
    .compatibility-hub { padding: 30px 4%; }
}
