/* === Font: Mojangles === */
@font-face {
    font-family: 'Mojangles';
    src: url('../fonts/mojangles.ttf') format('truetype');
    font-display: swap;
}

/* === Reset & Base === */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--fg);
    transition: background 0.3s, color 0.3s;
}

:root {
    --bg: #16161a;
    --fg: #f3f3f3;
    --card-bg: #23233a;
    --card-border: #2e2e4d;
    --accent: #8f6ae7;
    --button-gradient: linear-gradient(90deg, #8f6ae7 0%, #5ad1cd 100%);
    --button-hover: linear-gradient(90deg, #f7971e 0%, #ffd200 100%);
    --shadow: 0 6px 24px rgba(60,60,100,0.2);
}

body.light {
    --bg: #f8fafc;
    --fg: #23233a;
    --card-bg: #fff;
    --card-border: #e5e7eb;
    --accent: #8f6ae7;
    --button-gradient: linear-gradient(90deg, #8f6ae7 0%, #5ad1cd 100%);
    --button-hover: linear-gradient(90deg, #f7971e 0%, #ffd200 100%);
    --shadow: 0 3px 12px rgba(150,150,150,0.07);
}

/* === Layout === */
.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem 1rem 1rem;
}
header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}
.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.site-logo {
    width: 42px;
    height: 42px;
    border-radius: 8px;
}
h1 {
    font-family: 'Mojangles', 'Segoe UI', Arial, sans-serif;
    font-size: 2.7rem;
    margin: 0;
    letter-spacing: 1px;
}
.subtitle {
    margin-top: 0.6rem;
    font-size: 1.15rem;
    color: var(--accent);
    font-family: 'Mojangles', 'Segoe UI', Arial, sans-serif;
    letter-spacing: 0.8px;
}
.socials {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}
.socials a {
    color: var(--accent);
    font-size: 1.5rem;
    transition: color 0.2s, transform 0.2s;
}
.socials a:hover {
    color: #fff04d;
    transform: scale(1.16) rotate(-8deg);
}
#theme-toggle {
    position: absolute;
    right: 1.2rem;
    top: 0.5rem;
    background: none;
    border: none;
    font-size: 1.7rem;
    cursor: pointer;
    color: var(--accent);
    transition: color 0.25s;
    z-index: 10;
}
#theme-toggle:focus { outline: none; }

.heart {
    color: #ff4d6d;
    font-size: 1.2em;
    vertical-align: middle;
}

/* === Repos === */
.repo-section {
    margin: 2rem 0;
}
.repo-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.7rem;
    margin-top: 1.5rem;
}
.repo-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 1.3rem 1rem;
    display: flex;
    flex-direction: column;
    transition: border 0.2s, box-shadow 0.2s;
    position: relative;
    min-height: 150px;
}
.repo-card:hover {
    border: 2px solid #ffd200;
    box-shadow: 0 6px 32px rgba(127, 87, 255, 0.13);
    z-index: 2;
}
.repo-title {
    font-family: 'Mojangles', 'Segoe UI', Arial, sans-serif;
    font-size: 1.22rem;
    color: var(--accent);
    margin-bottom: 0.45rem;
    font-weight: bold;
    letter-spacing: 0.4px;
}
.repo-desc {
    flex: 1;
    color: var(--fg);
    font-size: 1.04rem;
    margin-bottom: 0.7rem;
}
.repo-meta {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    font-size: 0.96rem;
    color: #ffd200;
}
.repo-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5em 1em;
    background: var(--button-gradient);
    color: #23233a;
    font-family: 'Mojangles', 'Segoe UI', Arial, sans-serif;
    border: none;
    border-radius: 7px;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    box-shadow: 0 2px 10px rgba(90,209,205,0.07);
}
.repo-link:hover {
    background: var(--button-hover);
    color: #23233a;
}

/* === Donate Button === */
.donate-link {
    text-align: center;
    margin: 2.5rem 0 1rem 0;
}
.colorful-btn {
    display: inline-block;
    padding: 0.85em 2.2em;
    font-family: 'Mojangles', 'Segoe UI', Arial, sans-serif;
    font-size: 1.3rem;
    border: none;
    border-radius: 17px;
    background: linear-gradient(90deg, #ff4d6d, #ffd200 90%);
    color: var(--card-bg);
    box-shadow: 0 2px 14px rgba(255,77,109,0.13);
    cursor: pointer;
    transition: background 0.3s, transform 0.16s;
    text-decoration: none;
    margin-top: 0.6em;
}
.colorful-btn:hover {
    background: linear-gradient(90deg, #8f6ae7, #5ad1cd 80%);
    color: #fff;
    transform: scale(1.07);
}

/* === Footer === */
footer {
    text-align: center;
    font-size: 1rem;
    margin-top: 2rem;
    color: var(--accent);
}

/* === Responsive === */
@media (max-width: 600px) {
    .main-container { padding: 0.7rem; }
    .repo-list { grid-template-columns: 1fr; }
    .header-title h1 { font-size: 2.2rem; }
    .colorful-btn { font-size: 1.05rem; }
}
