/* Reset and Base */
body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background: #fff;
  color: #111;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hidden {
  display: none;
}

/* Header */
header {
  background: #111;
  color: #fff;
  padding: 20px;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

header h1 a {
  text-decoration: none;
  color: #fff;
}

nav {
  margin-top: 10px;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #e63946;
  font-weight: bold;
}

.site-logo {
  max-height: 100px;
  height: auto;
  width: auto;
}

/* Hero */
.hero {
  background: #f1faee;
  padding: 80px 20px;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: #e63946;
}

/* Portfolio */
.portfolio-preview {
  padding: 40px 20px;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

@media (min-width: 1000px) {
  .art-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.art-item {
  text-align: center;
  padding: 10px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.art-item:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.art-item img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 3px solid #ccc;
  border-radius: 8px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.art-item img:hover {
  transform: scale(1.03);
  border-color: #e63946;
}

.art-item a {
  display: block;
  text-decoration: none;
}

.art-title {
  margin-top: 8px;
  font-size: 1rem;
  color: #444;
}

.view-gallery a {
  display: inline-block;
  margin-top: 20px;
  color: #e63946;
  text-decoration: none;
  font-weight: bold;
}

/* Footer */
footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

footer p {
  font-size: 0.9rem;
  margin-top: 20px;
}

footer .social-icons {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

footer .social-icons svg.icon {
  width: 40px;
  height: 40px;
  fill: white;
  transition: fill 0.3s ease, transform 0.2s ease;
}

footer .social-icons a:hover svg.icon {
  transform: scale(1.1);
}

footer .social-icons a.facebook:hover svg.icon { fill: #1877F2; }
footer .social-icons a.instagram:hover svg.icon { fill: #E1306C; }
footer .social-icons a.tiktok:hover svg.icon { fill: #69C9D0; }
footer .social-icons a.youtube:hover svg.icon { fill: #FF0000; }
footer .social-icons a.snapchat:hover svg.icon { fill: #FFFC00; }

/* Gallery */
.gallery {
  text-align: center;
}

.gallery h1 {
  font-size: 2.5rem;
  color: #e63946;
  margin: 40px 0 20px;
}

/* Contact */
.contact-section {
  padding: 60px 20px;
  text-align: center;
  background: #f9f9f9;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-section h1 {
  font-size: 2.5rem;
  color: #e63946;
  margin-bottom: 30px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #e63946;
  outline: none;
}

.contact-form button {
  padding: 15px;
  font-size: 1rem;
  background-color: #e63946;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #d62839;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 15px;
  margin: 20px auto;
  width: fit-content;
  border-radius: 6px;
  font-weight: bold;
}

/* About */
.about-section {
  padding: 80px 20px;
  background: #f1faee;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.about-section .container {
  max-width: 800px;
  margin: 0 auto;
}

.about-section h1 {
  font-size: 2.5rem;
  color: #e63946;
  margin-bottom: 20px;
}

.about-section p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333;
}

/* Dark Mode */
body.dark {
  background: #111;
  color: #eee;
}

body.dark header,
body.dark footer {
  background: #000;
  color: #fff;
}

body.dark .hero,
body.dark .gallery-hero,
body.dark .about-section,
body.dark .portfolio-preview,
body.dark .contact-section {
  background: #1a1a1a;
  color: #eee;
}

body.dark .art-item {
  background: #222;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
}

body.dark .art-title,
body.dark .about-section p {
  color: #ccc;
}

/* Toggle Dark Mode */
.toggle-dark-mode {
  position: fixed;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1000;
  padding: 8px;
}

.toggle-dark-mode .icon {
  width: 64px;
  height: 64px;
  fill: #e63946;
  transition: transform 0.3s ease;
}

.toggle-dark-mode:hover .icon {
  transform: scale(1.1);
}

@media (max-width: 600px) {
  header h1 { font-size: 1.8rem; }
  .hero h1 { font-size: 2.2rem; }
  footer .social-icons svg.icon { width: 32px; height: 32px; }
  footer p { font-size: 0.8rem; }
  .toggle-dark-mode .icon { width: 48px; height: 48px; }
}

/* Cookie Consent */
.cc-window {
  background-color: #111 !important;
  color: #eee !important;
  border-radius: 8px !important;
  padding: 16px !important;
  left: 50% !important;
  bottom: 20px !important;
  transform: translateX(-50%) !important;
  max-width: 90vw !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.cc-btn {
  border: none !important;
  padding: 10px 14px !important;
  margin: 0 6px !important;
  border-radius: 6px !important;
  font-weight: bold !important;
}

.cc-btn.cc-accept {
  background-color: #e63946 !important;
  color: #fff !important;
}

.cc-btn.cc-accept:hover {
  background-color: #d62839 !important;
}

.cc-btn.cc-deny,
.cc-btn.cc-settings {
  background-color: #444 !important;
  color: #eee !important;
}

.cc-btn.cc-deny:hover,
.cc-btn.cc-settings:hover {
  background-color: #555 !important;
}

.cc-revoke,
.cc-revoke.cc-top,
.cc-revoke.cc-bottom {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.cookie-settings {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.cookie-settings:hover {
  transform: scale(1.1);
}

/* SVG styling */
.cookie-settings svg {
  width: 24px;
  height: 24px;
  fill: #8b4513; /* Cookie brown */
  transition: fill 0.3s ease;
}

.cookie-settings:hover svg {
  fill: #a0522d; /* Slightly lighter on hover */
}

body.dark .cookie-settings svg {
  fill: #deb887; /* Light cookie for dark mode */
}
