/* ConvoConnect - Hand-drawn Scribble Styles */

/* Custom Animations */
@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

@keyframes scribble {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(2deg) scale(1.05); }
  100% { transform: rotate(0deg) scale(1); }
}

@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Scribble Borders */
.scribble-border {
  position: relative;
  border: 3px solid transparent;
  background: white;
}

.scribble-border::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: white;
  border: 3px solid black;
  border-radius: 15px 25px 20px 30px / 25px 15px 30px 20px;
  z-index: -1;
}

.scribble-border-large {
  position: relative;
  border: 4px solid transparent;
  background: white;
}

.scribble-border-large::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: white;
  border: 4px solid black;
  border-radius: 20px 35px 25px 40px / 35px 20px 40px 25px;
  z-index: -1;
}

.scribble-border-white {
  position: relative;
  border: 2px solid transparent;
}

.scribble-border-white::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid white;
  border-radius: 10px 20px 15px 25px / 20px 10px 25px 15px;
  z-index: -1;
}

/* Scribble Cards */
.scribble-card {
  position: relative;
  background: white;
  border: 3px solid black;
  border-radius: 15px 25px 20px 30px / 25px 15px 30px 20px;
  box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.1);
}

.scribble-card-large {
  position: relative;
  background: white;
  border: 4px solid black;
  border-radius: 20px 35px 25px 40px / 35px 20px 40px 25px;
  box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.1);
}

/* Scribble Buttons */
.scribble-button {
  position: relative;
  border: 3px solid black;
  border-radius: 15px 25px 20px 30px / 25px 15px 30px 20px;
  background: white;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.scribble-button:hover {
  animation: scribble 0.3s ease-in-out;
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.scribble-button:active {
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
  transform: translateY(1px);
}

.scribble-button-white {
  position: relative;
  border: 2px solid white;
  border-radius: 10px 20px 15px 25px / 20px 10px 25px 15px;
  background: transparent;
  color: white;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: all 0.2s ease;
}

.scribble-button-white:hover {
  background: white;
  color: black;
  animation: scribble 0.3s ease-in-out;
}

/* Role Cards Hover Effects */
.role-card:hover .scribble-card-large {
  box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.15);
  border-width: 5px;
}

/* Donation Button Styles */
.donation-btn {
  transition: all 0.3s ease;
}

.donation-btn:hover {
  box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.2);
  border-width: 4px;
}

/* Custom Input Styles */
input[type="text"], input[type="number"] {
  border-radius: 10px 15px 12px 18px / 15px 10px 18px 12px;
  outline: none;
}

input[type="text"]:focus, input[type="number"]:focus {
  transform: rotate(1deg);
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
}

/* Hand-drawn Line Effects */
.hand-drawn-line {
  position: relative;
}

.hand-drawn-line::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 3px;
  background: black;
  border-radius: 50%;
  transform: rotate(-1deg);
}

/* Scribble Loading Animation */
.scribble-loading {
  animation: wiggle 1s ease-in-out infinite;
}

/* Video Call Interface Styles */
#chatMessages {
  scrollbar-width: thin;
  scrollbar-color: #4a5568 #1a202c;
}

#chatMessages::-webkit-scrollbar {
  width: 6px;
}

#chatMessages::-webkit-scrollbar-track {
  background: #1a202c;
}

#chatMessages::-webkit-scrollbar-thumb {
  background: #4a5568;
  border-radius: 3px;
}

/* Responsive Scribble Effects */
@media (max-width: 768px) {
  .scribble-border::before,
  .scribble-border-large::before {
    border-radius: 10px 20px 15px 25px / 20px 10px 25px 15px;
  }
  
  .scribble-card,
  .scribble-card-large {
    border-radius: 10px 20px 15px 25px / 20px 10px 25px 15px;
  }
  
  .scribble-button {
    border-radius: 10px 15px 12px 18px / 15px 10px 18px 12px;
  }
}

/* Background Pattern */
body {
  background-image: 
    radial-gradient(circle at 20px 50px, transparent 2px, transparent 0),
    radial-gradient(circle at 40px 80px, transparent 1px, transparent 0);
  background-size: 100px 100px;
}

/* Hover Effects for Links */
a:hover {
  text-decoration: underline;
  text-decoration-style: wavy;
}

/* Custom Scrollbar for Webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
  border: 2px solid #f1f1f1;
}

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