/* ==========================================================================
   AIVIBE.DK - Knowledge Hub Styles
   Matching original HTML structure exactly
   ========================================================================== */

/* Hero Compact */
.hero-compact {
    margin-top: 73px;
    background: var(--black);
    color: var(--white);
    padding: 2.5rem 3rem;
    text-align: center;
}

.hero-compact h1 {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 0.9;
    margin-bottom: 0.75rem;
}

.hero-compact h1 span {
    color: var(--yellow);
}

.hero-compact p {
    font-size: 0.95rem;
    max-width: 900px;
    margin: 0 auto 1rem;
}

.stats-inline {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.stat-item {
    font-family: 'Courier Prime', monospace;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--yellow);
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Filter Section */
.filter-section {
    background: var(--light-gray);
    padding: 2rem 3rem;
    border-bottom: 4px solid var(--black);
    position: sticky;
    top: 73px;
    z-index: 100;
}

.filter-container {
    max-width: 1600px;
    margin: 0 auto;
}

.filter-label {
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.filter-buttons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.filter-btn {
    padding: 1rem 1.25rem;
    background: var(--white);
    border: 3px solid var(--black);
    color: var(--black);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Work Sans', sans-serif;
    text-align: center;
}

.filter-btn:hover {
    background: var(--yellow);
}

.filter-btn.active {
    background: var(--black);
    color: var(--yellow);
}

/* Grid Section */
.grid-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2.5rem 3rem;
}

.grid-header {
    margin-bottom: 2rem;
}

.grid-header h2 {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.grid-count {
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    color: #666;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.grid-item {
    border: 3px solid var(--black);
    background: var(--white);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 140px;
    display: flex;
    flex-direction: column;
}

.grid-item:hover {
    background: var(--yellow);
    transform: translateY(-3px);
}

.item-category {
    font-family: 'Courier Prime', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.item-name {
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.item-type {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.75rem;
    font-family: 'Courier Prime', monospace;
}

.item-tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tag {
    background: var(--black);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Courier Prime', monospace;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border: 4px solid var(--yellow);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    background: var(--black);
    color: var(--white);
    padding: 2rem;
    border-bottom: 4px solid var(--yellow);
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--yellow);
    color: var(--black);
    width: 40px;
    height: 40px;
    border: 3px solid var(--yellow);
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--black);
    color: var(--yellow);
}

.modal-category {
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.modal-type {
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
}

.modal-body {
    padding: 2rem;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h3 {
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--black);
    padding-bottom: 0.5rem;
}

.modal-section p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #333;
}

.modal-section ul {
    list-style: none;
    font-family: 'Courier Prime', monospace;
    font-size: 0.9rem;
}

.modal-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray);
}

.modal-section li::before {
    content: '▸ ';
    color: var(--red);
    font-weight: 700;
    margin-right: 0.5rem;
}

.modal-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--black);
    color: var(--yellow);
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border: 3px solid var(--black);
    transition: all 0.2s ease;
}

.modal-link:hover {
    background: var(--yellow);
    color: var(--black);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.info-item {
    background: var(--light-gray);
    padding: 1rem;
    border: 2px solid var(--black);
}

.info-label {
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.info-value {
    font-weight: 700;
    font-size: 0.95rem;
}

/* Footer (Knowledge page has its own footer) */
footer {
    background: var(--black);
    color: var(--white);
    padding: 3rem 3rem 1.5rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 2rem;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-col h4 {
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    color: var(--yellow);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 0.6rem;
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--yellow);
}

.footer-col p {
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 2px solid var(--yellow);
    padding-top: 1.5rem;
    text-align: center;
    font-family: 'Courier Prime', monospace;
    font-size: 0.8rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .filter-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-compact h1 {
        font-size: 2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-compact {
        padding: 1.5rem;
    }
    
    .filter-section {
        padding: 1.5rem;
    }
    
    .grid-section {
        padding: 1.5rem;
    }
    
    .stats-inline {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-content {
        margin: 1rem;
    }
}
