/* Imports */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

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

html {
	font-size: 62.5%; /* 1rem = 10px */
}

body {
	position: relative;
	margin: 0;
	padding: 0;
	min-height: 100vh;
	font-family: "Inter", sans-serif;
}

/* Heading Styles */
.heading {
	font-family: "Inter", sans-serif;
	font-size: 4rem;
	font-weight: 600;
	color: #4a5568;
}

.page-heading {
	margin: 3rem 0;
	text-align: center;
	font-family: "Inter", sans-serif;
	font-size: 4rem;
	font-weight: 600;
	color: #4a5568;
}

/* Utility Classes */
.line-clamp {
	display: -webkit-box;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.reset-button-styles {
	border: none;
	background-color: transparent;
	cursor: pointer;
}

/* Container Styles */
.container {
	max-width: 1400px;
	margin: 0 auto;
	padding-left: 7rem;
	padding-right: 7rem;
}

/* Card Container */
.card-container {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	flex-wrap: wrap;
	width: 100%;
}

/* Card Styling */
.card {
	width: 36.3rem;
	border: 0.1rem solid #e0e0db;
	border-radius: 1.2rem;
	margin-top: 1rem;
	margin-bottom: 1.5rem;
	background-color: #fff;
	box-shadow: 0rem 0.4rem 1.2rem rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s ease-in-out;
}

.card:hover {
	box-shadow: 0rem 0.8rem 1.6rem rgba(0, 0, 0, 0.2);
}

/* Card Image */
.card__image {
	width: 100%;
	height: 20rem;
	border-top-left-radius: 1.2rem;
	border-top-right-radius: 1.2rem;
	object-fit: cover;
}

/* Card Author */
.card__author {
	display: flex;
	align-items: center;
	margin: 1rem 2rem;
}

.card__author-image {
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
}

.card__author-name {
	font-size: 1.2rem;
	font-weight: 500;
	color: #757575;
	margin-left: 0.8rem;
}

/* Card Title */
.card__title {
	margin: 1rem 2rem;
	font-size: 2.2rem;
	font-weight: 700;
	color: #000;
	font-family: "Inter", serif;
	line-height: 1.4;
}

.card__title a {
	text-decoration: none;
	color: black;
}

/* Card Description */
.card__description {
	margin: 0.8rem 2rem;
	font-size: 1.4rem;
	font-weight: 400;
	color: #666666;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Card Date */
.card__date {
	font-size: 1.3rem;
	font-weight: 700;
	color: #333333;
}

/* Card Info */
.card__info {
	margin: 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Card Reviews */
.card__reviews {
	display: flex;
	align-items: center;
}

/* Card Like */
.card__like {
	display: flex;
	align-items: center;
	margin-right: 0.5rem;
}

.card__like form {
	display: flex;
	align-items: center;
}

.card__like-image {
	height: 2rem;
	width: 2rem;
}

.card__like-count {
	text-align: center;
	font-size: 1.4rem;
	padding-left: 0.5rem;
	color: #333;
}

/* Card Tags */
.card__tags {
	display: flex;
	flex-wrap: wrap;
	margin: 0.8rem 2rem 2rem;
	gap: 0.8rem;
}

.card__tag {
	padding: 0.4rem 0.8rem;
	border: none;
	color: #1976d2;
	border: 0.2px solid #1976d2;
	background-color: #bbdefb62;
	border-radius: 1.6rem;
	font-size: 1.3rem;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.card__tag:hover {
	background-color: #90caf9;
}

/* Button Styles */
.btn {
	padding: 0.8rem 1.6rem;
	border-radius: 0.4rem;
	font-size: 1.4rem;
	font-family: "Inter", sans-serif;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.025rem;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

/* Primary Button */
.btn--primary {
	background-color: #1976d2;
	color: #fff;
	border: 2px solid transparent;
	box-shadow: 0px 0.2rem 0.4rem rgba(0, 0, 0, 0.15);
}

.btn--primary:hover {
	background-color: #1565c0;
	box-shadow: 0px 0.4rem 0.8rem rgba(0, 0, 0, 0.3);
}

.btn--primary:active {
	background-color: #0d47a1;
	box-shadow: 0px 0.2rem 0.4rem rgba(0, 0, 0, 0.2);
	transform: translateY(0.1rem);
}

.btn--primary:disabled {
	background-color: rgba(0, 0, 0, 0.12);
	color: rgba(255, 255, 255, 0.5);
	box-shadow: none;
	cursor: default;
}

/* Outlined Button */
.btn--outlined {
	background-color: transparent;
	color: #1976d2;
	border: 2px solid #1976d2;
	padding: 0.8rem calc(1.6rem - 0.4rem);
}

.btn--outlined:hover {
	background-color: rgba(25, 118, 210, 0.04);
}

.btn--outlined:active {
	background-color: rgba(25, 118, 210, 0.1);
}

.btn--outlined:disabled {
	color: rgba(0, 0, 0, 0.26);
	border-color: rgba(0, 0, 0, 0.26);
	background-color: transparent;
	cursor: default;
}

/* Input Styles */
.input {
	width: 100%;
	padding: 1rem 1rem;
	font-size: 1.4rem;
	border: 1px solid #ccc;
	border-radius: 0.4rem;
	color: #333;
	font-family: "Inter", sans-serif;
	font-weight: 500;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	background-color: #fff;
}

.input::placeholder {
	color: #aaa;
}

.input:focus {
	border-color: #1976d2;
	box-shadow: 0px 0px 0px 4px rgba(25, 118, 210, 0.2);
	outline: none;
}

/* Search Bar Styling */
.search-bar {
	position: relative;
	width: 100%;
	max-width: 50rem;
}

.search-bar__button {
	position: absolute;
	right: 1.2rem;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	color: #aaa;
	display: flex;
	align-items: center;
	justify-content: center;
}

.search-bar__icon {
	height: 1.5rem;
	width: 1.5rem;
	transition: color 0.3s ease;
}
