@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap');
:root{
  --sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  --serif:"Fraunces",Georgia,"Times New Roman",serif;
  --accent:#b9762a;
  --accent-strong:#9c621d;
  --accent-soft:rgba(185,118,42,0.14);
}
.dark-mode{--accent:#e0a94e;--accent-strong:#eab866;--accent-soft:rgba(224,169,78,0.16);}
h1,h2,h3,.card h2,.game-section h2{font-family:var(--serif);font-weight:600;letter-spacing:-0.01em;}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;}

body {
    font-family: var(--sans);
    background-color: #f7f7f7;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    text-align: center;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    transition: background-color 0.3s, color 0.3s;
}

.profile-pic {
    width: 275px;
    height: 275px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.profile-pic:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.14);
}

h1 {
    font-size: 36px;
    color: #333;
    margin: 1px 0;
    font-weight: bold;
}

p {
    font-size: 17px;
    color: #666;
    margin-bottom: 20px;
}

.social-icons {
    margin-bottom: 30px;
}

.social-icons img {
    width: 22px;
    height: 22px;
    margin: 0 8px;
    cursor: pointer;
    transition: filter 0.3s;
}

.social-icons img:active {
    filter: hue-rotate(180deg) saturate(300%) brightness(0.7);
}

.top-right-container {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
}

.search-box {
    position: relative;
    display: none;
    align-items: center;
    transition: width 0.3s ease;
}

/* Site-wide search results dropdown */
.search-results {
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e4e4e2;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.14);
    overflow: hidden auto;
    max-height: 340px;
    z-index: 60;
    display: none;
    text-align: left;
}
.search-results.show { display: block; }
.sr-item {
    display: block;
    padding: 11px 15px;
    border-bottom: 1px solid #f1f1ef;
    text-decoration: none;
    cursor: pointer;
}
.sr-item:last-child { border-bottom: none; }
.sr-item:hover, .sr-item:focus { background: #faf6f0; }
.sr-label {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent);
}
.sr-snip {
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.45;
    color: #555;
    margin-top: 4px;
}
.sr-snip mark { background: rgba(185,118,42,0.22); color: inherit; padding: 0 1px; border-radius: 2px; }
.sr-empty {
    padding: 13px 15px;
    font-family: var(--sans);
    font-size: 13px;
    color: #8a8a90;
}
.dark-mode .search-results { background: #1c1c1e; border-color: #2e2e33; box-shadow: 0 14px 34px rgba(0,0,0,0.5); }
.dark-mode .sr-item { border-color: rgba(255,255,255,0.06); }
.dark-mode .sr-item:hover, .dark-mode .sr-item:focus { background: rgba(255,255,255,0.05); }
.dark-mode .sr-snip { color: #b0b0b8; }
.dark-mode .sr-snip mark { background: rgba(224,169,78,0.28); }

.search-box input[type="text"] {
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 200px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.search-box button {
    padding: 8px 10px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-left: 5px;
    background-color: #f7f7f7;
}

.search-icon {
    cursor: pointer;
    margin-right: 8px;
    width: 17px;
    height: 17px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.search-icon:hover {
    transform: scale(1.2);
    filter: brightness(0.8);
}

.links {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.links a {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    margin: 0 8px;
    padding: 8px 12px;
    border-radius: 5px;
    position: relative;
    transition: color 0.3s;
    font-weight: bold;
}

.links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--accent);
    transition: width 0.3s ease;
}

.links a:hover::after {
    width: 100%;
    left: 0;
}

.mode-toggle {
    width: 30px;
    height: 30px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    transition: transform 0.3s ease;
    z-index: 200;
}

.mode-toggle:hover {
    transform: scale(1.1);
}

.mode-toggle svg {
    width: 24px;
    height: 24px;
}

.dark-mode .mode-toggle .sun {
    display: block;
}

.dark-mode .mode-toggle .moon {
    display: none;
}

.mode-toggle .sun {
    display: none;
}

.mode-toggle .moon {
    display: block;
}

.dark-mode {
    background-color: #18181b;
    color: #f7f7f7;
}

.dark-mode .container {
    background-color: rgba(255,255,255,0.05);
    color: #f7f7f7;
}

.dark-mode h1 {
    color: white;
}

.dark-mode .links a {
    color: #f7f7f7;
}

.dark-mode .social-icons img {
    filter: invert(100%);
}

.highlight {
    background-color: yellow;
} 