/* Custom Styles for Steal a Brainrot Guide */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6d28d9;
}

/* Navigation Enhancements */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fas.fa-brain {
    animation: float 3s ease-in-out infinite;
}

/* Character Cards */
.character-card {
    background: linear-gradient(145deg, #374151, #1f2937);
    border: 1px solid #4b5563;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.character-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 ease;
}

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

.character-card:hover {
    transform: translateY(-5px);
    border-color: #7c3aed;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.2);
}

/* Rarity Colors */
.rarity-common {
    border-left: 4px solid #9ca3af;
}

.rarity-rare {
    border-left: 4px solid #10b981;
}

.rarity-epic {
    border-left: 4px solid #3b82f6;
}

.rarity-legendary {
    border-left: 4px solid #f59e0b;
}

.rarity-mythic {
    border-left: 4px solid #ef4444;
}

.rarity-brainrot-god {
    border-left: 4px solid #ec4899;
}

.rarity-secret {
    border-left: 4px solid #8b5cf6;
}

/* Strategy Items */
.strategy-item {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.strategy-item:hover {
    transform: translateX(5px);
    border-left-color: #7c3aed;
    background: #1f2937;
}

/* Equipment Items */
.equipment-item {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.equipment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(124, 58, 237, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.equipment-item:hover::before {
    transform: translateX(100%);
}

.equipment-item:hover {
    transform: scale(1.05);
}

/* Defense Items */
.defense-item,
.defense-strategy,
.recovery-item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.defense-item:hover {
    border-left-color: #ef4444;
    transform: translateX(3px);
}

.defense-strategy:hover {
    border-left-color: #3b82f6;
    transform: translateX(3px);
}

.recovery-item:hover {
    border-left-color: #a855f7;
    transform: translateX(3px);
}

/* Mutation and Trait Items */
.mutation-item,
.trait-item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mutation-item:hover {
    border-left-color: #ec4899;
    transform: translateX(3px);
    background: #1f2937;
}

.trait-item:hover {
    border-left-color: #8b5cf6;
    transform: translateX(3px);
    background: #1f2937;
}

/* Filter Buttons */
.rarity-filter {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.rarity-filter:hover::before {
    left: 100%;
}

.rarity-filter.active {
    background: #7c3aed !important;
    transform: scale(1.05);
}

/* Rebirth Table Enhancements */
#rebirth-table-body tr {
    transition: all 0.3s ease;
}

#rebirth-table-body tr:hover {
    background: #374151;
    transform: scale(1.02);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .character-card {
        margin-bottom: 1rem;
    }
    
    .strategy-item,
    .equipment-item,
    .defense-item {
        margin-bottom: 0.5rem;
    }
    
    .nav-link::after {
        display: none;
    }
}

/* Custom Gradient Backgrounds */
.bg-gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-green {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

/* Section Dividers */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #7c3aed, transparent);
}

/* Highlight Effects */
.highlight-box {
    background: linear-gradient(145deg, #1f2937, #374151);
    border: 1px solid #4b5563;
    position: relative;
    overflow: hidden;
}

.highlight-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #7c3aed, #ec4899, #7c3aed);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Interactive Elements */
.interactive-element {
    transition: all 0.3s ease;
    cursor: pointer;
}

.interactive-element:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Success/Error States */
.success-state {
    border-left: 4px solid #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.error-state {
    border-left: 4px solid #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.warning-state {
    border-left: 4px solid #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

/* Custom Tooltips */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: #000 !important;
        background: #fff !important;
    }
    
    .character-card,
    .strategy-item,
    .equipment-item {
        break-inside: avoid;
        border: 1px solid #ddd !important;
        background: #fff !important;
        color: #000 !important;
    }
}
