/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #f0f4f8;
    line-height: 1.6;
    min-height: 100vh;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(64, 224, 208, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    color: #00ffff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    background: linear-gradient(45deg, #00ffff, #40e0d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    color: #b8c5d1;
    font-size: 0.9rem;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: #f0f4f8;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav a:hover {
    color: #00ffff;
    background: rgba(0, 255, 255, 0.15);
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.1) 0%, rgba(26, 26, 46, 0.8) 100%);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00ffff, #40e0d0, #00bcd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.4)); }
    to { filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.8)); }
}

.hero p {
    font-size: 1.2rem;
    color: #c8d6e5;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.search-bar {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(64, 224, 208, 0.3);
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: #f0f4f8;
    font-size: 1rem;
    outline: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.search-bar input::placeholder {
    color: #b8c5d1;
    text-shadow: none;
}

.search-bar button {
    background: linear-gradient(135deg, #40e0d0, #00bcd4);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-bar button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.4);
}

/* Filters Section */
.filters {
    padding: 2rem 0;
    background: rgba(15, 15, 35, 0.5);
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.4);
    color: #f0f4f8;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #00ffff, #40e0d0);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Airdrops Section */
.airdrops {
    padding: 4rem 0;
}

.airdrops h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    background: linear-gradient(45deg, #00ffff, #40e0d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.airdrop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.airdrop-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(64, 224, 208, 0.2);
    border-radius: 8px;
    padding: 0.6rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    max-width: 220px;
}

.airdrop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #40e0d0, #00bcd4);
}

.airdrop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(64, 224, 208, 0.2);
    border-color: rgba(64, 224, 208, 0.5);
}

.airdrop-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.airdrop-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #40e0d0, #00bcd4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    overflow: hidden;
}

.airdrop-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.airdrop-title {
    flex: 1;
}

.airdrop-title h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    color: #f0f4f8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    font-weight: 600;
}

.airdrop-category {
    background: rgba(0, 255, 255, 0.25);
    color: #00ffff;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.airdrop-description {
    color: #c8d6e5;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 400;
    font-size: 0.75rem;
}

.airdrop-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.detail-item {
    background: rgba(64, 224, 208, 0.1);
    padding: 0.3rem;
    border-radius: 4px;
    text-align: center;
    border: 1px solid rgba(64, 224, 208, 0.2);
}

.detail-label {
    font-size: 0.6rem;
    color: #40e0d0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.1rem;
    font-weight: 600;
}

.detail-value {
    font-size: 0.7rem;
    color: #f0f4f8;
    font-weight: 500;
}

.airdrop-actions {
    display: flex;
    gap: 0.6rem;
}

.btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #40e0d0, #00bcd4);
    color: white;
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #00ffff;
    border: 1px solid #00ffff;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    font-size: 0.7rem;
}

.btn-secondary:hover {
    background: rgba(0, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* Guide Section */
.guide {
    padding: 4rem 0;
    background: rgba(15, 15, 35, 0.3);
}

.guide h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    background: linear-gradient(45deg, #00ffff, #40e0d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.guide-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(64, 224, 208, 0.2);
    transition: all 0.3s ease;
}

.guide-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(64, 224, 208, 0.1);
}

.guide-item h4 {
    color: #00ffff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    font-weight: 600;
}

.guide-item i {
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    background: rgba(15, 15, 35, 0.9);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(64, 224, 208, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #00ffff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #b8c5d1;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-section a:hover {
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.4);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.social-links a:hover {
    background: rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    color: #b8c5d1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-width: auto;
    }
    
    .airdrop-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.6rem;
    }
    
    .airdrop-details {
        grid-template-columns: 1fr;
    }
    
    .airdrop-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .airdrop-card {
        padding: 0.6rem;
        max-width: 100%;
    }
    
    .airdrop-logo {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .airdrop-header {
        gap: 0.6rem;
        margin-bottom: 0.6rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .airdrop-card {
        padding: 0.8rem;
    }
    
    .guide {
        padding: 2rem 0;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
}

/* Loading animations removed to prevent loading issues */

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

body {
    overflow-x: hidden;
    overflow-y: auto;
}

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

::-webkit-scrollbar-track {
    background: rgba(15, 15, 35, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #40e0d0, #00bcd4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00bcd4, #40e0d0);
}

/* Enhanced Select Styles */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.enhanced-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
    border: 2px solid rgba(64, 224, 208, 0.3);
    border-radius: 12px;
    padding: 12px 45px 12px 15px;
    font-size: 16px;
    color: #f0f4f8;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.enhanced-select:hover {
    border-color: rgba(64, 224, 208, 0.6);
    box-shadow: 0 6px 20px rgba(64, 224, 208, 0.2);
    transform: translateY(-2px);
}

.enhanced-select:focus {
    outline: none;
    border-color: #40e0d0;
    box-shadow: 0 0 0 3px rgba(64, 224, 208, 0.2), 0 6px 20px rgba(64, 224, 208, 0.3);
    transform: translateY(-2px);
}

.enhanced-select option {
    background: #1a1a2e;
    color: #f0f4f8;
    padding: 10px;
    border-radius: 8px;
    margin: 2px 0;
}

.enhanced-select option:hover {
    background: rgba(64, 224, 208, 0.2);
}

.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #40e0d0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.custom-select-wrapper:hover .select-arrow {
    color: #00ffff;
    transform: translateY(-50%) scale(1.1);
}

.enhanced-select:focus + .select-arrow {
    color: #00ffff;
    transform: translateY(-50%) rotate(180deg);
}

/* Category Filter Buttons */
.category-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
    background: rgba(15, 15, 35, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(64, 224, 208, 0.2);
}

.filter-btn {
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.1) 0%, rgba(0, 188, 212, 0.1) 100%);
    border: 1px solid rgba(64, 224, 208, 0.3);
    color: #f0f4f8;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.filter-btn:hover {
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.2) 0%, rgba(0, 188, 212, 0.2) 100%);
    border-color: rgba(64, 224, 208, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 224, 208, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, #40e0d0 0%, #00bcd4 100%);
    border-color: #40e0d0;
    color: #0f0f23;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.4);
}

/* Category Preview */
.category-preview {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(64, 224, 208, 0.1);
    border-radius: 8px;
    border-left: 3px solid #40e0d0;
}

.preview-text {
    font-size: 14px;
    color: #b8c5d1;
}

#categoryPreview {
    color: #40e0d0;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(64, 224, 208, 0.3);
}

/* Select Animation Effects */
@keyframes selectGlow {
    0% { box-shadow: 0 0 5px rgba(64, 224, 208, 0.3); }
    50% { box-shadow: 0 0 20px rgba(64, 224, 208, 0.6); }
    100% { box-shadow: 0 0 5px rgba(64, 224, 208, 0.3); }
}

.enhanced-select.selected {
    animation: selectGlow 2s ease-in-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: manipulation;
        height: 100%;
    }
    
    body {
        position: relative;
        width: 100%;
        max-width: 100vw;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        overflow-x: hidden;
    }
    
    .category-filter-buttons {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: hidden;
    }
    
    .filter-btn {
        font-size: 11px;
        padding: 5px 10px;
        margin: 2px;
    }
    
    .enhanced-select {
        font-size: 14px;
        padding: 10px 40px 10px 12px;
        width: 100%;
        max-width: 100%;
    }
    
    .airdrop-grid {
        overflow-x: hidden;
    }
    
    .airdrop-card {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
}