/* Loading overlay styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #60a5fa, #3b82f6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Loading content container */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 90%;
    max-width: 400px;
}

/* Spinner animation */
.loading-spinner {
    width: 80px;
    height: 80px;
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading messages */
.loading-messages {
    text-align: center;
    height: 40px; /* Fixed height to prevent layout shift */
    position: relative;
}

.loading-message {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.5s ease-in-out;
    white-space: nowrap;
}

.loading-message.active {
    opacity: 1;
}

/* Loading bar container */
.loading-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

/* Loading bar */
.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #fef3c7, #fcd34d, #fef3c7);
    background-size: 200% 100%;
    animation: loading-bar-animation 6s linear infinite;
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease-out;
}

@keyframes loading-bar-animation {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Loading decorations */
.loading-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.loading-decorations .star {
    position: absolute;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.loading-decorations .star-1 { top: 10%; left: 15%; animation-delay: 0s; }
.loading-decorations .star-2 { top: 80%; left: 70%; animation-delay: 0.5s; }
.loading-decorations .star-3 { top: 30%; right: 10%; animation-delay: 1s; }
.loading-decorations .star-4 { bottom: 20%; left: 25%; animation-delay: 1.5s; }

/* Verification Section */
.verification-section {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #60a5fa, #3b82f6);
    z-index: 200;
    padding: 20px;
    overflow-y: auto;
    animation: fadeIn 0.5s ease-in-out;
}

.verification-section.show {
    display: block;
}

.verification-container {
    max-width: 600px;
    margin: 40px auto;
    background-color: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Verification prize display */
.verification-prize-display {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.verification-prize-icon {
    width: 160px;  /* Increased from 120px */
    height: 160px; /* Increased from 120px */
    background-color: #8b5cf6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border: 4px solid #fef3c7;
    box-shadow: 0 0 15px rgba(252, 211, 77, 0.7);
    position: relative;
    overflow: hidden;
    animation: gentle-pulse-small 3s ease-in-out infinite;
}

.verification-prize-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 70%
    );
    animation: shine-sweep 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gentle-pulse-small {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.08) translateY(-7px);
    }
}

.verification-prize-icon img {
    max-width: 90%;  /* Increased from 80% */
    max-height: 90%; /* Increased from 80% */
    object-fit: contain;
}

.verification-prize-name {
    font-size: 28px;
    font-weight: bold;
    color: #ec4899;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.verification-prize-recipient {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 20px;
}

.verification-prize-recipient strong {
    color: #4b5563;
}

/* Verify button */
.verify-button {
    background: linear-gradient(135deg, #059669, #10b981, #34d399);
    background-size: 200% 200%;
    padding: 20px 40px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 24px;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 
        0 8px 25px rgba(5, 150, 105, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    width: 90%;
    max-width: 350px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: verify-pulse 2s ease-in-out infinite;
    border: 3px solid #ffffff;
}

.verify-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    transition: left 0.5s ease;
}

.verify-button:hover::before {
    left: 100%;
}

.verify-button:hover {
    background: linear-gradient(135deg, #047857, #059669, #10b981);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(5, 150, 105, 0.6),
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
    animation: verify-pulse-fast 1s ease-in-out infinite;
}

.verify-button:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 
        0 6px 20px rgba(5, 150, 105, 0.4),
        0 3px 10px rgba(0, 0, 0, 0.2);
}

.verify-button:disabled {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    animation: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


/* Special prize styling for verification */
.verification-prize-name.special {
    color: #ec4899;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.verification-prize-icon.special {
    background-color: #ec4899;
    border: 4px solid #fef3c7;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.7);
}

.bouncing-logo {
  position: relative;
  width: 120px; /* Increased from 80px */
  height: 120px; /* Increased from 80px */
  background-image: url('img/logosso.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: bounce-logo 2.5s infinite ease-in-out;
  margin: 0 auto 30px; /* Adjusted margin */
  z-index: 5;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

@keyframes bounce-logo {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  40% {
    transform: translateY(-30px) rotate(5deg);
  }
  60% {
    transform: translateY(-30px) rotate(-5deg);
  }
  80% {
    transform: translateY(-10px) rotate(0deg);
  }
}