/* Estilos personalizados minimalistas - Preto e Branco */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
  color: #000000;
  line-height: 1.6;
}

/* Scrollbar customizada */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #ffffff;
  border-left: 1px solid #000000;
}

::-webkit-scrollbar-thumb {
  background: #000000;
}

::-webkit-scrollbar-thumb:hover {
  background: #333333;
}

/* Animações suaves */
* {
  transition: all 0.2s ease;
}

/* Tipografia elegante */
.handwritten {
  font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
  letter-spacing: 1px;
}

/* Efeito de tinta em papel */
.ink-effect {
  position: relative;
  overflow: hidden;
}

.ink-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
  animation: ink-spread 2s ease-in-out infinite;
}

@keyframes ink-spread {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Botões com efeito de escrita */
button {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:active::before {
  width: 300px;
  height: 300px;
}

/* Cards com sombra de papel */
.paper-card {
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: 
    4px 4px 0 rgba(0, 0, 0, 0.1),
    8px 8px 0 rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.paper-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 
    6px 6px 0 rgba(0, 0, 0, 0.1),
    12px 12px 0 rgba(0, 0, 0, 0.05);
}

/* Inputs estilo manuscrito */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  border: 2px solid #000000;
  border-radius: 0;
  padding: 12px;
  font-family: inherit;
  background: #ffffff;
  transition: box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #000000;
}

/* Range input personalizado */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  outline: none;
  border: 1px solid #000000;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #000000;
  cursor: pointer;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #000000;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #000000;
  cursor: pointer;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #000000;
}

/* Efeito de carregamento */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #000000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Citações estilo livro */
blockquote {
  border-left: 4px solid #000000;
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: #333333;
}

/* Tooltips minimalistas */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  background: #000000;
  color: #ffffff;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  margin-bottom: 8px;
}

[data-tooltip]:hover::after {
  opacity: 1;
}

/* Animação de entrada */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Separadores decorativos */
hr {
  border: none;
  border-top: 2px solid #000000;
  margin: 40px 0;
  position: relative;
}

hr::after {
  content: '✒';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  padding: 0 10px;
  font-size: 20px;
}

/* Badges estilo etiqueta */
.badge {
  display: inline-block;
  padding: 4px 12px;
  background: #000000;
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%);
}

/* Grid de livros responsivo */
@media (max-width: 768px) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .book-grid {
    grid-template-columns: 1fr;
  }
}

/* Efeito de página virando */
.page-turn {
  perspective: 1000px;
}

.page-turn:hover {
  transform: rotateY(-5deg);
}

/* Underlining animado para links */
a {
  position: relative;
  text-decoration: none;
  color: inherit;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #000000;
  transition: width 0.3s ease;
}

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

/* Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: #ffffff;
  border: 3px solid #000000;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Print styles */
@media print {
  body {
    background: #ffffff;
    color: #000000;
  }
  
  header,
  button,
  .no-print {
    display: none;
  }
}
