/* Custom Styles for HackShield Academy */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
}

/* Custom animations */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(34, 211, 238, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(34, 211, 238, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(34, 211, 238, 0.3);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-30px);
    }
    70% {
        transform: translateY(-15px);
    }
    90% {
        transform: translateY(-4px);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.glow-effect {
    animation: glow 2s ease-in-out infinite alternate;
}

.bounce-effect {
    animation: bounce 2s infinite;
}

.btn-primary {
    background: linear-gradient(45deg, #06b6d4, #8b5cf6);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0891b2, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Game specific styles */
.game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.email-content {
    background: #f8f9fa;
    color: #333;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.suspicious-element {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.suspicious-element:hover {
    background-color: rgba(255, 255, 0, 0.3);
    transform: scale(1.05);
}

.clicked-correct {
    background-color: rgba(34, 197, 94, 0.3);
    border: 2px solid #22c55e;
}

.clicked-incorrect {
    background-color: rgba(239, 68, 68, 0.3);
    border: 2px solid #ef4444;
}

.password-tile {
    background: #374151;
    color: white;
    border: 2px solid #6b7280;
    border-radius: 8px;
    padding: 10px 16px;
    margin: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

.password-tile:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.password-tile.selected {
    background: #06b6d4;
    border-color: #0891b2;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

.suspicious-word {
    background: rgba(255, 255, 0, 0.3);
    border: 1px solid #fbbf24;
    border-radius: 4px;
    padding: 1px 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.suspicious-word:hover {
    background: rgba(255, 255, 0, 0.5);
    transform: scale(1.05);
}

.quiz-feedback {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-next-btn {
    animation: pulse 2s infinite;
}

.strength-weak {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.strength-medium {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.strength-strong {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.chat-message {
    margin: 10px 0;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 70%;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-scammer {
    background: #ef4444;
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-user {
    background: #06b6d4;
    color: white;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.chat-option {
    background: #374151;
    color: white;
    border: 2px solid #6b7280;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.chat-option:hover {
    background: #4b5563;
    border-color: #06b6d4;
    transform: translateX(5px);
}

.feedback-correct {
    background: #22c55e;
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    font-weight: 600;
}

.feedback-incorrect {
    background: #ef4444;
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    font-weight: 600;
}

.quiz-question {
    background: #374151;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quiz-option {
    background: #4b5563;
    color: white;
    border: none;
    padding: 12px 20px;
    margin: 8px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.quiz-option:hover {
    background: #6b7280;
    transform: translateX(5px);
}

.quiz-option.correct {
    background: #22c55e;
    border: 2px solid #16a34a;
}

.quiz-option.incorrect {
    background: #ef4444;
    border: 2px solid #dc2626;
}

.leaderboard-entry {
    background: #374151;
    border-radius: 8px;
    padding: 16px;
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.leaderboard-entry:hover {
    background: #4b5563;
    transform: translateX(5px);
}

.leaderboard-rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fbbf24;
}

.leaderboard-name {
    font-weight: 600;
    color: #06b6d4;
}

.leaderboard-score {
    font-weight: bold;
    color: #22c55e;
}

/* Tab Button Styles */
.tab-button {
    background-color: #374151;
    color: #9CA3AF;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 2px;
}

.tab-button:hover {
    background-color: #4B5563;
    color: #F3F4F6;
}

.tab-button.active {
    background-color: #06B6D4;
    color: #FFFFFF;
}

/* Leaderboard Section Styles */
.leaderboard-section {
    animation: fadeIn 0.3s ease-in-out;
}

/* Difficulty Selection Styles */
.difficulty-card {
    transition: all 0.3s ease;
}

.difficulty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Enhanced Animations and Effects */
.group:hover .group-hover\:animate-bounce {
    animation: bounce 1s ease-in-out;
}

/* Custom Gradient Backgrounds */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

/* Enhanced Card Effects */
.game-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.game-card:hover::before {
    left: 100%;
}

/* Score Display Enhancements */
.score-display {
    background: linear-gradient(135deg, #374151, #4b5563);
    border: 1px solid #6b7280;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

/* Leaderboard Enhancements */
.leaderboard-row {
    transition: all 0.3s ease;
}

.leaderboard-row:hover {
    background: linear-gradient(90deg, #374151, #4b5563);
    transform: translateX(5px);
}

/* Responsive design */
@media (max-width: 768px) {
    .game-container {
        padding: 10px;
    }
    
    .chat-message {
        max-width: 85%;
    }
    
    .email-content {
        padding: 15px;
    }
    
    .password-tile {
        padding: 10px 15px;
        margin: 6px;
    }
    
    .tab-button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .difficulty-card {
        padding: 1.5rem;
    }
    
    .game-card {
        margin-bottom: 1rem;
    }
    
    .score-display {
        padding: 1rem;
    }
}

/* Accessibility Enhancements */
.focus\:ring-4:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    .bg-white {
        background-color: #1f2937;
        color: #f9fafb;
    }
    
    .text-black {
        color: #f9fafb;
    }
    
    .border-gray-300 {
        border-color: #4b5563;
    }
}
