/* Art Styles Page Main CSS */
@import url("https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  font-family: "Kanit", serif;
}

body {
  background: #030712;
  color: #fff;
  overflow-x: hidden;
}

/* Additional navigation styles for art styles page */
.redirectCreate {
  position: absolute;
  left: 80.5%;
  color: #888;
  font-size: 2em;
  cursor: pointer;
  transition: color 0.3s ease;
}

.redirectCreate:hover {
  color: #8d49fd;
}

/* Header Styles */
.stylesHeader {
  text-align: center;
  padding: 40px 20px;
  margin-top: 20px;
}

.pageTitle {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #8d49fd, #5691f3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.pageSubtitle {
  font-size: 1.2rem;
  color: #888;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}

/* Filter Section */
.filterSection {
  display: flex;
  justify-content: center;
  padding: 20px;
  margin-bottom: 40px;
}

.filterButtons {
  display: flex;
  gap: 12px;
  background: rgba(29, 32, 42, 0.3);
  border-radius: 50px;
  padding: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.filterBtn {
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  background: transparent;
  color: #888;
  font-family: "Kanit", serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.filterBtn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.filterBtn.active {
  background: linear-gradient(135deg, #8d49fd, #5691f3);
  color: #fff;
  box-shadow: 0 4px 15px rgba(141, 73, 253, 0.3);
}

/* Styles Grid */
.stylesGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  padding: 0 40px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Style Card */
.styleCard {
  background: rgba(29, 32, 42, 0.4);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  position: relative;
  backdrop-filter: blur(10px);
}

.styleCard:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(141, 73, 253, 0.5);
}

.styleCard.hidden {
  display: none;
}

/* Style Image */
.styleImage {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

.styleCard:hover .styleImage img {
  transform: scale(1.05);
}

.styleOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(141, 73, 253, 0.2), rgba(86, 145, 243, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.styleCard:hover .styleOverlay {
  opacity: 1;
}

.styleOverlay i {
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Style Info */
.styleInfo {
  padding: 24px;
}

.styleName {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.styleOrigin {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.styleOrigin.historic {
  background: linear-gradient(135deg, #e67e22, #f39c12);
  color: #fff;
}

.styleOrigin.modern {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: #fff;
}

.styleOrigin.digital {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
}

.styleDescription {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 300;
}

/* Modal Styles */
.styleModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(10px);
}

.styleModal.active {
  display: flex;
}

.modalContent {
  background: #1d202a;
  border-radius: 20px;
  max-width: 900px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.closeModal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #888;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.3s ease;
}

.closeModal:hover {
  color: #fff;
}

.modalBody {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 30px;
}

.modalImage {
  border-radius: 15px;
  overflow: hidden;
}

.modalImage img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.modalInfo h2 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

.modalOriginTag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.modalInfo p {
  color: #ccc;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.modalDetails h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 10px;
  margin-top: 20px;
}

.modalDetails ul {
  list-style: none;
  margin-bottom: 20px;
}

.modalDetails li {
  color: #aaa;
  margin-bottom: 5px;
  position: relative;
  padding-left: 20px;
}

.modalDetails li:before {
  content: "•";
  color: #8d49fd;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Try Now Button */
.tryNowBtn {
  background: linear-gradient(135deg, #8d49fd, #5691f3);
  border: none;
  border-radius: 50px;
  padding: 16px 32px;
  color: #fff;
  font-family: "Kanit", serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  box-shadow: 0 4px 15px rgba(141, 73, 253, 0.3);
}

.tryNowBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(141, 73, 253, 0.4);
}

.tryNowBtn:active {
  transform: translateY(0);
}

/* Scrollbar Styles */
.modalContent::-webkit-scrollbar {
  width: 8px;
}

.modalContent::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.modalContent::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #8d49fd, #5691f3);
  border-radius: 10px;
}

/* Animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.styleCard {
  animation: fadeInUp 0.6s ease forwards;
}

.styleCard:nth-child(1) {
  animation-delay: 0.1s;
}
.styleCard:nth-child(2) {
  animation-delay: 0.2s;
}
.styleCard:nth-child(3) {
  animation-delay: 0.3s;
}
.styleCard:nth-child(4) {
  animation-delay: 0.4s;
}
.styleCard:nth-child(5) {
  animation-delay: 0.5s;
}
.styleCard:nth-child(6) {
  animation-delay: 0.6s;
}
.styleCard:nth-child(7) {
  animation-delay: 0.7s;
}
.styleCard:nth-child(8) {
  animation-delay: 0.8s;
}
.styleCard:nth-child(9) {
  animation-delay: 0.9s;
}
.styleCard:nth-child(10) {
  animation-delay: 1s;
}
.styleCard:nth-child(11) {
  animation-delay: 1.1s;
}
.styleCard:nth-child(12) {
  animation-delay: 1.2s;
}
