@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap');

:root {
    --bg-color: #0d1117;
    --text-primary: #e6edf3;
    --text-secondary: #7d8590;
    --accent-gradient: linear-gradient(135deg, #a4508b 0%, #5f0a87 100%);
    --card-bg: rgba(22, 27, 34, 0.6);
    --card-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(13, 17, 23, 0.7);
    --font-family: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 800;
}

h1 {
    font-size: 3rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header & Nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

nav a {
    margin-left: 2rem;
    font-weight: 500;
    color: var(--text-secondary);
}

nav a:hover, nav a.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* Main Content */
main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

section {
    margin-bottom: 5rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 0;
    animation: fadeInDown 0.8s ease-out forwards;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(95, 10, 135, 0.4);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 10, 135, 0.6);
}

/* Grids & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-released { background: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.status-beta { background: rgba(241, 196, 15, 0.2); color: #f1c40f; }
.status-in { background: rgba(52, 152, 219, 0.2); color: #3498db; }

/* Lists (Devlog) */
.post-list {
    list-style: none;
}

.post-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition);
}

.post-list li:hover {
    background: rgba(255,255,255,0.02);
}

.post-list a {
    font-size: 1.25rem;
    font-weight: 600;
}

.post-list time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Forms */
form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--card-border);
}

label {
    display: block;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    margin-top: 0.5rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-family);
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: #a4508b;
    box-shadow: 0 0 0 2px rgba(164, 80, 139, 0.2);
}

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

button[type="submit"]:hover {
    box-shadow: 0 4px 15px rgba(95, 10, 135, 0.4);
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid var(--card-border);
    color: var(--text-secondary);
    margin-top: auto;
}

.site-footer a {
    color: #a4508b;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Alerts */
.error {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.flash {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
    border: 1px solid rgba(46, 204, 113, 0.3);
}


.button-small {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    font-weight: normal;
    font-family: inherit;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    background-image: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.15s;
}

.button-small:hover {
    background: rgba(255, 255, 255, 0.18);
}

.button-danger {
    background: rgba(220, 60, 60, 0.25);
    border-color: rgba(220, 60, 60, 0.5);
}

.button-danger:hover {
    background: rgba(220, 60, 60, 0.4);
}

/* Action buttons sit side by side in the table cell */
.actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

.actions form {
    margin: 0;
    padding: 0;
}