
/* =========================
   COMPONENT PAGE
========================= */

.components-page {
    min-height: 100vh;
    background: #050816;
    position: relative;
    overflow: hidden;
    padding: 120px 6%;
    width: 100%;
}

/* =========================
   BLUR EFFECTS
========================= */

.components-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
}

.blur-1 {
    width: 300px;
    height: 300px;
    background: #8b5cf6;
    top: -100px;
    left: -100px;
    opacity: .2;
}

.blur-2 {
    width: 280px;
    height: 280px;
    background: #06b6d4;
    bottom: -100px;
    right: -100px;
    opacity: .2;
}

/* =========================
   LAYOUT
========================= */

.components-layout {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* =========================
   SIDEBAR
========================= */

.sidebar-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 25px;
    padding: 25px;
}

.sidebar-card h3 {
    color: white;
    margin-bottom: 20px;
}

.sidebar-card p {
    color: #94a3b8;
}

.sidebar-card ul {
    list-style: none;
    padding: 0;
}

.sidebar-card ul li {
    margin-bottom: 12px;
}

.sidebar-card ul li a {
    text-decoration: none;
    color: #cbd5e1;
    transition: .3s;
}

.sidebar-card ul li a:hover {
    color: #06b6d4;
    padding-left: 8px;
}

/* =========================
   CARD
========================= */

.component-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    padding: 25px;
    margin-bottom: 30px;

    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

/* Header */

.component-card__header {
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info h4 {
    color: white;
    margin: 0;
}

.user-info span {
    color: #94a3b8;
    font-size: 14px;
}

/* Body */

.component-card__body h2 {
    color: white;
    margin-bottom: 15px;
}

.component-description {
    color: #cbd5e1;
    line-height: 1.9;
}

/* =========================
   IMAGE GRID
========================= */

.component-gallery {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 12px;
    margin-top: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.overlay-count {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);

    display: flex;
    justify-content: center;
    align-items: center;

    color: white;
    font-size: 2rem;
    font-weight: bold;
}

/* =========================
   EMPTY STATE
========================= */

.empty-state {
    color: #94a3b8;
    text-align: center;
    margin-top: 50px;
}

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

@media (max-width: 1200px) {
    .components-layout {
        grid-template-columns: 250px 1fr;
    }

    .components-right {
        display: none;
    }
}

@media (max-width: 900px) {
    .components-layout {
        grid-template-columns: 1fr;
    }

    .components-sidebar {
        order: -1;
    }

    .component-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 220px;
    }
}

@media (max-width: 600px) {

    .components-page {
        padding: 30px 5%;
    }

    .component-card {
        padding: 20px;
    }

    .component-card__body h2 {
        font-size: 22px;
    }
}
