
/* Utility */
.hidden {
    display: none !important;
}

/* ============================================
   Auth & User Profile
   ============================================ */
.nav-btn {
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    height: 34px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--primary);
}

.user-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.5rem;
    min-width: 150px;
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.user-profile:hover .user-dropdown {
    display: flex;
}

.user-dropdown button {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 0.5rem;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
}

.user-dropdown button:hover {
    background: var(--bg-elevated);
    color: var(--primary);
}

/* Auth Modal Specifics */
.auth-content {
    max-width: 400px;
}

.auth-body {
    padding: 0 1.5rem 1.5rem;
}

.auth-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.social-btn {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--text-muted);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 0.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.full-width {
    width: 100%;
    margin-top: 1rem;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

/* Like Button */
.like-btn {
    width: 50px;
    color: var(--text-muted);
    transition: var(--transition);
}

.like-btn:hover {
    color: #ef4444; /* Red-500 */
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.like-btn.liked {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.like-btn.liked i {
    font-weight: 900; /* Solid heart */
}

.like-count {
    font-size: 0.8rem;
    margin-left: 4px;
}

/* ============================================
   Favorites Button (Nav)
   ============================================ */
.favorites-btn {
    position: relative;
    padding: 0.4rem 0.55rem;
    flex-shrink: 0;
}

.favorites-btn i {
    font-size: 0.9rem;
}

.favorites-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Save/Bookmark Button
   ============================================ */
.save-btn {
    width: 40px;
    color: var(--text-muted);
    transition: var(--transition);
}

.save-btn:hover {
    color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

.save-btn.saved {
    color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

/* ============================================
   Creator Credits
   ============================================ */
.card-info-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.creator-credit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.creator-credit:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

.creator-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.creator-name {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   Favorites Modal
   ============================================ */
.favorites-content {
    max-width: 800px;
    max-height: 80vh;
}

.favorites-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 60vh;
}

.favorites-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.favorites-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.favorites-empty p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.favorites-empty span {
    font-size: 0.9rem;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.favorite-item {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.favorite-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.favorite-preview {
    height: 100px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.favorite-shadow-host {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-info {
    padding: 0.75rem;
}

.favorite-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.favorite-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0 0.75rem 0.75rem;
}

.fav-action-btn {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fav-action-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--primary);
    color: var(--primary);
}

.fav-action-btn.remove-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}
