/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #111;
    color: #eee;
    line-height: 1.5;
}

/* Header */
header {
    background: #1a1a1a;
    padding: 3rem 1rem;
    text-align: center;
    border-bottom: 1px solid #333;
}

header h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

header p {
    color: #888;
    font-size: 1.1rem;
}

/* Main Grid */
.grid-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    /* Responsive Magic: Minimum 280px width per card */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding-bottom: 4rem;
}

/* Card Styling */
.card {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #555;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.card-icon {
    height: 140px;
    background: #252525;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #333;
}

.card-icon img {
    max-width: 64px;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Subtle glow on icon */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.card-content {
    padding: 1.25rem;
    flex-grow: 1;
}

.card-content h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 600;
}

.card-content p {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.4;
    
    /* Clamp text to 3 lines so cards stay consistent height */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Error / Empty State */
.error-msg {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    padding: 3rem;
    border: 2px dashed #333;
    border-radius: 12px;
}

.error-msg h3 { color: #fca5a5; margin-bottom: 0.5rem; }

footer {
    text-align: center;
    padding: 3rem;
    color: #555;
    font-size: 0.9rem;
    border-top: 1px solid #1a1a1a;
}
/* Update or Add to assets/css/style.css */

/* 1. The Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 2. The Card Design */
.card {
    background: #ffffff; /* Or dark grey if you prefer dark mode */
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

/* 3. Hover Effect (The "Pop") */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
    border-color: #6366f1; /* A nice indigo highlight on hover */
}

/* 4. Icon Area */
.card-icon {
    padding: 2rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%); /* Subtle gradient background */
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 3px rgba(0,0,0,0.1)); /* Gives the icon depth */
}

/* 5. Text Content */
.card-content {
    padding: 1.5rem;
}

.card-content h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #111;
}

.card-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}
