:root {
    --deep-indigo: #4b0082;
    --royal-purple: #6a0dad;
    --soft-violet: #9370db;
    --lavender: #e6e6fa;
    --light-lavender: #f8f5ff;
    --orchid: #da70d6;
    --dark-orchid: #9932cc;
    --blue-violet: #8a2be2;
    --medium-purple: #9370db;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--light-lavender);
    color: #2d1b4e;
    line-height: 1.6;
    margin-left: 280px;
    transition: margin-left 0.3s ease;
}

header {
    background: url('m5.png') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 3rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(75, 0, 130, 0.2);
    position: relative;
    z-index: 10;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(75, 0, 130, 0.4); /* purple overlay */
    z-index: 0;
}

header h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

main {
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

.category-header h2 {
    color: var(--deep-indigo);
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.category-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--medium-purple), var(--deep-indigo));
    border-radius: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* exactly 6 equal columns */
    gap: 1.5rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(75, 0, 130, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(75, 0, 130, 0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--lavender);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--royal-purple);
    font-size: 2rem;
}

.category-name {
    color: var(--deep-indigo);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.category-link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(to right, var(--blue-violet), var(--dark-orchid));
    color: white;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.category-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(138, 43, 226, 0.3);
    background: linear-gradient(to right, var(--dark-orchid), var(--blue-violet));
}

.empty-state {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

.empty-state p {
    color: #4a3a6e;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    body {
        margin-left: 0;
        padding-top: 80px;
    }
    
    header {
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 100;
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    main {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .category-header {
        flex-direction: column;
        align-items: center;
        position: relative;
        top: 30px;
    }
}
