@charset "utf-8";

/* 다크모드 CSS 변수 */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f0f6fe;
  --bg-tertiary: #f7f7f7;
  --text-primary: #000000;
  --text-secondary: #383838;
  --text-muted: #666666;
  --border-color: #e7e7e7;
  --border-light: #e9e9e9;
  --accent-color: #1983df;
  --accent-hover: #0f4986;
  --point-color: #ffbf44;
  --success-color: #13911b;
  --danger-color: #ff3061;
  --warning-color: #e49c12;
}

[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-tertiary: #3a3a3a;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #a0a0a0;
  --border-color: #404040;
  --border-light: #4a4a4a;
  --accent-color: #4a9eff;
  --accent-hover: #6bb6ff;
  --point-color: #ffd700;
  --success-color: #4caf50;
  --danger-color: #f44336;
  --warning-color: #ff9800;
}

.widget-index .at-main,
.widget-index .at-side { padding-bottom:0px; }
.widget-index .div-title-underbar { margin-bottom:15px; }
.widget-index .div-title-underbar span { padding-bottom:4px; }
.widget-index .div-title-underbar span b { font-weight:500; }
.widget-index .widget-img img { display:block; max-width:100%; /* 배너 이미지 */ }
.widget-box { margin-bottom:8px; }
.widget-normal-box {
	border: 1px solid var(--border-color);
	margin-bottom: 8px;
	padding :10px 15px;
	background-color: var(--bg-primary);
	color: var(--text-primary);
}
.widget-banner-box { margin-bottom:5px; }
.new-box { padding:5px 20px; }	
.widget-login { 
	padding:15px; 
	border: 1px solid var(--border-color); 
	background-color: var(--bg-primary);
	color: var(--text-primary);
}
.div-title-head {
	width: 100%;
	height: auto;
	position: relative;
	padding: 12px 20px;
	display: -webkit-box;
	display: -webkit-flex;
	display: flex;
	-webkit-box-align: center;
	-moz-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: justify;
	-moz-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
	background-color: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
	color: var(--text-primary);

}
.widget-rank-box {
	padding-top: 4px;
	margin-bottom: 30px;
	border-left : 1px solid var(--border-color);
	border-right : 1px solid var(--border-color);
}	

.tab-container {
	display: flex;
	text-align: center;
	flex-direction: row;
	align-items: center;
	margin-top: 1px;
	margin-bottom: 15px;
}

.tab-button {
	width: 20%;
	height: 30px;
	font-size: 12px;
	border: none;
	font-family: 'GmarketSansMedium';
	background-color: var(--point-color);
	cursor: pointer;
	display : inline-block;
	transition: background-color 0.3s ease;
}

.tab-button.active {
	background-color: var(--accent-color);
}

.tab-content {
	display: none;
	width: 100%;
}

.tab-content.active {
	display: block;
}	
.latest_board {
	width: 100%;
	height: 190px;
	position: relative;
	margin-bottom: 20px;
	display: -webkit-box;
	display: -webkit-flex;
	display: -moz-box;
	display: -ms-flexbox;
	display: flex;
	gap: 20px;
}
.latest_board .notice_latest {
	width: 450px;
}
.latest_board .latest_item {
	border: 1px solid var(--border-color);
	height: auto;
	position: relative;
}
.latest_board .latest_box {
	height: 47px;

}
.latest_board .latest_tit {
	width: 100%;
	height: 47px;
	position: relative;
	padding: 0px 20px;
	display: flex;
	-webkit-box-align: center;
	-moz-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: justify;
	-webkit-justify-content: space-between;
	-moz-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
	background-color: var(--bg-secondary);
	border-bottom: 1px solid var(--border-color);
	color: var(--text-primary);
}
.latest_board .latest_tit > h3 {
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.5px;
	margin-top: 0;
	margin-bottom: 0;
}
.latest_board .latest_tit .latest_more {
	width: auto;
	height: auto;
	position: relative;
	left: 10px;
}
.latest_board .latest_tit .latest_more > a {
	display: block;
	width: auto;
	height: auto;
	font-weight: 400;
	color: var(--accent-color);
	background-color: var(--bg-secondary);
	padding: 0px 10px;
	border-radius: 5rem;
	border: 1px solid var(--accent-color);
}

.latest_board .latest_cont { display: none; padding:13px 20px; }
.latest_board .latest_cont.active { display:block; }

