/* Modern Hub - Sidebar Layout with Advanced Search */

/* Wrapper */
.modern-hub-wrapper {
    background: #f8fafc;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   SEARCH FILTER SECTION (Top - Compact)
   ============================================ */

.search-filter-section {
    background: white;
    padding: 15px 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.search-filter-compact {
    max-width: 900px;
    margin: 0 auto;
}

.advanced-search-form {
    width: 100%;
}

.search-inputs-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input-group {
    flex: 1;
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    z-index: 1;
}

.search-input-main {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.search-input-main:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-select {
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

.search-select:focus {
    outline: none;
    border-color: #667eea;
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-icon {
    font-size: 16px;
}

/* ============================================
   MAIN CONTENT GRID (3 Columns: Sidebar + Content + Sidebar)
   ============================================ */

.main-content-grid {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 20px;
    margin-bottom: 20px;
}

/* ============================================
   SIDEBARS (Left & Right)
   ============================================ */

.left-sidebar,
.right-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.widget-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Circular Icons - Vertical Layout */
.circular-icons-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.circular-icon {
    text-align: center;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: block;
}

.circular-icon:hover {
    transform: translateX(5px);
    background: #f8fafc;
}

.icon-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.circular-icon:hover .icon-circle {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Color Variations */
.circular-icon.purple .icon-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.circular-icon.blue .icon-circle {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.circular-icon.green .icon-circle {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.circular-icon.yellow .icon-circle {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.circular-icon.red .icon-circle {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.circular-icon.orange .icon-circle {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.icon-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin-top: 3px;
}

.icon-count {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    font-weight: 700;
    margin-top: 2px;
}

/* ============================================
   CENTER CONTENT
   ============================================ */

.center-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* News & Articles Columns */
.content-columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.column-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.column-title-compact {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.title-icon {
    font-size: 18px;
}

.view-link-compact {
    font-size: 12px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.view-link-compact:hover {
    color: #764ba2;
}

/* Compact Lists */
.compact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.compact-list-item {
    border-bottom: 1px solid #f1f5f9;
}

.compact-list-item:last-child {
    border-bottom: none;
}

.compact-item-link {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.compact-item-link:hover {
    background: #f8fafc;
    padding-left: 8px;
    border-radius: 6px;
}

.item-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.news-indicator {
    background: #ef4444;
}

.article-indicator {
    background: #667eea;
}

/* Special News Item with Fire Emoji */
.news-item-special .item-indicator.news-indicator-fire {
    width: auto;
    height: auto;
    background: none;
    font-size: 14px;
    margin-top: 4px;
    animation: fire-pulse 1.5s ease-in-out infinite;
}

@keyframes fire-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

.news-item-special:hover .news-indicator-fire {
    animation: fire-shake 0.5s ease-in-out infinite;
}

@keyframes fire-shake {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-5deg) scale(1.1);
    }
    75% {
        transform: rotate(5deg) scale(1.1);
    }
}

.news-item-special .item-title-compact {
    color: #dc2626;
    font-weight: 700;
}

.news-item-special:hover .item-title-compact {
    color: #ef4444;
}

.item-text-wrap {
    flex: 1;
}

.item-title-compact {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #1e293b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-time-compact {
    font-size: 11px;
    color: #94a3b8;
}

.item-meta-compact {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 10px;
}

.meta-cat {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

.meta-date {
    color: #94a3b8;
    font-weight: 600;
}

/* ============================================
   DOCUMENTS SECTION
   ============================================ */

.documents-compact-section {
    margin-bottom: 20px;
}

.section-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.section-title-compact {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.docs-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.doc-mini {
    text-align: center;
}

.doc-mini-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.doc-mini-link:hover {
    transform: translateY(-3px);
}

.doc-mini-thumb {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.doc-mini-link:hover .doc-mini-thumb {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.doc-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doc-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.doc-mini-title {
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    color: #475569;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doc-mini-link:hover .doc-mini-title {
    color: #667eea;
}

/* ============================================
   TAGS SECTION
   ============================================ */

.tags-compact-section {
    padding-top: 15px;
    border-top: 2px solid #f1f5f9;
}

.tags-header {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tags-icon {
    font-size: 18px;
}

.tags-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    color: #475569;
    padding: 6px 12px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tag-chip:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

.tag-num {
    background: rgba(0,0,0,0.1);
    color: inherit;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .main-content-grid {
        grid-template-columns: 180px 1fr 180px;
        gap: 15px;
    }
    
    .icon-circle {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .icon-label {
        font-size: 10px;
    }
}

/* Tablets (Portrait) */
@media (max-width: 992px) {
    .main-content-grid {
        grid-template-columns: 1fr;
    }
    
    .left-sidebar,
    .right-sidebar {
        display: none;
    }
    
    .search-inputs-row {
        flex-wrap: wrap;
    }
    
    .search-input-group {
        flex-basis: 100%;
        margin-bottom: 8px;
    }
    
    .search-select {
        flex: 1;
        min-width: auto;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .center-content {
        padding: 15px;
    }
    
    .column-title-compact {
        font-size: 15px;
    }
}

/* Mobile Devices (Landscape & Portrait) */
@media (max-width: 768px) {
    .search-filter-section {
        padding: 12px 0;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .content-columns-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .docs-mini-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .search-btn .btn-text {
        display: inline;
    }
    
    .column-header-compact {
        margin-bottom: 12px;
    }
    
    .item-title-compact {
        font-size: 12px;
    }
    
    .item-time-compact,
    .item-meta-compact {
        font-size: 10px;
    }
    
    .section-title-compact {
        font-size: 16px;
    }
    
    .doc-mini-thumb {
        height: 130px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .modern-hub-wrapper {
        padding: 0;
    }
    
    .search-filter-section {
        padding: 10px 0;
        margin-bottom: 10px;
    }
    
    .search-input-main {
        font-size: 13px;
        padding: 8px 10px 8px 35px;
    }
    
    .search-select {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .search-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .center-content {
        padding: 12px;
        border-radius: 8px;
    }
    
    .column-title-compact {
        font-size: 14px;
    }
    
    .view-link-compact {
        font-size: 11px;
    }
    
    .compact-item-link {
        padding: 8px 0;
        gap: 8px;
    }
    
    .item-indicator {
        width: 5px;
        height: 5px;
    }
    
    .item-title-compact {
        font-size: 11px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .docs-mini-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .doc-mini-thumb {
        height: 110px;
        border-radius: 6px;
    }
    
    .doc-mini-title {
        font-size: 11px;
    }
    
    .section-title-compact {
        font-size: 14px;
    }
    
    .tags-flow {
        gap: 6px;
    }
    
    .tag-chip {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .tag-num {
        font-size: 9px;
        padding: 1px 4px;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    
    .search-input-main {
        font-size: 12px;
    }
    
    .docs-mini-grid {
        grid-template-columns: 1fr;
    }
    
    .doc-mini-thumb {
        height: 140px;
    }
}
