@import 'fonts.css';

:root {
    --bg-primary: #1a0f12;
    --bg-surface: #241419;
    --bg-card: #2e1920;
    --bg-card-hover: #42222d;
    --text-main: #fcf7f8;
    --text-muted: #d4bec4;
    --accent: #c9425d;
    --accent-hover: #fa5c7e;
    --border: #472631;
    --header-height: 80px;
    --footer-height: 40px;
}

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

body {
    font-family: 'Kanit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
}

a {
    color: inherit;
    text-decoration: none;
}

h1 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    text-align: center;
}

h1::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -6px;
    width: 100px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    position: relative;
    display: inline-block;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -6px;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
    padding: 0 2rem;
    z-index: 1000;
}

.site-header .brand {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.main-content {
    flex: 1;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
    position: relative;
    flex: 1 1 320px;
    max-width: 400px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.card-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex: 1;
}

.card-link {
    align-self: center;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.card-link::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.card:hover,
.card.is-ambient-hover {
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    background-color: var(--bg-card-hover);
}

.card:hover .card-link,
.card.is-ambient-hover .card-link {
    color: var(--accent-hover);
}

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--footer-height);
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    z-index: 1000;
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .site-header, .main-content, .site-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
}