/* ============================================
   INDEX — homepage right panel & featured cards
   Used by: index.html
   ============================================ */

.panel-right {
  flex: 1;
  height: 100vh;
  background: linear-gradient(100deg,
    #12112a 0%, #0c0b1e 10%, #080714 50%, #03020a 75%, #000 100%);
  display: flex;
  align-items: flex-start;
  padding: 40px 48px;        /* slightly tighter padding = more room */
  overflow-y: auto;
}


.panel-right::-webkit-scrollbar {
    width: 4px;
}

.panel-right::-webkit-scrollbar-track {
    background: transparent;
}

.panel-right::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.hp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 24px;
  width: 100%;
}


.hp-card {
    display: block;
    text-decoration: none;
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    background: #0d0c20;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.hp-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.hp-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.hp-card:hover .hp-thumb {
    transform: scale(1.04);
}

.hp-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top,
            rgba(5, 5, 16, 0.97) 0%, rgba(5, 5, 16, 0.7) 60%, transparent 100%);
    padding: 16px 16px 14px;
    transition: padding 0.25s ease;
}

.hp-card:hover .hp-overlay {
    padding: 20px 16px 16px;
}

.hp-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-meta {
    font-size: 11px;
    color: #888;
    text-transform: capitalize;
}

.hp-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.25s ease;
    margin-top: 0;
}

.hp-card:hover .hp-details {
    max-height: 120px;
    opacity: 1;
    margin-top: 8px;
}

.hp-desc {
    font-size: 11px;
    color: #aaa;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.hp-tag {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 10px;
    color: #aaa;
}

@media (max-width: 768px) {
    .panel-right {
        height: auto;
        padding: 28px 16px;
    }

    .hp-grid {
        grid-template-columns: 1fr;
    }
}