/* Website */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  font-family: "Arial", sans-serif;
  background: #0a0a0a;
  color: white;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar */

nav {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 700;
  position: sticky;
  top: 0;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(20, 20, 20, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 40px;
  position: relative;
  z-index: 100;
  gap: 30px;
}

.nav-left {
  left: 40px;
  display: flex;
  gap: 30px;
  align-items: center;
  font-weight: 700;
}

.nav-right {
  right: 80px;
  display: flex;
  gap: 20px;
  align-items: center;
  font-weight: 700;
}

.logo {
  z-index: 10;
}

.logo img {
  height: 80px;
  width: auto;
  display: block;
  transition: filter 0.3s ease;
  cursor: default;
  user-select: none;
}

.shop {
  filter: drop-shadow(0 0 10px orange);
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 10px;
  position: relative;
  transition: color 0.3s ease;
  cursor: pointer;
  user-select: none;
  z-index: 10;
}

nav a:hover {
  color: orange;
}

/* Main Content */

.main-content {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  flex: 1; /* This makes main content take available space */
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 25px;
  font-weight: 700;
  color: #ff8800;
  text-shadow: 0 0 8px rgba(255, 165, 0, 0.8), 0 0 15px rgba(255, 140, 0, 0.6);
}

.tutorials-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Controls */

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.controls input[type="search"] {
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #444;
  background: #222;
  color: white;
  width: 300px;
  transition: border-color 0.3s;
}

.controls input[type="search"]:focus {
  outline: none;
  border-color: #ff8800;
}

.controls input[type="search"]::placeholder {
  color: #888;
}

.filters {
  display: flex;
  gap: 10px;
}

.filters button {
  background: #222;
  border: none;
  padding: 10px 20px;
  color: #eee;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  font-weight: 500;
}

.filters button.active,
.filters button:hover {
  background: #ff8800;
  transform: translateY(-2px);
}

/* Tutorials Grid */

.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.tutorial-card {
  background: #222;
  border-radius: 18px;
  padding: 20px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tutorial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.tutorial-card:hover {
  box-shadow: 0 8px 30px rgba(255, 136, 0, 0.2);
  transform: translateY(-4px);
}

.tutorial-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

.tutorial-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  color: #ff8800;
  font-weight: 600;
}

.tutorial-card p {
  font-size: 0.9rem;
  color: #bbb;
  line-height: 1.4;
}

/* Modal Styles */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: #222;
  margin: 10% auto;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  color: white;
  position: relative;
  text-align: center;
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
  user-select: none;
}

.close-btn:hover,
.close-btn:focus {
  color: #ff8800;
  text-decoration: none;
  cursor: pointer;
}

.modal h2 {
  color: #ff8800;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

/* Contact Modal */
.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.contact-btn {
  display: block;
  padding: 15px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  text-align: center;
}

.contact-btn.gmail {
  background: linear-gradient(45deg, #ff8800, #e67300);
  color: white;
}

.contact-btn.gmail:hover {
  background: linear-gradient(45deg, #e67300, #cc5500);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 136, 0, 0.3);
}

.contact-btn.discord {
  background: linear-gradient(45deg, #ff8800, #e67300);
  color: white;
}

.contact-btn.discord:hover {
  background: linear-gradient(45deg, #e67300, #cc5500);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 136, 0, 0.3);
}

/* Footer */

.footer {
  background-color: #111;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  margin-top: 60px;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-text {
  margin-bottom: 20px;
  font-size: 14px;
  opacity: 0.7;
}

.modal-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.modal-socials a {
  display: inline-block;
  width: 28px;
  height: 28px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.modal-socials a:hover {
  opacity: 1;
}

.modal-socials img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Responsywność */
@media (max-width: 768px) {
  .controls {
    flex-direction: column;
    gap: 15px;
  }
  
  .controls input[type="search"] {
    width: 100%;
    max-width: 300px;
  }
  
  .tutorials-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }
  
  nav {
    padding: 0 20px;
    gap: 15px;
  }
  
  .nav-left,
  .nav-right {
    gap: 15px;
  }
}