/* main-screen.css */
/* 메인화면 전용 스타일 */

/* 메인 배너 */
.main-banner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
}

/* 방문자 통계 */
.visitor-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    justify-content: center;
}

.stat-box {
    background-color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.stat-box span:last-child {
    font-size: 1.5em;
    font-weight: bold;
    color: #007bff;
}

/* 검색 링크 스타일링 */
.search-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 2rem 0;
    padding: 0 1rem;
    flex-wrap: wrap;
}

.search-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 140px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.search-link i {
    font-size: 1.2em;
}

.google-link {
    background-color: #fff;
    color: #4285F4;
    border: 2px solid #4285F4;
}

.google-link:hover {
    background-color: #4285F4;
    color: #fff;
    transform: translateY(-2px);
}

.naver-link {
    background-color: #fff;
    color: #03C75A;
    border: 2px solid #03C75A;
}

.naver-link:hover {
    background-color: #03C75A;
    color: #fff;
    transform: translateY(-2px);
}

.daum-link {
    background-color: #fff;
    color: #FF5A5A;
    border: 2px solid #FF5A5A;
}

.daum-link:hover {
    background-color: #FF5A5A;
    color: #fff;
    transform: translateY(-2px);
}

/* 버전 정보 */
.version-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.version-info h3 {
    color: #007bff;
    margin-bottom: 15px;
}

.version-info p {
    margin-bottom: 10px;
    color: #666;
}

/* 반응형 스타일 */
@media screen and (max-width: 768px) {
    .search-links {
        gap: 10px;
    }

    .search-link {
        padding: 8px 16px;
        min-width: 120px;
        font-size: 0.9em;
    }
}

@media screen and (max-width: 480px) {
    .search-links {
        flex-direction: column;
        align-items: center;
    }

    .search-link {
        width: 80%;
        max-width: 200px;
    }
}

/* 플로팅 트위터 버튼 */
.floating-twitter {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: #000000;
  color: white;
  padding: 12px;
  border-radius: 50%;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  transition: all 0.3s ease;
}

.floating-twitter:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  background-color: #333333;
}

.floating-twitter i {
  font-size: 18px;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .floating-twitter {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
  
  .floating-twitter i {
    font-size: 16px;
  }
}

/* 다크모드 대응 */
@media (prefers-color-scheme: dark) {
  .floating-twitter {
    background-color: #000000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }
  
  .floating-twitter:hover {
    background-color: #333333;
  }
}

/* 오디오 컨트롤 스타일 수정 */
#audioElement {
  width: 100%;
  height: 36px;
}

/* 기본 오디오 컨트롤에서 볼륨 부분 숨기기 */
#audioElement::-webkit-media-controls-volume-slider,
#audioElement::-webkit-media-controls-mute-button,
#audioElement::-webkit-media-controls-download-button,
#audioElement::-webkit-media-controls-overflow-button,
#audioElement::-webkit-media-controls-playback-button,
#audioElement::-webkit-media-controls-timeline-container,
#audioElement::-webkit-media-controls-current-time-display,
#audioElement::-webkit-media-controls-time-remaining-display,
#audioElement::-webkit-media-controls-timeline,
#audioElement::-webkit-media-controls-volume-control-container,
#audioElement::-webkit-media-controls-volume-control-container *,
#audioElement::-webkit-media-controls-seek-back-button,
#audioElement::-webkit-media-controls-seek-forward-button,
#audioElement::-webkit-media-controls-fullscreen-button,
#audioElement::-webkit-media-controls-rewind-button,
#audioElement::-webkit-media-controls-return-to-realtime-button,
#audioElement::-webkit-media-controls-toggle-closed-captions-button {
  display: none;
}

#audioElement::-webkit-media-controls-panel {
  display: none;
}

#audioElement::-webkit-media-controls {
  display: none;
}

.volume-slider {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  margin-top: -5px;  /* 간격 조정 */
}

.volume-slider i {
  color: #4a90e2;  /* 아이콘 색상을 오디오 컨트롤과 맞춤 */
  font-size: 14px;
}

.volume-slider input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  outline: none;
}

.volume-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: #4a90e2;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 다크모드 대응 */
@media (prefers-color-scheme: dark) {
  .volume-slider i {
    color: #4a90e2;  /* 다크모드에서도 동일한 색상 유지 */
  }

  .volume-slider input[type="range"] {
    background: #404040;
  }

  .volume-slider input[type="range"]::-webkit-slider-thumb {
    background: #4a90e2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  }
}

/* 커스텀 오디오 컨트롤 */
.custom-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.control-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #4a90e2;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.control-btn:hover {
  background: #357abd;
  transform: scale(1.05);
}

.control-btn i {
  font-size: 14px;
}

/* 다크모드 대응 */
@media (prefers-color-scheme: dark) {
  .control-btn {
    background: #4a90e2;
  }
  
  .control-btn:hover {
    background: #357abd;
  }
}

/* 날씨 정보 스타일링 */
.weather-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 15px 0;
}

.weather-info {
    margin-top: 15px;
}

.weather-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.weather-card {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.card-label {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.card-value {
    color: #2b7de9;
    font-weight: bold;
    font-size: 1.4em;
}

.card-value.warning {
    color: #e94c2b;
}

.card-value.good {
    color: #2ba94c;
}

.weather-comment-box {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-top: 20px;
    border: 1px solid #e9ecef;
    line-height: 1.8;
}

.region-name {
    color: #1a73e8;
    font-weight: bold;
    font-size: 1.15em;
    text-align: center;
    margin-bottom: 20px;
}

/* 다크모드 대응 */
@media (prefers-color-scheme: dark) {
    .weather-section {
        background-color: #2d2d2d;
    }
    
    .weather-card {
        background-color: #222;
    }
    
    .card-label {
        color: #aaa;
    }
    
    .card-value {
        color: #4a9eff;
    }
    
    .card-value.warning {
        color: #ff6b4a;
    }
    
    .card-value.good {
        color: #4adb7d;
    }
    
    .weather-comment-box {
        background-color: #363636;
        border-color: #444;
    }
    
    .region-name {
        color: #4a9eff;
    }
}

@media (max-width: 600px) {
    .weather-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.weather-status-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.current-weather {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0,0,0,0.03);
    padding: 12px 20px;
    border-radius: 10px;
    width: 100%;
}

.weather-icon {
    width: 48px;
    height: 48px;
}

.weather-desc {
    font-weight: 500;
    font-size: 1.1em;
    color: #444;
}

.weather-advice {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.weather-advice p {
    margin: 0;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.weather-advice p:last-child {
    border-bottom: none;
}

/* 다크모드 대응 */
@media (prefers-color-scheme: dark) {
    .current-weather {
        background: rgba(255,255,255,0.05);
    }
    
    .weather-desc {
        color: #ccc;
    }

    .weather-advice p {
        border-bottom-color: rgba(255,255,255,0.1);
    }
}

/* 모바일 대응 */
@media (max-width: 600px) {
    .current-weather {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
}
