/* Japanese Aesthetic Theme for Homer */

/* Variables for Japanese color palette */
:root {
  --jp-primary: #8b4513;
  --jp-secondary: #d4af37;
  --jp-accent: #c41e3a;
  --jp-light-bg: #f5f1de;
  --jp-dark-bg: #1a1a1a;
  --jp-bamboo: #2d5016;
  --jp-sakura: #ff69b4;
  --jp-text-dark: #2c2c2c;
  --jp-text-light: #f0f0f0;
}

/* Body with Japanese textured background */
body {
  background: linear-gradient(135deg, #f5f1de 0%, #e8e0d0 100%);
  background-attachment: fixed;
  font-family: 'Noto Sans CJK JP', 'Segoe UI', sans-serif;
  position: relative;
  min-height: 100vh;
}

/* Japanese paper texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 69, 19, 0.03) 2px, rgba(139, 69, 19, 0.03) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 69, 19, 0.03) 2px, rgba(139, 69, 19, 0.03) 4px);
  pointer-events: none;
  z-index: -1;
}

/* Dark mode variant */
body.is-dark {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2416 100%);
  background-attachment: fixed;
}

body.is-dark::before {
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(212, 175, 55, 0.05) 2px, rgba(212, 175, 55, 0.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(212, 175, 55, 0.05) 2px, rgba(212, 175, 55, 0.05) 4px);
}

/* Header with Japanese aesthetic */
.navbar, .header {
  background: linear-gradient(90deg, #8b4513 0%, #a0522d 50%, #8b4513 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-bottom: 3px solid #d4af37;
}

.navbar::before {
  content: '';
  display: block;
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, #d4af37 0px, #d4af37 20px, #c41e3a 20px, #c41e3a 40px);
}

/* Title styling with Japanese characters aesthetic */
.title, .subtitle {
  font-weight: 700;
  letter-spacing: 1px;
}

.title {
  color: #d4af37;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-size: 2.5rem;
}

.subtitle {
  color: #f5f1de;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Dark mode title */
body.is-dark .title {
  color: #d4af37;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

body.is-dark .subtitle {
  color: #e8e0d0;
}

/* Service cards with Japanese brush stroke aesthetic */
.card {
  border: none;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8b4513 0%, #d4af37 50%, #c41e3a 100%);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(139, 69, 19, 0.25);
}

/* Dark mode cards */
body.is-dark .card {
  background: #2b2416;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  color: #e8e0d0;
}

body.is-dark .card:hover {
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
}

/* Card title styling */
.card-content .title {
  color: #8b4513;
  font-size: 1.3rem;
}

body.is-dark .card-content .title {
  color: #d4af37;
}

/* Service item styling */
.tag {
  background: linear-gradient(90deg, #8b4513, #a0522d);
  color: #f5f1de;
  border-radius: 4px;
  border: 1px solid #d4af37;
}

.tag.is-warning {
  background: #d4af37;
  color: #8b4513;
}

/* Links with Japanese aesthetic */
a {
  color: #8b4513;
  transition: all 0.3s ease;
  position: relative;
}

a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(90deg, #d4af37, #c41e3a);
  transition: width 0.3s ease;
}

a:hover {
  color: #d4af37;
}

a:hover::after {
  width: 100%;
}

/* Dark mode links */
body.is-dark a {
  color: #d4af37;
}

body.is-dark a:hover {
  color: #f5f1de;
}

/* Button styling */
.button {
  background: linear-gradient(90deg, #8b4513 0%, #a0522d 100%);
  color: #f5f1de;
  border: 2px solid #d4af37;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.button:hover {
  background: linear-gradient(90deg, #a0522d 0%, #8b4513 100%);
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.button.is-light {
  background: #f5f1de;
  color: #8b4513;
  border-color: #8b4513;
}

.button.is-light:hover {
  background: #e8e0d0;
}

/* Message box styling */
.message {
  background: linear-gradient(90deg, rgba(139, 69, 19, 0.1), rgba(212, 175, 55, 0.1));
  border-left: 4px solid #d4af37;
  border-radius: 4px;
}

.message.is-dark {
  background: linear-gradient(90deg, rgba(139, 69, 19, 0.2), rgba(212, 175, 55, 0.2));
  color: #f5f1de;
}

.message-header {
  background: #8b4513;
  color: #d4af37;
}

.message-body {
  color: #2c2c2c;
}

.message.is-dark .message-body {
  color: #e8e0d0;
}

/* Input fields */
input, textarea, select {
  border: 2px solid #d4af37 !important;
  border-radius: 4px;
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: #c41e3a !important;
  box-shadow: 0 0 8px rgba(196, 30, 58, 0.3);
}

/* Footer styling */
footer {
  background: #8b4513;
  color: #f5f1de;
  border-top: 3px solid #d4af37;
  padding: 2rem;
  text-align: center;
}

footer a {
  color: #d4af37;
}

footer a:hover {
  color: #f5f1de;
}

/* Japanese wave pattern accent */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: url('data:image/svg+xml,<svg viewBox="0 0 1200 60" xmlns="http://www.w3.org/2000/svg"><defs><style>.wave { animation: wave 15s ease-in-out infinite; } @keyframes wave { 0%25, 100%25 { d: path("M0,20 Q300,40 600,20 T1200,20 L1200,60 L0,60 Z"); } 50%25 { d: path("M0,30 Q300,10 600,30 T1200,30 L1200,60 L0,60 Z"); } }</style></defs><path class="wave" d="M0,20 Q300,40 600,20 T1200,20 L1200,60 L0,60 Z" fill="%23d4af37" opacity="0.2"/></svg>') repeat-x;
  background-size: 300px 60px;
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .title {
    font-size: 1.8rem;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
  
  .navbar {
    border-bottom-width: 2px;
  }
}

/* Icons styling */
.icon {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Smooth scrollbar (for webkit browsers) */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f5f1de;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8b4513, #d4af37);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a0522d, #c41e3a);
}

body.is-dark ::-webkit-scrollbar-track {
  background: #2d2416;
}

body.is-dark ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4af37, #8b4513);
}
