:root {
  --primary-color: #00529B;
  --secondary-color: #6c757d;
  --accent-color: #FFD700;
  --background-color-light: #f4f7f9;
  --text-color-light: #121212;
  --background-color-dark: #121212;
  --text-color-dark: #e0e0e0;
  --header-bg-light: #ffffff;
  --header-bg-dark: #1e1e1e;
  --card-bg-light: #ffffff;
  --card-bg-dark: #1e1e1e;
  --border-color-light: #e0e0e0;
  --border-color-dark: #333333;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --font-family-base: 'Noto Sans KR', sans-serif;
  --font-weight-normal: 400;
  --font-weight-bold: 700;
  --font-weight-black: 900;
}

[data-theme="dark"] {
  --primary-color: #66b2ff;
  --secondary-color: #adb5bd;
  --accent-color: #FFC400;
  --background-color-light: var(--background-color-dark);
  --text-color-light: var(--text-color-dark);
  --header-bg-light: var(--header-bg-dark);
  --card-bg-light: var(--card-bg-dark);
  --border-color-light: var(--border-color-dark);
}

body {
  font-family: var(--font-family-base);
  margin: 0;
  background-color: var(--background-color-light);
  color: var(--text-color-light);
  transition: background-color 0.3s ease, color 0.3s ease;
}

header {
  background-color: var(--header-bg-light);
  padding: 15px 40px;
  border-bottom: 1px solid var(--border-color-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px var(--shadow-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

#logo {
  height: 55px;
  transition: transform 0.3s ease-in-out;
}
#logo:hover {
  transform: rotate(-5deg) scale(1.1);
}

nav ul, nav li {
  margin: 0; padding: 0; list-style: none; display: inline-block;
}
nav li { margin-left: 35px; }
nav a {
  text-decoration: none;
  color: var(--text-color-light);
  font-weight: var(--font-weight-bold);
  font-size: 17px;
  position: relative;
  transition: color 0.3s ease;
  padding-bottom: 5px;
}
nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 2px;
}
nav a:hover { color: var(--primary-color); }
nav a:hover::after { width: 100%; left: 0; }

#controls button, #controls select {
  cursor: pointer;
  border: 1px solid var(--border-color-light);
  background-color: transparent;
  color: var(--text-color-light);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: var(--font-weight-bold);
  transition: all 0.3s ease;
  margin-left: 10px;
}
#controls button:hover, #controls select:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

#hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1508098682722-e99c43a406b2?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 160px 20px;
}
#hero h1 {
  font-size: 4.5rem;
  font-weight: var(--font-weight-black);
  margin: 0 0 20px;
  text-shadow: 0 5px 15px rgba(0,0,0,0.4);
  animation: fadeInDown 1s ease-in-out;
}
#hero p {
  font-size: 1.6rem;
  animation: fadeInUp 1s ease-in-out;
}

section {
    padding: 80px 40px;
    max-width: 1300px;
    margin: 0 auto;
}
section h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: var(--font-weight-black);
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
}
section h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    border-radius: 2px;
}

.filter-btn {
  cursor: pointer;
  border: 1px solid var(--border-color-light);
  background: transparent;
  color: var(--secondary-color);
  padding: 12px 25px;
  border-radius: 25px;
  margin: 0 8px;
  font-weight: var(--font-weight-bold);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}
.filter-btn.active, .filter-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.highlight-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.highlight-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.highlight-card .like-btn, .highlight-card .share-btn {
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    position: absolute;
    top: 15px;
    cursor: pointer;
    display: flex; justify-content: center; align-items: center;
    transition: background-color 0.3s ease;
}
.highlight-card .like-btn { right: 60px; }
.highlight-card .share-btn { right: 15px; }
.highlight-card .like-btn:hover, .highlight-card .share-btn:hover {
    background: var(--accent-color);
}

#profile-card, #team-profile-card {
    background-color: var(--card-bg-light);
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-color);
    padding: 40px;
    max-width: 900px;
    margin: 40px auto;
}

.profile-photo {
    border: 6px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.player-info h1 { color: var(--primary-color); }

.team-profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}
.team-emblem-large {
    width: 120px;
    height: 120px;
    margin-right: 30px;
}
.team-info h1 {
    font-size: 3rem;
    font-weight: var(--font-weight-black);
    margin: 0;
    color: var(--primary-color);
}
.team-squad-list h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}
.team-squad-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.team-squad-list li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color-light);
    padding: 10px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}
.team-squad-list li a:hover {
    background-color: var(--background-color-light);
}
.team-squad-list img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

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