/* Whitelist Checker Specific Styles */

.whitelist-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}

.header-content {
    position: relative;
    min-height: 80px;
}

.back-button {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(139, 92, 246, 0.08));
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.back-button:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(139, 92, 246, 0.15));
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.25), 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.back-button:hover::before {
    left: 100%;
}

.back-button svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.back-button:hover svg {
    transform: scale(1.1) rotate(5deg);
}

.whitelist-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 10px 0;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.whitelist-header p {
    font-size: 1rem;
    color: #e2e8f0;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Stats Section */
.whitelist-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.stat-number, .stat-percentage {
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.85rem;
    color: #e2e8f0;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Controls Section */
.controls-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-container {
    position: relative;
    width: 300px;
}

.search-container input {
    width: 100%;
    padding: 12px 16px 12px 2.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.search-container input:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 36px rgba(168, 85, 247, 0.25), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.search-container::before {
    content: "🔍";
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0.6;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
    color: white;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.25);
}

/* Desktop Projects Grid - Compact Stacked Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
    max-width: 100%;
}

.project-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    height: auto;
    min-height: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
    scale: none;
}

.project-card.whitelisted {
    background: rgba(168, 85, 247, 0.05);
    border-color: rgba(168, 85, 247, 0.1);
}

.project-card.whitelisted:hover {
    background: rgba(168, 85, 247, 0.08);
}

.project-header {
    display: none;
}

.project-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    gap: 0.75rem;
}

.project-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    flex-grow: 1;
    min-width: 0;
}

.project-pfp {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-details {
    flex-grow: 1;
    overflow: hidden;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-details h3 {
    margin: 0;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.project-description {
    display: none;
}

.whitelist-toggle {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    gap: 0.5rem;
    flex-shrink: 0;
}

.whitelist-status {
    display: none;
}

.toggle-switch {
    width: 50px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    position: relative;
    transition: background 0.3s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch.active {
    background: #8b5cf6;
}

.toggle-switch.active::after {
    transform: translateX(20px);
}

/* Export Section */
.export-section {
    text-align: center;
    padding: 1rem 0;
}

.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(139, 92, 246, 0.08));
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

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

.export-btn:hover::before {
    left: 100%;
}

.export-btn:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(139, 92, 246, 0.15));
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.25), 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Loading state */
.projects-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #e2e8f0;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 0.5rem 0;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design - Mobile Styles */
@media (max-width: 768px) {
    .whitelist-header h1 {
        font-size: 2rem;
    }
    
    .back-button {
        position: static;
        margin-bottom: 1rem;
        justify-content: center;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    
    .whitelist-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .controls-section {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .search-container {
        width: 100%;
        max-width: 400px;
    }
    
    /* Mobile-specific adjustments only */
    .project-card {
        padding: 0.5rem;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
        cursor: pointer;
        transition: transform 0.1s ease, box-shadow 0.2s ease;
    }
    
    .project-card:active {
        transform: scale(0.98);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .project-pfp {
        width: 45px;
        height: 45px;
    }
    
    .toggle-switch {
        width: 45px;
        height: 28px;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
        min-height: 28px;
        min-width: 45px;
    }
    
    .toggle-switch::after {
        width: 24px;
        height: 24px;
    }
    
    .toggle-switch.active::after {
        transform: translateX(21px);
    }
    
    .filter-btn {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
        min-height: 44px;
        min-width: 44px;
        transition: transform 0.1s ease;
    }
    
    .filter-btn:active {
        transform: scale(0.95);
    }
    
    .back-button {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Mobile stats redesign */
    .whitelist-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .stat-card {
        padding: 0.75rem;
        border-radius: 12px;
    }

    .stat-number, .stat-percentage {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 0.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
        font-weight: 500;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .whitelist-header h1 {
        font-size: 1.75rem;
    }
    
    .whitelist-header p {
        font-size: 1rem;
    }
    
    .stat-number, .stat-percentage {
        font-size: 2rem;
    }
    
    .back-button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    /* Small mobile adjustments only */
    .project-card {
        padding: 0.4rem;
    }
    
    .project-pfp {
        width: 40px;
        height: 40px;
    }
    
    .project-details h3 {
        font-size: 0.9rem;
    }
    
    .toggle-switch {
        width: 40px;
        height: 24px;
        min-height: 24px;
        min-width: 40px;
    }
    
    .toggle-switch::after {
        width: 20px;
        height: 20px;
    }
    
    .toggle-switch.active::after {
        transform: translateX(16px);
    }
}



/* Ultra-small mobile stats */
@media (max-width: 480px) {
    .whitelist-stats {
        gap: 0.5rem;
        padding: 0;
    }

    .stat-card {
        padding: 0.5rem;
    }

    .stat-number, .stat-percentage {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }
}


