/* musicker.art/assets/css/style.css */
/* --- Base Styles & Variables --- */
:root {
    --bg-main: #FDFCFB;
    --bg-player: #FFFFFF;
    --text-primary: #3D352E;
    --text-secondary: #8A7E72;
    --accent-primary: #587D71;
    --accent-secondary: #A49E8D;
    --border-color: #EAE6E1;
    --shadow-color: rgba(61, 53, 46, 0.08);

    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'Shippori Mincho', serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Portal & Layout --- */
.portal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.portal-header {
    text-align: center;
    margin-bottom: 60px;
}

.portal-header h1 {
    font-family: var(--font-serif);
    font-size: 3em;
    font-weight: 500;
    margin: 0 0 10px;
    color: var(--accent-primary);
}

.portal-header .subtitle {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin: 0 0 40px;
}

.portal-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--accent-primary);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.nav-button:hover {
    background-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 125, 113, 0.2);
}

/* --- Music Player --- */
.player-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.music-player {
    background-color: var(--bg-player);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px var(--shadow-color);
    text-align: center;
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
}

.artwork-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    margin-bottom: 25px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 20px var(--shadow-color);
}

#artwork {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#creator-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

.track-info h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 700;
    min-height: 1.2em;
}

.track-info p {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
    min-height: 1.2em;
}

.track-info .meta-info {
    font-size: 14px;
    min-height: 1.2em;
}


/* --- 再生バーとコントロールボタン --- */
.time-container {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: var(--text-secondary);
    margin: 20px 0;
}
.progress-bar-wrapper {
    flex-grow: 1;
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    cursor: pointer;
}
.progress-bar {
    height: 100%;
    position: relative;
}
.progress {
    width: 0;
    height: 100%;
    background-color: var(--accent-primary);
    border-radius: 3px;
}

.controls {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    margin: 25px 0;
}
.control-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.control-btn:hover {
    color: var(--text-primary);
}
.play-pause-btn {
    background-color: var(--accent-secondary);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 5px 15px rgba(164, 158, 141, 0.4);
    transition: background-color 0.2s;
}
.play-pause-btn:hover {
    background-color: #938f7e;
    color: white;
}
.play-pause-btn .play-icon {
    margin-left: 3px; 
}
.play-pause-btn .pause-icon {
    margin-left: 0;
}
#next-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}


.donation {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.donate-action-btn {
    background-color: var(--accent-primary);
    color: white;
    border: none;
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 15px rgba(88, 125, 113, 0.2);
}

.donate-action-btn:hover {
    background-color: #4a6b60;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 125, 113, 0.3);
}

/* --- Mood Filter --- */
.mood-filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 500px;
}
.mood-tag {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.mood-tag.active {
    background-color: var(--accent-secondary);
    color: var(--bg-player);
    border-color: var(--accent-secondary);
    font-weight: 500;
}

/* --- Footer --- */
.main-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}
.main-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    transition: color 0.2s;
}
.main-footer a:hover {
    color: var(--text-primary);
}


/* --- Donation Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(61, 53, 46, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.modal-content {
    background: var(--bg-player);
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 1001;
    animation: scaleIn 0.3s 0.1s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--text-primary);
}

.modal-content .mission-text {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 15px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-content .donation-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-content .donate-btn {
    background-color: #F7F5F2;
    border: 1px solid var(--border-color);
    color: var(--accent-primary);
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-content .donate-btn:hover {
    background-color: var(--accent-secondary);
    color: white;
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
}

.donation-impact {
    background-color: #F7F5F2;
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 20px;
}

.donation-impact p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* --- Message Banners (Success/Error) --- */
.message {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
}
.message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}


/* Keyframe animations for modal */
@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes scaleIn {
    to { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 1;
    }
}

