/* Dataset Viewer - Gaming Style */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: white;
}

.container {
    max-width: 1200px;
    width: 100%;
    padding: 40px;
    margin: 0 auto;
}

/* Auth */
.auth-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    align-items: center;
}

#user-button {
    /* Clerk will style this */
}

.admin-link {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.admin-link:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    transform: translateY(-2px);
}

/* Header */
h1 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.subtitle {
    text-align: center;
    color: rgba(255,255,255,0.7);
    margin-bottom: 60px;
    font-size: 18px;
}

/* Models Grid */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.model-card {
    background: rgba(30, 30, 46, 0.9);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    border: 2px solid rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    display: block;
}

.model-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(102, 126, 234, 0.8);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.emoji {
    font-size: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.model-card h2 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.model-card p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: rgba(255,255,255,0.6);
    font-size: 18px;
}

/* Error */
.error {
    text-align: center;
    padding: 40px;
    color: #ff3d6f;
    font-size: 18px;
}

/* Viewer Page Styles */
.header {
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-btn {
    background: rgba(102, 126, 234, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid rgba(102, 126, 234, 0.4);
}

.back-btn:hover {
    background: rgba(102, 126, 234, 0.4);
    transform: scale(1.05);
}

.header h1 {
    font-size: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Like Button */
.like-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.like-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 61, 111, 0.3);
    border-color: #ff3d6f;
}

.like-btn.liked {
    background: rgba(255, 61, 111, 0.9);
    border-color: #ff3d6f;
    animation: likeAnimation 0.3s;
}

.like-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3d6f;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

@keyframes likeAnimation {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
