/*
Theme Name: Magai Frontu
Theme URI: https://magiafrontu.pl
Author: Maciej Rościszewski
Author URI: https://magiafrontu.pl
Description: Własny szybki motyw, zastosowany na stronie magiaforntu.pl
Tags: ten od wordpressa, własny motyw,
Version: 1.0
Requires PHP: 8.1
*/

:root {
  --primary: rgb(21, 24, 39);
  --primary-text: rgb(207, 216, 247);
  --primary-light: rgb(38, 46, 70);
  --primary-extra-light: rgb(110, 129, 184);
  --secondary: rgb(131, 57, 152);
  --secondary-dark: rgb(106, 46, 122);
  --secondary-dark-alpha: rgba(79, 34, 92, 0.7);
  --secondary-light: rgb(243, 197, 255);
  --dark: rgb(8, 9, 14);
  --white: rgb(235, 235, 235);
  --light: rgb(177, 192, 250);
  --info: rgb(35, 166, 184);
  --success: rgb(60, 153, 94);
  --warning: rgb(250, 145, 38);
  --error: rgb(215, 57, 58);
  --text-content: rgb(211, 222, 252);
  --text-code: rgb(44, 53, 82);
}

html {
  height: 100%;
  box-sizing: border-box;
}

*,
::after,
::before {
  box-sizing: inherit;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  margin: 0;
  background-color: var(--primary);
  font-size: 18px;
}

.width_page {
  width: 1500px;
  max-width: 94%;
}

.nav {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 70px;
  background-color: var(--secondary);
  box-shadow: 0 0 8px var(--dark);
  color: var(--secondary-light);
  z-index: 100;
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  padding-top: 80px;
  padding-bottom: 30px;
}

/* HOME PAGE LAST ARTICLE */
.section_title {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
  font-size: 2em;
  font-weight: 600;
}

.section_title_weight_400 {
  font-size: 0.5em;
  font-weight: 400;
  line-height: 0;
}

@media (max-width: 300px) {
  .section_title_weight_400 {
    line-height: 1;
  }
}

.last_article_container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 30px;
  grid-template-areas:
    "last_article_big ."
    "last_article_big ."
    "last_article_big ."
    ". .";
}

.article_container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 1020px) {
  .last_article_container {
    display: flex;
    flex-direction: column;
  }
}

.last_article_container .article_box:first-of-type {
  grid-area: last_article_big;
}

.article_box {
  display: flex;
  background-color: var(--primary-light);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.5s;
}

.article_container .article_box {
  width: calc(50% - 20px);
}

@media (max-width: 1020px) {
  .article_container .article_box {
    width: 100%;
  }
}

@media (min-width: 1020px) {
  .last_article_container .article_box:first-of-type {
    flex-direction: column;
  }
}

.article_box:hover {
  box-shadow: 0 0 15px 2px var(--dark);
}

.article_box:hover img {
  transform: rotate(6deg) scale(1.3);
}

.article_box_image {
  position: relative;
  width: 100%;
  max-width: 37%;
  min-width: 37%;
  overflow: hidden;
}

@media (max-width: 320px) {
  .article_box_image {
    display: none;
  }
}

@media (min-width: 1020px) {
  .last_article_container .article_box:first-of-type .article_box_image {
    max-width: 100%;
    min-width: 100%;
    height: 75%;
  }
}

.article_box_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.article_box_image_category {
  position: absolute;
  top: -1px;
  left: -1px;
  padding: 4px 22px;
  background-color: var(--secondary);
  font-size: 0.8em;
  font-weight: 500;
  border-radius: 8px 0;
  z-index: 2;
}

.article_box_content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

.article_box_date {
  margin: 0;
  font-size: 0.9em;
  color: var(--primary-text);
}

.article_box_title {
  margin: 0;
  font-size: clamp(1.2em, 1.5vw, 1.5em);
  font-weight: 600;
}

.article_box_title_link {
  color: var(--white);
  text-decoration: none;
  transition: color 0.4s;
}

.article_box_title_link:hover {
  color: var(--secondary-light);
}

.article_box_description {
  margin: 10px 0;
  color: var(--primary-text);
}

.article_box_description p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

@media (max-width: 560px) {
  .article_box_description {
    display: none;
  }
}

.article_box_link {
  display: flex;
  align-content: center;
  gap: 4px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 500;
  color: var(--secondary-light);
}

.article_box_link svg {
  transform: rotate(90deg);
  transition: margin 0.2s;
}

.article_box_link:hover svg {
  margin-left: 8px;
}

/* HOME PAGE END LAST ARTICLE */

/* CATEGORY, TAGS PAGE */
.article_container {
  display: flex;
}
/* END CATEGORY, TAGS PAGE */

/* HOME PAGE TAGS */
.tags {
  margin: 80px 0 40px 0;
}

.tags_container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 10px 0 0 0;
  padding: 0;
  list-style: none;
}

.tags_container li a {
  position: relative;
  display: inline-block;
  padding: 15px 32px;
  border: 2px solid var(--secondary);
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  overflow: hidden;
  transition: box-shadow 0.4s;
}

.tags_container li a:hover {
  box-shadow: 0 0 15px 2px var(--dark);
}

.tags_container li a:hover::before {
  right: -15px;
}

.tags_container li a::before {
  position: absolute;
  content: "";
  display: block;
  top: -2px;
  right: calc(100% + 15px);
  width: calc(100% + 30px);
  height: 115%;
  transform: skewX(-20deg);
  background-color: var(--secondary);
  z-index: -1;
  transition: right 0.4s;
}
/* END HOME PAGE TAGS */

/* FOOTER */
.footer {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  padding: 20px 0;
  background-color: var(--secondary-dark-alpha);
  border-top: 2px solid var(--secondary);
  color: var(--secondary-light);
}

.footer_content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
}

@media (max-width: 580px) {
  .footer_content {
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
  }
}

.footer_logo {
  text-align: center;
}

.footer_content_title {
  margin: 0;
  font-size: 1.4em;
  font-weight: 600;
}

.footer_content_name {
  margin: 0;
  font-size: 0.8em;
}

.footer_nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8em;
}

.footer_nav ul li {
  padding-bottom: 5px;
}

.footer_nav ul li a {
  color: var(--secondary-light);
  text-decoration: none;
}

.footer_nav ul li a:hover {
  text-decoration: underline;
}
/* EDN FOOTER */

/* COOKIE */
.cookie_show {
  display: flex;
}

.cookie_hidden {
  display: none;
}

.cookie {
  position: fixed;
  gap: 20px;
  align-items: center;
  width: fit-content;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 15px;
  background-color: var(--dark);
  border-radius: 8px;
  box-shadow: 0 0 15px 3px var(--dark);
  color: var(--secondary-light);
  font-size: 0.9em;
  z-index: 101;
}

@media (max-width: 680px) {
  .cookie {
    flex-direction: column;
  }
}

.cookie_text {
  margin: 0;
}

.cookie_text a {
  color: var(--white);
}

.cookie_button {
  position: relative;
  padding: 8px 17px;
  border: 2px solid var(--secondary);
  border-radius: 8px;
  background-color: transparent;
  color: var(--white);
  cursor: pointer;
  overflow: hidden;
  transition: color 0.4s;
  z-index: 1;
}

.cookie_button:hover::before {
  right: -15px;
}

.cookie_button::before {
  position: absolute;
  content: "";
  display: block;
  top: -2px;
  right: calc(100% + 15px);
  width: calc(100% + 30px);
  height: 115%;
  transform: skewX(-20deg);
  background-color: var(--secondary);
  z-index: -1;
  transition: right 0.4s;
}
/* END COOKIE */
