/* --- 1. Global / Body Reset (Dark Theme Base) --- */
body {
    background: #0D1117; /* Dark background color (GitHub Dark Blue/Gray) */
    color: #E6E6E6;      /* Light text color */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    /* Optional: Add a subtle, dynamic gradient or image for a 'techy' feel */
    background-image: radial-gradient(circle at 10% 20%, rgba(31, 23, 102, 0.2) 0%, rgba(13, 17, 23, 1) 90%);
    background-attachment: fixed;
}

/* --- 2. Layout & Containers --- */
.resource-center {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- 3. Hero and Search --- */
.search-hero {
    text-align: center;
    padding: 80px 20px 50px;
}

.hero-title {
    font-size: 2.8em;
    font-weight: 700;
    color: #4CAF50; /* A vibrant accent color (e.g., Tech Green) */
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.1em;
    color: #B0B0B0;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-box input {
    padding: 15px 20px;
    width: 400px;
    max-width: 80%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08); /* Light transparency for the input */
    color: #E6E6E6;
    font-size: 1em;
    transition: all 0.3s;
}

.search-box input::placeholder {
    color: #888;
}

.search-button {
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    background: #4CAF50; /* Primary accent color */
    color: #0D1117;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.search-button:hover {
    background: #66BB6A;
    transform: translateY(-2px);
}

/* --- 4. Categories Bar --- */
.categories-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-link {
    color: #B0B0B0;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    transition: color 0.3s, background 0.3s;
    font-size: 0.95em;
}

.category-link:hover, .category-link.active {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

/* --- 5. Article Grid & Glassmorphism Cards --- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 25px;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    position: relative;
    z-index: 1; /* Ensure card is above background */
}

/* The Glassmorphism Effect */
.glassmorphism-card {
    /* Background: Semi-transparent black with low opacity */
    background: rgba(18, 18, 18, 0.3); 
    /* The key to the 'frosted glass' look */
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    /* Subtle border for definition */
    border: 1px solid rgba(255, 255, 255, 0.1); 
    /* Inner shadow for depth */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3); /* Subtle accent shadow on hover */
}

.card-tag {
    display: inline-block;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.special-tag {
    color: #00BCD4; /* Cyan/blue for special topics like Gaming */
    background: rgba(0, 188, 212, 0.1);
}

.card-title {
    font-size: 1.4em;
    margin: 0 0 10px 0;
    line-height: 1.3;
    color: #E6E6E6;
}

.card-excerpt {
    font-size: 0.95em;
    color: #B0B0B0;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #888;
}

/* --- 6. Responsive Adjustments --- */
@media (max-width: 768px) {
    .search-hero {
        padding: 50px 10px 30px;
    }
    .hero-title {
        font-size: 2em;
    }
    .search-box {
        flex-direction: column;
    }
    .search-box input, .search-button {
        width: 100%;
        max-width: 100%;
    }
    .categories-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    .article-grid {
        grid-template-columns: 1fr;
    }
}