:root {
	--primary-bg: #13111C;
	--secondary-bg: #1E1B2E;
	--accent: rgb(61, 106, 255);
	--text-clr: rgba(255, 255, 255, 0.7);
	--gradient: linear-gradient(90deg, #5f94ff, #0900ab);
	--card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	--hover-shadow: 0 8px 15px rgba(61, 106, 255, 0.2);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho&display=swap');

body {
	background-color: var(--primary-bg);
	color: var(--text-clr);
	font-family: -apple-system, BlinkMacSystemFont, "Shippori Mincho", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Serif", "Noto Sans JP", "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Kaku Gothic ProN", "Meiryo", "MS PGothic", "MS PMincho", "Tahoma", Geneva, sans-serif;
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem;
	flex: 1;
}

main {
	margin-bottom: 2rem;
	text-align: center;
}

h1 {
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: 2.5rem;
	margin-bottom: 1.5rem;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.search__container {
	margin-bottom: 2rem;
	position: relative;
	display: inline-block;
	width: 100%;
	max-width: 500px;
}

#searchInput {
	width: 100%;
	padding: 1rem 2.5rem 1rem 1rem;
	border: none;
	border-radius: 8px;
	background-color: var(--secondary-bg);
	color: var(--text-clr);
	font-size: 1rem;
	transition: all 0.3s ease;
}

#searchInput:focus {
	outline: 2px solid var(--accent);
	box-shadow: 0 0 10px rgba(61, 106, 255, 0.3);
}

.search__icon {
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.2rem;
	opacity: 0.7;
}

.news__item {
	background-color: var(--secondary-bg);
	border-radius: 12px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	transition: all 0.3s ease;
	box-shadow: var(--card-shadow);
	border: 1px solid rgba(61, 106, 255, 0.1);
}

.news__item:hover {
	transform: translateY(-5px);
	box-shadow: var(--hover-shadow);
	border-color: rgba(61, 106, 255, 0.3);
}

.news__title {
	color: white;
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

.news__meta {
	display: flex;
	gap: 1rem;
	margin-bottom: 1rem;
	font-size: 0.9rem;
	color: var(--accent);
}

.news__description {
	margin-bottom: 1rem;
	line-height: 1.6;
}

.news__more {
	position: relative;
  padding: 10px 20px;
  border-radius: 7px;
  border: 1px solid rgb(61, 106, 255);
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 2px;
  background: transparent;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 0 0 0 transparent;
  -webkit-transition: all 0.2s ease-in;
  -moz-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
}

.news__more:hover {
  background: rgb(61, 106, 255);
  box-shadow: 0 0 30px 5px rgba(0, 142, 236, 0.815);
  -webkit-transition: all 0.2s ease-out;
  -moz-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}

.no__results {
	text-align: center;
	padding: 3rem;
}

.no__results.hidden {
	display: none;
}

.no__results__content {
	background-color: var(--secondary-bg);
	padding: 2rem;
	border-radius: 12px;
	display: inline-block;
}

.no__results__icon {
	font-size: 3rem;
	display: block;
	margin-bottom: 1rem;
}

.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	z-index: 1000;
}

.modal__content {
	position: relative;
	background-color: var(--secondary-bg);
	margin: 15% auto;
	padding: 2rem;
	width: 90%;
	max-width: 600px;
	border-radius: 12px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
	animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
	from {
			transform: translateY(-100px);
			opacity: 0;
	}
	to {
			transform: translateY(0);
			opacity: 1;
	}
}

.close__button {
	position: absolute;
	right: 1rem;
	top: 1rem;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--text-clr);
	transition: color 0.3s ease;
}

.close__button:hover {
	color: white;
}

.modal__meta {
	display: flex;
	gap: 1rem;
	margin: 1rem 0;
	color: var(--accent);
	font-size: 0.9rem;
}

.modal__more {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
	.container {
			padding: 1rem;
	}
	
	.news__item {
			padding: 1rem;
	}

	.modal__content {
			margin: 10% auto;
			width: 95%;
			padding: 1.5rem;
	}

}