/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-image: url('/img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-color 0.3s ease;
    margin-bottom: 0;
}

body.dark-mode {
    background-color: #121212;
    color: #f5f5f5;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin-bottom: 0;
}

/* Header */
header {
    position: sticky;
    top: 0;
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.dark-mode header {
    background-color: #1e1e1e;
    border-bottom: 1px solid #333;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.dark-mode .logo {
    color: #f5f5f5;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s ease;
}

.dark-mode nav a {
    color: #f5f5f5;
}

nav a:hover {
    color: #0088ff;
}

/* Content */
.content-wrapper {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .content-wrapper {
        flex-direction: row;
        gap: 25px;
    }
}

/* Welcome Section */
.welcome-section {
    flex: 1;
    background: transparent;
    border-radius: 8px;
    padding: 25px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.welcome-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.break-text {
    display: block;
}

.welcome-text {
    color: #fff;
    line-height: 1.6;
}

.social-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-button img {
    width: 25px;
    height: 25px;
    transition: transform 0.3s ease;
}

.social-button img:hover {
    transform: scale(1.1);
}

#title-radio {
    color: #0088ff;
}

/* Player Section */
.player-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 0;
}

/* Player Container */
.player-container {
    background-color: #333;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
    padding: 10px;
}

.player-container iframe {
    margin-bottom: 0;
}

.dark-mode .player-container {
    background-color: #1e1e1e;
}

/* Next Song Box */
#nextSong {
    background-color: #1e1e1e;
    color: #fff;
    padding: 8px;
    border-radius: 5px;
    margin-top: 5px;
    text-align: center;
    font-size: 14px;
}

.dark-mode #nextSong {
    background-color: #292929;
    color: #ddd;
}

/* Redirect button */
.navigate-button {
    display: inline-block;
    background-color: #007bff; /* 파란색 */
    color: white;
    padding: 10px 20px;
    margin-top: 5px;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    font-size: 16px;
    width: 100%;
}

.navigate-button:hover {
    background-color: #0056b3; /* 호버 시 더 진한 파란색 */
}

/* Footer */
footer {
    background-color: #f5f5f5;
    color: #1e1e1e;
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    margin-top: 15px;
    padding: 15px 0;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    bottom: 0;
}

.dark-mode footer {
    background-color: #1e1e1e;
    color: #f5f5f5;
}

.footer-content p {
    margin: 0;
    font-size: 14px;
}

.footnav a {
    color: #1e1e1e;
    font-size: 14px;
    transition: color 0.2s ease;
}

.dark-mode .footnav a {
    color: #e0e0e0;
}

.footnav a:hover {
    color: #0088ff;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0088ff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.dark-mode .theme-toggle {
    background-color: rgba(200, 200, 200, 0.8);
}

/* Mobile View */
@media (max-width: 767px) {
    body {
        background-image: none;
    }

    .bg-image-container {
        display: none;
    }

    .welcome-section {
        background-image: url('/img/bg.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .content-wrapper {
        gap: 40px;
        margin-bottom: 40px;
    }
}

/* dropdown menu */
.station-selector {
    background-color: #333;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 12px;
    width: 100%;
    margin: 0 auto 5px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

/* label style */
.station-selector label {
    white-space: nowrap;
}

/* dropdown style */
#stationSelect {
    padding: 5px 9px;
    font-size: 16px;
    background-color: #222;
    color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#stationSelect:hover {
    background-color: #444;
}

#stationSelect:focus {
    outline: none;
    border-color: #0088ff;
}

/* dropdown style dark mode */
.dark-mode .station-selector {
    background-color: #1e1e1e;
}

.dark-mode #stationSelect {
    background-color: #2a2a2a;
    border-color: #e0e0e0;
}

.dark-mode #stationSelect:hover {
    background-color: #444;
}

.dark-mode #stationSelect:focus {
    outline: none;
    border-color: #0088ff;
}

.history-title {
    padding: 8px 12px;
    margin: 0 auto 5px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}