@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;700&display=swap');

:root {
    --bg-color: #E0F7FA;
    --text-color: #3E2723;
    --header-bg: rgba(255, 255, 255, 0.8);
    --title-color: #2E7D32;
    --link-color: #3E2723;
    --link-hover: #E65100;
    --section-bg-1: #FFF3E0;
    --section-bg-2: #E8F5E9;
    --card-bg: #fff;
    --card-shadow: rgba(0,0,0,0.1);
    --footer-bg: #A1887F;
    --intro-bg: url('images/ghibli-day.jpg');
    --saju-bg: url('images/ghibli-night.jpg');
}

[data-theme='dark'] {
    --bg-color: #011627;
    --text-color: #FDFFFC;
    --header-bg: rgba(2, 29, 48, 0.8);
    --title-color: #82D37A;
    --link-color: #FDFFFC;
    --link-hover: #FF9F1C;
    --section-bg-1: #022038;
    --section-bg-2: #022640;
    --card-bg: #023859;
    --card-shadow: rgba(255,255,255,0.05);
    --footer-bg: #011627;
    --intro-bg: url('images/ghibli-night.jpg');
    --saju-bg: url('images/ghibli-day.jpg');
}

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

h2 {
    font-size: 2.5rem;
    color: var(--title-color);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0 2rem;
}

nav {
    display: flex;
    justify-content: center;
    padding: 1rem;
}

nav a {
    color: var(--link-color);
    text-decoration: none;
    margin: 0 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--link-hover);
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}


main {
    padding-top: 80px;
}

section {
    padding: 4rem 2rem;
    border-bottom: 1px solid var(--card-shadow);
}

#intro {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--intro-bg) no-repeat center center/cover;
    color: #fff;
    transition: background 0.5s ease-in-out;
}

#intro h1 {
    font-size: 4.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

#filmography {
    background-color: var(--section-bg-1);
}

.filmography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

film-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 4px 12px var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

film-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px var(--card-shadow);
}

#activities, #schedule, #disqus-container {
    background-color: var(--section-bg-2);
}

#disqus-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.activity-card, .schedule-list li {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 12px var(--card-shadow);
    margin-bottom: 1rem;
}

.activities-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}


#saju {
    padding: 6rem 2rem;
    text-align: center;
    background: var(--saju-bg) no-repeat center center/cover;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.5s ease-in-out;
}

#saju::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

#saju:hover {
    transform: scale(1.03);
}

#saju a {
    text-decoration: none;
    color: #fff;
    position: relative;
    z-index: 2;
}

#saju h2 {
    font-size: 3rem;
    color: #FFECB3;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    margin: 0;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--footer-bg);
    color: #fff;
}

@media (max-width: 768px) {
    header { flex-direction: column; padding: 1rem; }
    nav a { font-size: 1rem; margin: 0 0.5rem; }
    #intro h1 { font-size: 3rem; }
    #saju h2 { font-size: 2.5rem; }
    .activities-container { grid-template-columns: 1fr; }
}
