:root {
    --primary-color: #ff4757;
    --secondary-color: #2f3542;
    --bg-color: #f1f2f6;
    --text-color: #2f3542;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.lang-select {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.lang-select option {
    background-color: var(--secondary-color);
    color: white;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    color: var(--primary-color);
}

main {
    min-height: calc(100vh - 160px);
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

.card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.hero .card {
    border-left: 5px solid var(--primary-color);
}

.songs ul {
    list-style: none;
    margin-top: 10px;
}

.songs li {
    background: #f8f9fa;
    margin: 5px 0;
    padding: 10px;
    border-radius: 8px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
}

.link-card {
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
}

.link-card:hover {
    transform: translateY(-5px);
}

.link-card a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
}

.table-container {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
}

tr:hover {
    background-color: #f8f9fa;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #ff6b81;
}

.btn.secondary {
    background-color: var(--secondary-color);
}

.actions {
    margin-bottom: 2rem;
}

footer {
    background-color: #fff;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #ddd;
    margin-top: 3rem;
}

.error-container {
    text-align: center;
    padding: 4rem 0;
}

.error-msg {
    color: #e74c3c;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }

    header {
        margin-bottom: 1rem;
    }

    h1, h2, h3 {
        margin-bottom: 0.75rem;
    }

    .card, .table-container, .grid, .actions {
        margin-bottom: 1rem;
    }

    .card {
        padding: 1rem;
    }
    
    th, td {
        padding: 10px;
        font-size: 0.9rem;
    }
}
