/* linkdump/style.css - Component specific styles only */

/* Header Adjustments (Override centering) */
.main-header {
    text-align: left;
    margin-bottom: 2rem;
    padding: 0;
}

.main-header h1 {
    font-size: 3rem; 
    text-align: left;
    /* Inherit gradient from main style.css */
}

/* Local Component Styles */
.controls-area {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid #444;
    color: #aaa;
    padding: 0.5rem 1rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.filter-btn.active {
    background: var(--cyan);
    color: #000;
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.search-bar {
    margin: 0;
    flex-grow: 1;
    max-width: 300px;
}

#search-input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid #444;
    padding: 0.6rem;
    color: var(--cyan);
    font-family: 'Rajdhani', sans-serif;
}

/* Masonry Grid */
#masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

/* Category Card */
.category-card {
    background: var(--glass-bg); /* Use main theme glass background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    break-inside: avoid;
    margin-bottom: 1.5rem;
    transition: transform 0.2s;
}

.category-card:hover {
    border-color: var(--cyan);
}

.card-header {
    background: rgba(0, 243, 255, 0.05);
    color: var(--cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin: 0;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
}

.link-list li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.link-list {
    list-style: none; /* Remove bullets */
    padding: 0;
    margin: 0;
}

.link-item {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.link-item:hover {
    background: rgba(0, 243, 255, 0.1);
    color: var(--cyan);
}

.link-text {
    font-weight: 600;
}

.link-meta {
    color: #888;
    margin-left: 5px;
    font-size: 0.9rem;
}

.hidden {
    display: none !important;
}

/* Mobile */
@media (max-width: 900px) {
    #masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    #masonry-grid {
        column-count: 1;
    }
    
    .controls-area {
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar {
        max-width: none;
    }
}