.latest_board .tab_latest {
	width: -webkit-calc((100% - 20px) - 450px);
	width: -moz-calc((100% - 20px) - 450px);
	width: calc((100% - 20px) - 450px);
}

.latest_tab {  
	display: flex;
	text-align: center;
	flex-direction: row;
	align-items: center;
	border-bottom: 1px solid var(--border-color);
}

.tab_item {
	width: 25%;
	height: 47px;
	font-size: 14px;
	border: none;
	font-weight: 600;
	background-color: var(--bg-secondary);
	color: var(--text-primary);
	cursor: pointer;
	display: inline-block;
	transition: background-color 0.3s ease;
}
.tab_item.active { 
	color: var(--text-primary); 
	border-top: 1px solid var(--accent-color); 
	background-color: var(--bg-primary);
}

.tab_item_lineup {
	width: 20%;
	height: 47px;
	line-height: 47px;
	font-size: 14px;
	border: none;
	font-weight: 600;
	background-color: var(--bg-secondary);
	color: var(--text-primary);
	cursor: pointer;
	display: inline-block;
	transition: all 0.3s ease;
}

.tab_item_lineup.active { 
	color: var(--text-primary); 
	border: 1px solid var(--accent-color); 
	background-color: var(--bg-primary);
}

.tab_item_lineup:hover {
	background-color: var(--accent-color);
	color: #fff;
}

/* Radius 클래스들 */
.radius-15 {
	border-radius: 15px;
}

.radius-left-half-15 {
	border-top-left-radius: 15px;
	border-bottom-left-radius: 15px;
}

.radius-right-half-15 {
	border-top-right-radius: 15px;
	border-bottom-right-radius: 15px;
}

/* 스포츠 경기 목록 스타일 */
.sports-list-container {
    background-color: #474d51;
    color: #ffffff;
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.sports-list-header {
    display: flex;
    background-color: #2196F3;
    padding: 10px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    font-size: 14px;
}

.sports-list-header .home-team {
	flex: 0 0 25%;
	text-align: center;
}

.sports-list-header .title {
	flex: 0 0 30%;
	text-align: center;
}

.sports-list-header .away-team {
	flex: 0 0 25%;
	text-align: center;
}

.sports-list-header .author {
	flex: 0 0 10%;
	text-align: center;
}

.sports-list-header .views {
	flex: 0 0 10%;
	text-align: center;
	position: relative;
}

.sports-list-header .views::after {
	content: '↕';
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 12px;
}

.sports-list-item{
    display: flex;
    background-color: #fff;
    color: #111;
    padding: 15px 20px;
    /* border-bottom: 1px solid #333; */
    align-items: center;
    transition: background-color 0.3s ease;
    margin-top: 5px;    
}

.sports-list-item:hover {
	background-color: #f0f6fe;
}

.sports-list-item:last-child {
	border-bottom: none;
	border-radius: 0 0 8px 8px;
}

.sports-list-item .home-team {
	flex: 0 0 25%;
	display: flex;
	align-items: center;
	gap: 10px;
}

.sports-list-item .title {
	flex: 0 0 30%;
	text-align: center;
	font-size: 13px;
}

.sports-list-item .away-team {
	flex: 0 0 25%;
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: flex-end;
}

.sports-list-item .author {
	flex: 0 0 10%;
	text-align: center;
	font-size: 12px;
	color: #888;
}

.sports-list-item .views {
	flex: 0 0 10%;
	text-align: center;
	font-size: 12px;
	color: #888;
}

.team-logo {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
}

.country-flag {
	width: 24px;
	height: 18px;
	border-radius: 3px;
	object-fit: cover;
}

.new-tag {
	background-color: #e82d0c;
	color: white;
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 3px;
	margin-left: 5px;
	font-weight: 600;
}

.match-info {
	font-size: 12px;
	color: #ccc;
}

.match-type {
	color: #4a9eff;
	font-weight: 600;
}

.match-time {
	color: #888;
}

/* 모바일 반응형 스타일 */
@media (max-width: 768px) {
	.sports-list-container {
		padding: 10px;
	}
	
	.sports-list-header {
		padding: 10px 15px;
		font-size: 12px;
	}
	
	.sports-list-item {
		padding: 10px 15px;
		flex-wrap: wrap;
	}
	
	.sports-list-item .home-team,
	.sports-list-item .away-team {
		flex: 0 0 35%;
		font-size: 12px;
	}
	
	.sports-list-item .title {
		flex: 0 0 30%;
		font-size: 11px;
	}
	
	.sports-list-item .author,
	.sports-list-item .views {
		flex: 0 0 10%;
		font-size: 10px;
	}
	
	.team-logo,
	.country-flag {
		width: 20px;
		height: 20px;
	}
	
	.new-tag {
		font-size: 8px;
		padding: 1px 4px;
	}
}

#gameview { width:100%; height:938px; }
#scoreboard {
	width: 100%;
} 
.nav-wrapper {
	display: grid;
	max-width: 100%;
	border: 1px solid var(--border-color);
}

