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

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: #0b0d12;
    --fg: #bfc5d4;
    --card-bg: #10131c;
    --card-border: #1a1f30;
    --accent: #3d5a8a;
    --button-gradient: linear-gradient(135deg, #1c3460 0%, #264d8c 100%);
    --button-hover: linear-gradient(135deg, #14274a 0%, #1e3c6e 100%);
    --shadow: 0 4px 20px rgba(5,8,18,0.5);
}

body.light {
    --bg: #eef0f5;
    --fg: #1a1e2a;
    --card-bg: #ffffff;
    --card-border: #c8cedc;
    --accent: #2c4a78;
    --button-gradient: linear-gradient(135deg, #1c3460 0%, #264d8c 100%);
    --button-hover: linear-gradient(135deg, #14274a 0%, #1e3c6e 100%);
    --shadow: 0 2px 10px rgba(20,30,60,0.08);
}

.main-container {
    max-width: 1000px;
    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: 48px;
    height: 48px;
    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.1rem;
    color: var(--accent);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.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: #6a90c8;
    transform: scale(1.16);
}

#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; }

.repo-section {
    margin: 2rem 0;
}

.section-count {
    font-family: 'Mojangles', 'Segoe UI', Arial, sans-serif;
    font-size: 1rem;
    font-weight: normal;
    color: var(--accent);
    opacity: 0.65;
    margin-left: 0.4rem;
    letter-spacing: 0;
}

.repo-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.repo-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    transition: border 0.2s, box-shadow 0.2s;
    position: relative;
    min-height: 180px;
    word-break: break-word;
}

.repo-card:hover {
    border: 1px solid var(--accent);
    box-shadow: 0 6px 28px rgba(30,60,110,0.18);
    z-index: 2;
}

.repo-title {
    font-family: 'Mojangles', 'Segoe UI', Arial, sans-serif;
    font-size: 1.18rem;
    color: var(--fg);
    margin-bottom: 0.55rem;
    font-weight: bold;
    letter-spacing: 0.3px;
}

.repo-desc {
    flex: 1;
    color: var(--fg);
    font-size: 0.98rem;
    margin-bottom: 0.85rem;
    overflow-wrap: anywhere;
    opacity: 0.75;
}

.repo-meta {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 0.6rem;
    opacity: 0.85;
}

.repo-link, .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    font-family: 'Mojangles', 'Segoe UI', Arial, sans-serif;
    transition: background 0.18s, color 0.18s, transform 0.12s;
    box-sizing: border-box;
    white-space: nowrap;
}

.repo-link {
    margin-top: 0.5rem;
    padding: 0.55rem 1.1rem;
    background: var(--button-gradient);
    color: #cdd8f0;
    border: none;
    border-radius: 6px;
    font-size: 0.88rem;
    box-shadow: 0 2px 8px rgba(20,39,74,0.28);
}

.repo-link:hover {
    background: var(--button-hover);
    color: #e0e8f8;
    transform: translateY(-2px);
}

.action-btn {
    margin-top: 0.5rem;
    padding: 0.7em 1.8em;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    background: var(--button-gradient);
    color: #cdd8f0;
    box-shadow: 0 2px 12px rgba(20,39,74,0.3);
    cursor: pointer;
}

.action-btn:hover {
    background: var(--button-hover);
    color: #e0e8f8;
    transform: scale(1.04);
}

.mobile-controls .repo-link {
    min-width: 60px;
    height: 50px;
}

footer {
    text-align: center;
    font-size: 0.95rem;
    margin-top: 2.5rem;
    padding-bottom: 1.5rem;
    color: var(--accent);
    opacity: 0.8;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    opacity: 0.7;
}

footer a:hover {
    opacity: 1;
}

#music-player {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    box-shadow: var(--shadow);
    transition: background 0.3s, border 0.2s;
}

#music-toggle {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s, transform 0.15s;
}

#music-toggle:focus { outline: none; }

#music-toggle:hover {
    color: #6a90c8;
    transform: scale(1.15);
}

.music-label {
    font-size: 0.78rem;
    color: var(--fg);
    font-family: 'Mojangles', 'Segoe UI', Arial, sans-serif;
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 900px) {
    .main-container { padding: 0.9rem; }
    .repo-list { grid-template-columns: 1fr; }
    .header-title h1 { font-size: 2.2rem; }
}

@media (max-width: 600px) {
    .header-title h1 { font-size: 2.0rem; }
}
