/* General Styling */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f5dc;
  color: #5c4033;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

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

/* Header Styling */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 120px;
  width: auto;
}

.logo h1 {
  color: #d4a373;
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  margin: 0;
  font-weight: 700;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #5c4033;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

nav a:hover, nav a.active {
  color: #d4a373;
}

nav a.cta-button {
  padding: 0.75rem 1.5rem;
  background-color: #d4a373;
  color: #ffffff;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

nav a.cta-button:hover {
  background-color: #b22222;
  color: #ffffff;
}

/* Hero Section */
.styles-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.styles-hero h1 {
  color: #d4a373;
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.styles-hero .subtitle {
  font-size: 1.3rem;
  color: #5c4033;
  max-width: 700px;
  margin: 0 auto;
}

/* Filters Section */
.styles-filters {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.search-container input {
  width: 100%;
  padding: 1rem 1.5rem;
  padding-right: 3.5rem;
  border: 2px solid #d4a373;
  border-radius: 30px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  color: #5c4033;
}

.search-container input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.3);
}

.search-container button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #d4a373;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.filter-toggles {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-btn {
  background-color: transparent;
  border: 2px solid #d4a373;
  border-radius: 30px;
  padding: 0.6rem 1.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #5c4033;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background-color: #d4a373;
  color: white;
}

/* Styles Grid */
.styles-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  width: 100%;
}

.style-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.style-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.style-image {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.style-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.style-card:hover .style-image img {
  transform: scale(1.05);
}

.style-details {
  padding: 1.5rem;
}

.style-details h3 {
  margin: 0 0 0.5rem;
  color: #5c4033;
  font-size: 1.3rem;
}

.style-details p {
  color: #666;
  margin: 0 0 1.2rem;
  line-height: 1.5;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.style-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.style-tag {
  background-color: #f9f5f0;
  color: #5c4033;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.style-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.find-braiders-btn, .find-inspiration-btn {
  display: inline-block;
  background-color: #d4a373;
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  font-size: 0.95rem;
  text-align: center;
  white-space: nowrap;
}

.find-inspiration-btn {
  margin-left: 0;
}

.find-braiders-btn:hover, .find-inspiration-btn:hover {
  background-color: #b22222;
}

/* Loading Spinner */
.loading-spinner {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(212, 163, 115, 0.3);
  border-radius: 50%;
  border-top-color: #d4a373;
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error Message */
.error-message {
  grid-column: 1 / -1;
  background-color: #ffebee;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  border: 1px solid #ffcdd2;
}

.error-message p {
  color: #b71c1c;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.error-message button {
  background-color: #d4a373;
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.error-message button:hover {
  background-color: #b22222;
}

/* Education Section */
.styles-education {
  background-color: white;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.styles-education h2 {
  color: #d4a373;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
}

.education-content {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.education-image {
  flex: 0 0 40%;
  border-radius: 12px;
  overflow: hidden;
  height: 400px;
}

.education-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.education-text {
  flex: 1;
}

.education-text p {
  color: #5c4033;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.education-text p:last-child {
  margin-bottom: 0;
}

/* Footer */
footer {
  text-align: center;
  color: #5c4033;
  font-size: 0.9rem;
  padding: 1rem 0;
}

/* Modal Styling */
.style-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1100;
  overflow-y: auto;
  padding: 2rem 0;
}

.modal-content {
  background-color: white;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 1200;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.modal-body {
  display: flex;
  flex-direction: column;
}

.modal-image-container {
  height: 400px;
  width: 100%;
  overflow: hidden;
}

.modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details {
  padding: 2rem;
}

.modal-details h2 {
  color: #d4a373;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin: 0 0 1rem;
}

.modal-details p {
  color: #5c4033;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.style-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  background-color: #f9f5f0;
  padding: 1.5rem;
  border-radius: 8px;
}

.fact {
  display: flex;
  flex-direction: column;
}

.fact-label {
  font-weight: 600;
  color: #5c4033;
  margin-bottom: 0.3rem;
}

.modal-details .style-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
  text-align: center;
}

.modal-details .find-braiders-btn,
.modal-details .find-inspiration-btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 968px) {
  .education-content {
    flex-direction: column;
  }
  
  .education-image {
    width: 100%;
    height: 300px;
  }
  
  .modal-body {
    flex-direction: column;
  }
  
  .modal-image-container {
    height: 300px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .logo h1 {
    font-size: 2.5rem;
  }
  
  .logo img {
    height: 80px;
  }
  
  .styles-hero h1 {
    font-size: 2.5rem;
  }
  
  .styles-hero .subtitle {
    font-size: 1.1rem;
  }
  
  .filter-toggles {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  .page-container {
    padding: 1rem;
  }
  
  .styles-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .styles-education {
    padding: 1.5rem;
  }
  
  .modal-content {
    margin: 0 1rem;
  }
  
  .modal-details {
    padding: 1.5rem;
  }
  
  .modal-details h2 {
    font-size: 1.8rem;
  }
  
  .style-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .style-actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .find-inspiration-btn {
    margin-top: 0;
  }
}

/* Extra small devices */
@media (max-width: 400px) {
  .styles-container {
    grid-template-columns: 1fr;
  }
}

/* No Results State */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  background-color: #f9f9f9;
  border-radius: 12px;
}

.no-results p {
  margin-bottom: 1rem;
  color: #666;
  font-size: 1.1rem;
}

.reset-search {
  background-color: #d4a373;
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.reset-search:hover {
  background-color: #b22222;
} 