/* Minimal Solid UI Styles */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
}

h1 {
    font-weight: 600;
    color: #222;
    margin-bottom: 2rem;
}

.event-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.event-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.event-card:active {
    transform: scale(0.98);
}

.event-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.event-logo {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.event-title {
    font-weight: 600;
    font-size: 1rem;
    color: #222;
    flex: 1;
}

/* Status Badges */
.status-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.live-badge {
    background: #dc3545;
    color: #fff;
    animation: pulse-live 2s infinite;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

@keyframes pulse-live {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); }
}

.upcoming-badge {
    background: #ffc107;
    color: #212529;
}

.event-info {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

.event-teams {
    font-weight: 500;
    color: #444;
}

.event-date {
    color: #888;
    margin-top: 0.25rem;
}

/* Modal Styles */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e0e0e0;
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* Links List */
.link-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.link-name-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.link-name {
    font-weight: 600;
    color: #222;
    font-size: 0.95rem;
    flex: 1;
}

.btn-copy-name {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 4px;
}

.btn-copy-name:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.btn-copy-name svg {
    width: 14px;
    height: 14px;
}

.input-group {
    margin-bottom: 0.5rem;
}

.input-group input {
    border: 1px solid #ddd;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
}

.btn-copy {
    border-left: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.link-api, .link-token {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
    font-family: 'Courier New', monospace;
}

.link-api code, .link-token code {
    background: #f0f0f0;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.75rem;
}

.btn-sm-copy {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999 !important;
    pointer-events: none;
    display: block !important;
}

.toast {
    background: #28a745 !important;
    color: #fff !important;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 220px;
    max-width: 350px;
    opacity: 0;
    transform: translateX(400px);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    margin-bottom: 0.75rem;
    position: relative;
    display: block !important;
    visibility: visible !important;
}

.toast.toast-visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
    visibility: visible !important;
}

.toast.toast-error {
    background: #dc3545;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
    animation: checkmark-pop 0.3s ease-out;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

@keyframes checkmark-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile responsive toast */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
        padding: 0.875rem 1.25rem;
    }
    
    .toast {
        transform: translateY(-100px);
    }
    
    .toast.toast-visible {
        transform: translateY(0);
    }
}

/* Search Bar */
#searchInput {
    border: 1px solid #ddd;
    padding: 0.75rem;
    font-size: 0.95rem;
}

#searchInput:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

.input-group-text {
    background: #fff;
    border: 1px solid #ddd;
    border-right: none;
    color: #666;
}

/* Category Filters */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.5rem 0;
}

.btn-filter {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-filter:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.btn-filter.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.btn-filter.active:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* Event Item Hidden State */
.event-item[style*="display: none"] {
    display: none !important;
}

/* Empty State Result */
.empty-state-result {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .event-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .category-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .category-filters::-webkit-scrollbar {
        height: 4px;
    }
    
    .category-filters::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }
    
    .category-filters::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 2px;
    }
    
    .category-filters::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}

