/* --- Reset & Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Layout Utilities --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Header --- */
.main-header {
    background-color: #fff;
    padding: 1.5rem 0;
    margin-bottom: 3rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.main-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    letter-spacing: -0.5px;
}

/* --- Grid System --- */
.grid-layout {
    display: grid;
    /* This creates responsive columns automatically */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}

/* --- Cards --- */
.site-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes buttons to bottom */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e0e0e0;
    height: 100%;
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.card-content {
    margin-bottom: 1.5rem;
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    background-color: #333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* If using real images later, use this class instead of placeholder */
.site-logo {
    max-height: 50px;
    margin-bottom: 1rem;
    display: block;
}

.site-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.description {
    font-size: 0.95rem;
    color: #666;
}

/* --- Buttons --- */
.card-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn {
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: background 0.2s;
    flex: 1; /* Makes buttons equal width */
}

.btn-primary {
    background-color: #333;
    color: #fff;
}

.btn-primary:hover {
    background-color: #000;
}

.btn-secondary {
    background-color: transparent;
    color: #333;
    border: 1px solid #ccc;
}

.btn-secondary:hover {
    background-color: #f9f9f9;
    border-color: #999;
}

/* --- Footer --- */
.main-footer {
    margin-top: auto;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}