/**
 * Airdrop Crypto Widget Styles
 * Matches the screenshot design exactly
 */

/* ========================================
   WIDGET CONTAINER
   ======================================== */
.amp-crypto-widget-container {
    width: 350px;
    max-width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ========================================
   WIDGET HEADER
   ======================================== */
.amp-crypto-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.amp-crypto-widget-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.amp-crypto-submit-btn {
    padding: 6px 16px;
    background: #3b82f6;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid #3b82f6;
}

.amp-crypto-submit-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
}

/* ========================================
   LIST HEADER
   ======================================== */
.amp-crypto-list-header {
    display: grid;
    grid-template-columns: 1fr 60px 50px;
    gap: 12px;
    padding: 12px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.amp-crypto-col-name {
    text-align: left;
}

.amp-crypto-col-ends {
    text-align: center;
}

.amp-crypto-col-link {
    text-align: center;
}

/* ========================================
   AIRDROP ITEMS
   ======================================== */
.amp-crypto-widget-list {
    max-height: none;
}

.amp-crypto-item {
    display: grid;
    grid-template-columns: 1fr 60px 50px;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #f3f4f6;
    align-items: center;
    transition: background 0.2s ease;
}

.amp-crypto-item:hover {
    background: #f9fafb;
}

.amp-crypto-item:last-child {
    border-bottom: none;
}

/* ========================================
   ITEM NAME SECTION
   ======================================== */
.amp-crypto-item-name {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.amp-crypto-logo {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
}

.amp-crypto-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amp-crypto-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    overflow: hidden;
}

.amp-crypto-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amp-crypto-token {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
}

/* ========================================
   COUNTDOWN
   ======================================== */
.amp-crypto-item-ends {
    display: flex;
    justify-content: center;
    align-items: center;
}

.amp-crypto-countdown {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
}

/* ========================================
   LINK ICON
   ======================================== */
.amp-crypto-item-link {
    display: flex;
    justify-content: center;
    align-items: center;
}

.amp-crypto-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #3b82f6;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.amp-crypto-link-icon:hover {
    background: #eff6ff;
    color: #2563eb;
}

.amp-crypto-link-icon svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   WIDGET FOOTER
   ======================================== */
.amp-crypto-widget-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.amp-crypto-view-all {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: #ffffff;
    color: #ef4444;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.amp-crypto-view-all:hover {
    background: #ef4444;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* ========================================
   NO DATA STATE
   ======================================== */
.amp-crypto-no-data {
    padding: 40px 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 480px) {
    .amp-crypto-widget-container {
        width: 100%;
    }
    
    .amp-crypto-widget-header {
        padding: 14px 16px;
    }
    
    .amp-crypto-widget-title {
        font-size: 16px;
    }
    
    .amp-crypto-submit-btn {
        padding: 5px 14px;
        font-size: 12px;
    }
    
    .amp-crypto-list-header,
    .amp-crypto-item {
        padding: 12px 16px;
        grid-template-columns: 1fr 55px 45px;
    }
    
    .amp-crypto-name {
        font-size: 13px;
    }
    
    .amp-crypto-token {
        font-size: 11px;
    }
    
    .amp-crypto-countdown {
        font-size: 12px;
    }
    
    .amp-crypto-link-icon {
        width: 28px;
        height: 28px;
    }
    
    .amp-crypto-link-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* ========================================
   SIDEBAR WIDGET WRAPPER
   ======================================== */
.widget.amp-crypto-widget {
    margin-bottom: 30px;
}

.widget.amp-crypto-widget .widget-title {
    display: none; /* Hide default widget title */
}
