/**
 * Simple Airdrop Grid - White Theme
 * Clean, minimal design for mobile
 */

/* ========================================
   RESET & FORCE PROPER DISPLAY
   ======================================== */
.amp-simple-grid-wrapper,
.amp-simple-grid-wrapper * {
    box-sizing: border-box;
}

.amp-simple-grid-wrapper ul,
.amp-simple-grid-wrapper ol {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ========================================
   WRAPPER
   ======================================== */
.amp-simple-grid-wrapper {
    background: #ffffff;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ========================================
   GRID
   ======================================== */
.amp-simple-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

/* Force grid layout */
.amp-simple-grid > * {
    display: block !important;
}

/* ========================================
   CARD
   ======================================== */
.amp-simple-card {
    background: #123962 !important;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease;
    cursor: pointer;
    will-change: transform;
    min-height: 280px;
}

.amp-simple-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(18, 57, 98, 0.3);
    background: #1a4a7a !important;
}

.amp-simple-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 57, 98, 0.2);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* Header */
.amp-simple-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.amp-simple-logo img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.amp-simple-info {
    flex: 1;
    min-width: 0;
}

.amp-simple-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amp-simple-meta {
    font-size: 13px;
    color: #a0aec0;
    margin: 0;
}

.amp-simple-social {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.amp-simple-social a {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
}

.amp-simple-social a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.15) rotate(5deg);
}

.amp-simple-social a:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Details */
.amp-simple-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.amp-simple-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 12px;
    color: #e2e8f0;
    transition: all 0.2s ease;
}

.amp-simple-card:hover .amp-simple-detail-item {
    background: rgba(255, 255, 255, 0.08);
}

.amp-detail-icon {
    font-size: 14px;
}

/* Status */
.amp-simple-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 13px;
    color: #e2e8f0;
    margin-bottom: 12px;
}

.amp-status-icon {
    font-size: 14px;
}

/* Description */
.amp-simple-description {
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-size: 13px;
    color: #cbd5e0;
    line-height: 1.6;
    min-height: 60px;
    max-height: 80px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.amp-simple-card:hover .amp-simple-description {
    background: rgba(0, 0, 0, 0.35);
}

/* Overlay Link */
.amp-simple-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: pointer;
}

/* ========================================
   PAGINATION
   ======================================== */
.amp-simple-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px;
}

.amp-simple-pagination a,
.amp-simple-pagination span {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #dee2e6;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.amp-simple-pagination a:hover {
    background: #3a4556;
    color: #ffffff;
    border-color: #3a4556;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.amp-simple-pagination a:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.amp-simple-pagination .current {
    background: #3a4556;
    color: #ffffff;
    border-color: #3a4556;
    pointer-events: none;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.amp-simple-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.amp-simple-empty p {
    font-size: 16px;
    margin: 0;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 1024px) {
    .amp-simple-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
    .amp-simple-grid-wrapper {
        padding: 12px;
    }
    
    .amp-simple-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .amp-simple-card {
        padding: 16px;
        display: block !important;
    }
    
    /* Mobile touch feedback */
    .amp-simple-card:active {
        transform: scale(0.98);
        background: #1a4a7a !important;
    }
    
    .amp-simple-logo img {
        width: 40px;
        height: 40px;
    }
    
    .amp-simple-title {
        font-size: 15px;
    }
    
    /* KEEP social icons visible on mobile */
    .amp-simple-social {
        display: flex !important;
        gap: 6px;
    }
    
    .amp-simple-social a {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    
    .amp-simple-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .amp-simple-description {
        padding: 12px;
        font-size: 12px;
        min-height: 50px;
        max-height: 70px;
        -webkit-line-clamp: 2;
    }
    
    /* Pagination mobile */
    .amp-simple-pagination a,
    .amp-simple-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .amp-simple-pagination a:active {
        transform: scale(0.95);
    }
}

/* ========================================
   SMALL MOBILE
   ======================================== */
@media (max-width: 480px) {
    .amp-simple-grid-wrapper {
        padding: 8px;
    }
    
    .amp-simple-card {
        padding: 12px;
    }
    
    .amp-simple-logo img {
        width: 36px;
        height: 36px;
    }
    
    .amp-simple-title {
        font-size: 14px;
    }
    
    .amp-simple-meta {
        font-size: 12px;
    }
}

/* ========================================
   ANIMATIONS - REMOVED FADE-IN
   ======================================== */
/* Fade-in removed to prevent broken card flicker on page load */

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for keyboard navigation */
.amp-simple-card:focus-within {
    outline: 2px solid #0066ff;
    outline-offset: 2px;
}

.amp-simple-social a:focus {
    outline: 2px solid #0066ff;
    outline-offset: 2px;
}