.nav-wrapper.col-2 {
	grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
}

.nav-wrapper.col-3 {
	grid-template-columns: repeat(auto-fill, minmax(33.3333%, 1fr));
}

.nav-wrapper.col-4 {
	grid-template-columns: repeat(auto-fill, minmax(25%, 1fr));
}

.nav-wrapper.col-5 {
	grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
}

.nav-wrapper.col-6 {
	grid-template-columns: repeat(auto-fill, minmax(16.666%, 1fr));
}

.nav-wrapper.col-7 {
	grid-template-columns: repeat(auto-fill, minmax(14%, 1fr));
}

.nav-wrapper > div {
	position: relative;
}

.nav-wrapper > div:after {
	content: '';
	position: absolute;
	top: 50%;
	right: 0;
	width: 1px;
	height: 50%;
	background-color: var(--border-color);
	transform: translateY(-50%);
}

.nav-wrapper > div:hover:after {
	background-color: transparent;
}

.nav-wrapper > div.show:after,
.nav-wrapper > div:last-child:after {
	background-color: transparent;
}

.nav-wrapper > div > a {
	position: relative;
	background-color: transparent;
	display: block;
	color: var(--text-primary);
	text-align: center;
	padding: 0 0.375rem;
	font-weight: 500;
	line-height: 50px;
	letter-spacing: -1px;
}

.nav-wrapper > div.show {
	background-color: var(--accent-color);
}

.nav-wrapper > div.show > a {
	color: #fff;
}

.nav-wrapper > div > a:hover {
	background-color: var(--accent-hover);
	color: #fff;
}

.nav-wrapper > div .go-select {
	width: 90%;
	margin: 0.65rem auto 0;
}

.nav-wrapper > div .select-selected {
	background-color: transparent;
	border: none;
	font-weight: 600;
}

.nav-wrapper > div.show .select-selected {
	color: #fff;
}

.nav-wrapper > div.show > a:hover {
	color: #fff;
}

.nav-wrapper .dropdown-list {
	position: absolute;
	display: none;
	width: 100%;
	top: 100%;
	left: 0;
	background-color: var(--bg-primary);
	z-index: 10;
	box-shadow: 3px 3px 10px -2px rgb(0 0 0 / 20%);
	-webkit-box-shadow: 3px 3px 10px -2px rgb(0 0 0 / 20%);
	-moz-box-shadow: 3px 3px 10px -2px rgba(0, 0, 0, 0.2);
}

.nav-wrapper .dropdown-list li {
	padding: 0.375rem 1rem;
	cursor: pointer;
	border-bottom: 1px solid var(--border-color);
	color: var(--text-primary);
}

.nav-wrapper .dropdown-list li:hover {
	background-color: var(--accent-color);
	color: #fff;
}


.talk-bubble-bubble {
	display: inline-block;
	position: absolute;
	width: 82px;
	background-color: var(--success-color);
	border-radius: 8px;
	top:8px;
	left:0%;
	transform:translate(-50%, 0);
	white-space:nowrap;
	animation: bounce 1s;
	animation-iteration-count: infinite;
}
.talk-bubble-bubble .talktext-bubble {padding:3px 5px; text-align:center;}
.talk-bubble-bubble .talktext-bubble p {font-size: 10px; margin:0px; color: #fff;}

@keyframes bounce {
	0% {top:5px; -webkit-animation-timing-function:ease-in;}
	3% {top:7px; -webkit-animation-timing-function:ease-out;}
	50% {top:10px; -webkit-animation-timing-function:ease-in;}
	80% {top:7px; -webkit-animation-timing-function:ease-out;}
	100% {top:5px; -webkit-animation-timing-function:ease-in;}
}   