/* Supa Drop Styles */

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --error-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.logo h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Navigation */
.navigation {
    padding: 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.date-tabs, .tld-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.tld-tabs {
    margin-bottom: 0;
}

.date-tab, .tld-tab {
    padding: 10px 24px;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
}

.date-tab:hover, .tld-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.date-tab.active, .tld-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Main Content */
main {
    min-height: 500px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* Error */
.error {
    background: #fee2e2;
    color: var(--error-color);
    padding: 16px;
    margin: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--error-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state .hint {
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Domain List */
.domain-list {
    padding: 20px;
}

.domain-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.domain-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.domain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.domain-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.domain-score {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
}

.domain-scores {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.domain-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.score-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.score-value {
    color: var(--text-primary);
    font-weight: 700;
}

.domain-reason {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
    font-style: italic;
}

.domain-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-primary:disabled {
    background: var(--border-color);
    cursor: not-allowed;
}

.availability-status {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.availability-status.available {
    background: #d1fae5;
    color: var(--success-color);
}

.availability-status.registered {
    background: #fee2e2;
    color: var(--error-color);
}

.availability-status.checking {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.domain-price {
    padding: 6px 12px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-left: 8px;
}

.premium-badge {
    padding: 4px 10px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
    text-transform: uppercase;
}

.btn-buy {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    margin-left: 8px;
    text-decoration: none;
    display: inline-block;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
}

/* Favorite Button */
.btn-favorite {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: transform 0.2s;
    margin-right: 8px;
}

.btn-favorite:hover {
    transform: scale(1.2);
}

.btn-favorite.favorited {
    animation: heartbeat 0.3s ease-in-out;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Section Headers */
.section-header {
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 700;
}

.section-header:first-child {
    margin-top: 0;
}

.favorites-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.copy-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .date-tabs, .tld-tabs {
        flex-wrap: wrap;
    }
    
    .domain-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .domain-scores {
        flex-direction: column;
        gap: 8px;
    }
    
    .domain-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
}
