/* ========== HOME PAGE STYLES ========== */
:root {
    --bg-primary: #0a0c12;
    --bg-card: rgba(18, 22, 35, 0.85);
    --bg-card-hover: rgba(26, 31, 48, 0.95);
    --border-color: rgba(59, 130, 246, 0.25);
    --border-hover: #3b82f6;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    --accent-red: #ef4444;
    --confirmed-bg: rgba(16, 185, 129, 0.15);
    --confirmed-border: rgba(16, 185, 129, 0.4);
    --action-bg: rgba(59, 130, 246, 0.1);
    --action-hover: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Main wrapper */
.dk-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ========== TOP AD BANNER ========== */
.top-ad-banner {
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
    position: relative;
}

.ad-link {
    display: block;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.ad-link:hover {
    transform: scale(1.01);
}

.ad-image {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.ad-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========== SPONSORSHIP SLIDER ========== */
.sponsorship-slider-container {
    max-width: 1400px;
    margin: 0 auto 2.5rem;
    padding: 0 1.5rem;
    position: relative;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.slider-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.slider-controls {
    display: flex;
    gap: 0.5rem;
}

.slider-prev, .slider-next {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--accent-blue);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.slider-prev:hover, .slider-next:hover {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.slider-wrapper {
    overflow: hidden;
    border-radius: 1rem;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-slide {
    flex: 0 0 33.333%;
    padding: 0 0.5rem;
}

.slide-link {
    display: block;
    text-decoration: none;
    background: rgba(18, 22, 35, 0.6);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.slide-link:hover {
    transform: translateY(-3px);
    border-color: var(--accent-blue);
    background: rgba(26, 31, 48, 0.8);
}

.slide-image-wrapper {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.slide-link:hover .slide-image {
    transform: scale(1.05);
}

.slide-title {
    padding: 0.75rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.slider-dot.active {
    background: var(--accent-blue);
    width: 24px;
    border-radius: 4px;
}

.slider-dot:hover {
    background: var(--accent-blue);
}

/* ========== SECTION STYLES ========== */
.dk-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dk-heading {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    padding-left: 1rem;
    border-left: 4px solid var(--accent-blue);
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Category badges */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-hot, .badge-latest, .badge-potential {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.badge-hot {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-latest {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-potential {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* View all link */
.view-all-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.1);
}

.view-all-link:hover {
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

/* Grid layout - 4 cards per row */
.dk-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ========== CARD STYLES ========== */
.airdrop-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border-radius: 1.25rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    overflow: hidden;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.airdrop-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.5);
}

.card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Project header */
.project-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.project-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
    overflow: hidden;
}

.project-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    flex: 1;
}

.project-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
    margin-bottom: 0.25rem;
}

/* Chain and TVL info */
.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.meta-item {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(107, 114, 128, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.meta-item i {
    font-size: 0.6rem;
}

/* Description */
.project-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0.75rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tags section */
.tags-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ========== STEPS SECTION ========== */
.steps-section {
    margin: 0.75rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.steps-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.steps-header i {
    font-size: 0.7rem;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.step-item i {
    color: var(--accent-blue);
    font-size: 0.7rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.step-item span {
    flex: 1;
}

.step-more {
    font-size: 0.7rem;
    color: var(--accent-blue);
    margin-top: 0.25rem;
    padding-left: 1.2rem;
    cursor: pointer;
}

/* ========== SOCIAL ICONS SECTION ========== */
.social-icons-section {
    display: flex;
    gap: 0.75rem;
    margin: 0.75rem 0;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon i {
    font-size: 0.85rem;
}

.social-icon.twitter {
    color: #1DA1F2;
    border-color: rgba(29, 161, 242, 0.3);
    background: rgba(29, 161, 242, 0.1);
}

.social-icon.twitter:hover {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
    transform: translateY(-2px);
}

.social-icon.telegram {
    color: #26A5E4;
    border-color: rgba(38, 165, 228, 0.3);
    background: rgba(38, 165, 228, 0.1);
}

.social-icon.telegram:hover {
    background: #26A5E4;
    color: white;
    border-color: #26A5E4;
    transform: translateY(-2px);
}

.no-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
}

/* ========== STATUS BADGES ========== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    width: fit-content;
    margin: 0.5rem 0;
}

.status-badge.live {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-badge.confirmed {
    background: var(--confirmed-bg);
    color: #34d399;
    border: 1px solid var(--confirmed-border);
}

.status-badge.upcoming {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.ended {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ========== ACTION BUTTON ========== */
.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--action-bg);
    color: var(--accent-blue);
    padding: 0.75rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
    width: 100%;
    margin-top: auto;
}

.action-button:hover {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.action-button i {
    font-size: 0.75rem;
}

/* Button wrapper for additional spacing control */
.button-wrapper {
    margin-top: auto;
    padding-top: 1rem;
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1.5rem;
    color: var(--text-muted);
    border: 1px dashed rgba(59, 130, 246, 0.3);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .dk-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .dk-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .dk-wrapper {
        padding: 1rem 1rem 2rem;
    }
    
    .dk-grid {
        grid-template-columns: 1fr;
    }
    
    .slider-slide {
        flex: 0 0 100%;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .social-icon {
        padding: 0.3rem 0.7rem;
        font-size: 0.7rem;
    }
    
    .social-icon i {
        font-size: 0.75rem;
    }
    
    .step-item {
        font-size: 0.75rem;
    }
    
    .project-name {
        font-size: 1rem;
    }
    
    .project-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}