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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Container */
.container {
    max-width: 900px;
    width: 100%;
    text-align: center;
}

/* Header */
header {
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

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

/* Grid Layout */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Card Layout with Logo on the Right */
.card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 2px solid transparent;
    
    /* Side-by-side alignment */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-color: #0070f3;
}

/* Card Text Side */
.card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card h3 {
    font-size: 1.3rem;
    color: #0070f3;
    margin-bottom: 6px;
}

.card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 12px;
}

.card .url {
    font-size: 0.85rem;
    color: #999;
    font-family: monospace;
}

/* Card Logo Side */
.card-logo {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-logo svg {
    width: 100%;
    height: 100%;
    fill: #0070f3; /* Accent color matching headers */
}

/* Footer */
footer {
    font-size: 0.85rem;
    color: #888;
}

/* Mobile responsive fallback */
@media (max-width: 400px) {
    .card {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    .card-logo {
        margin-bottom: 15px;
    }
}
