:root {
    --main-bg: #0f0f0f;
    --card-bg: #1b1b1b;
    --accent: #ff9000;
    --text: #ffffff;
    --secondary-bg: #252525;
    --hover-bg: #2d2d2d;
    --logo-color: #ff9000;
}

body {
    background: var(--main-bg);
    color: var(--text);
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 15px;
    line-height: 1.6;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

.category-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.75rem;
    border: 1px solid #333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    border-color: var(--accent);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.75rem;
}

.card-icon {
    font-size: 1.8em;
    margin-right: 1rem;
    color: var(--accent);
}

.card-header h3 {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-list li {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--secondary-bg);
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.links-list li:hover {
    background: var(--hover-bg);
    transform: scale(1.02);
}

.links-list a {
    color: var(--text);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-weight: 500;
}

.hot-tag {
    background-color: var(--accent);
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

/* Site header and footer */
.site-header, .site-footer {
    max-width: 1200px;
    margin: 0 auto 25px auto;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid #333;
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--logo-color);
    margin-right: 0.75rem;
}

.site-header h1 {
    margin: 0;
    font-size: 2.5rem;
    letter-spacing: 1px;
    font-weight: 800;
}

.pro-text {
    color: var(--accent);
}

.site-header p {
    margin-top: 0.5rem;
    opacity: 0.9;
    font-style: italic;
}

.site-footer {
    margin-top: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

/* Mobile optimization */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .directory-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .category-card {
        padding: 1.25rem;
    }
    
    .links-list li {
        padding: 0.85rem;
    }
    
    .site-header h1 {
        font-size: 2rem;
    }
}

/* Ensure content is visible on small screens */
@media (max-width: 320px) {
    .category-card {
        padding: 1rem;
    }
    
    .card-header h3 {
        font-size: 1.1em;
    }
    
    .links-list a {
        font-size: 0.9em;
    }
    
    .logo-icon {
        font-size: 1.8rem;
    }
    
    .site-header h1 {
        font-size: 1.8rem;
    }
}