/* categories_list_style.css - Premium Isolated List Component Stylesheet */

.list-wrapper {
    max-width: 780px; /* Kept compressed and highly scan-focused for international look */
    width: 100%;
    margin: 0 auto;
    padding: 100px 16px 40px 16px;
    display: flex;
    flex-direction: column;
}

.list-header-content {
    text-align: center;
    margin-bottom: 2rem;
}

.list-header-content h1 {
    font-size: 2rem;
    font-weight: 900;
    margin: 1rem 0 0.5rem 0;
    letter-spacing: -0.5px;
}

.list-header-content p {
    color: var(--muted-text);
    font-size: 0.9rem;
}

/* ==========================================================================
   DYNAMIC HORIZONTAL LIST ITEMS (GLASS CONTAINER SHEETS)
   ========================================================================== */
.categories-list-container {
    background-color: rgba(8, 8, 15, 0.644);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Tight compact vertical spacing layout footprint */
    width: 100%;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.category-list-row {
    background: rgba(8, 4, 24, 0.822);
    backdrop-filter: blur(12px);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 0.85rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease-in-out;
}

.category-list-row:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

/* Metadata Text Elements Layout */
.category-meta-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-right: 1rem;
}

.row-category-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
}

.row-nominee-counter-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-text);
}

.row-nominee-counter-badge span {
    color: var(--accent); /* Highlight precise numerical totals with orange color text */
    font-weight: 700;
}

/* Inline Action Anchor Row Layouts */
.row-actions-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.btn-list-action {
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    text-align: center;
}

/* Register Action: Matte subtle dark translucent body outline */
.btn-list-action.btn-register {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #3a506b;
    color: #FFFFFF;
}
.btn-list-action.btn-register:hover {
    border-color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

/* View Nominees Action: Transparent with crisp active outline accent color */
.btn-list-action.btn-view {
    background: transparent;
    border: 1px solid rgba(255, 122, 0, 0.4);
    color: var(--accent);
}
.btn-list-action.btn-view:hover {
    border-color: var(--accent);
    background: rgba(255, 122, 0, 0.05);
    box-shadow: 0 0 10px rgba(255, 122, 0, 0.15);
}

/* ==========================================================================
   API LOADING STATUS ANIMATED SPINNER
   ========================================================================== */
.api-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    gap: 0.85rem;
    color: var(--muted-text);
    font-size: 0.85rem;
}

.view-spinner-loader {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 122, 0, 0.15);
    border-bottom-color: var(--accent);
    border-radius: 50%;
    animation: listLoaderRotate 0.6s linear infinite;
}

@keyframes listLoaderRotate { to { transform: rotate(360deg); } }

/* ==========================================================================
   📶 SMARTPHONE VIEWPAD RESPONSIVE FINETUNING OVERRIDES
   ========================================================================== */
@media (max-width: 680px) {
    .category-list-row {
        flex-direction: column; /* Force single column vertical stacking flow rules on smaller devices */
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }
    
    .category-meta-info { padding-right: 0; }
    
    .row-actions-group {
        width: 100%;
        display: flex;
        flex-direction: row; /* Maintains elegant side-by-side row button actions layout matching your requirement */
        gap: 0.5rem;
    }
    
    .btn-list-action {
        flex: 1; /* Split structural real estate evenly across half track width lines */
        padding: 0.55rem;
        font-size: 0.72rem;
    }
}
