/* Custom styles to complement Tailwind CSS */

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

/* Custom gradient text */
.gradient-text {
    background: linear-gradient(to right, #10b981, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.server-card {
    transition: all 0.3s ease;
}

.server-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button hover effects */
.btn-primary {
    background: linear-gradient(to right, #059669, #2563eb);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(to right, #047857, #1d4ed8);
    transform: translateY(-1px);
}

/* Loading animation */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive container */
.container {
    max-width: 1200px;
}

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

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

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

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

/* Dropdown styling fixes */
select {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #374151 !important;
}

select option {
    background-color: #000000 !important;
    color: #ffffff !important;
}

select:focus {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
}

/* Fix for webkit browsers */
select::-webkit-scrollbar {
    width: 8px;
}

select::-webkit-scrollbar-track {
    background: #000000;
}

select::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

/* Focus styles */
input:focus,
select:focus,
button:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Animation for mobile menu */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Star rating */
.star-filled {
    color: #fbbf24;
    fill: currentColor;
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-secondary {
    background-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-outline {
    background-color: transparent;
    color: #d1d5db;
    border: 1px solid #6b7280;
}

.badge-beginner {
    background-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Server logo styles */
.server-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #374151;
}

/* Responsive text */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
}

/* Backdrop blur fallback */
@supports not (backdrop-filter: blur(12px)) {
    .backdrop-blur-sm {
        background-color: rgba(0, 0, 0, 0.8);
    }
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Grid responsive adjustments */
@media (max-width: 640px) {
    .grid-responsive {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .grid-responsive {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .grid-responsive {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Loading spinner */
.spinner {
    border: 2px solid #374151;
    border-top: 2px solid #10b981;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* Badge styles */
.badge {
    @apply inline-flex items-center px-2 py-1 rounded-full text-xs font-medium;
}

.badge-verified {
    @apply bg-green-600 text-white;
}

.badge-top-pick {
    @apply bg-blue-600 text-white;
}

.badge-secondary {
    @apply bg-gray-700 text-gray-300;
}

.badge-outline {
    @apply border border-gray-600 text-gray-300;
}

.badge-beginner {
    @apply bg-green-600 text-white;
}

/* Enhanced dropdown styling */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px !important;
}

/* Force black background for all select elements */
select, 
select:focus, 
select:active,
select:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #374151 !important;
}

/* Ensure options are black with white text */
select option {
    background-color: #000000 !important;
    color: #ffffff !important;
    padding: 8px 12px;
}

/* Firefox specific fixes */
@-moz-document url-prefix() {
    select {
        background-color: #000000 !important;
        color: #ffffff !important;
    }
    
    select option {
        background-color: #000000 !important;
        color: #ffffff !important;
    }
}

/* Webkit specific fixes */
select::-webkit-scrollbar {
    width: 8px;
    background-color: #000000;
}

select::-webkit-scrollbar-thumb {
    background-color: #4b5563;
    border-radius: 4px;
}

/* Additional form styling */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
textarea {
    background-color: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid #374151 !important;
    color: #ffffff !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus {
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-color: #10b981 !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af !important;
}

/* Checkbox styling */
input[type="checkbox"] {
    background-color: #000000 !important;
    border: 1px solid #374151 !important;
}

input[type="checkbox"]:checked {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
}

