/* ========================================
   ADMIN PAGE - MOBILE-FIRST OPTIMIZATION
   ======================================== */

.admin-container-new {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* ========================================
   ADMIN HEADER
   ======================================== */

.admin-header-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.1),
        rgba(236, 72, 153, 0.05));
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    gap: 16px;
}

.admin-header-content {
    flex: 1;
}

.admin-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
}

.admin-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.admin-header-icon {
    font-size: 32px;
    opacity: 0.6;
}

/* ========================================
   TAB NAVIGATION
   ======================================== */

.admin-tabs-new {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-tabs-new::-webkit-scrollbar {
    height: 4px;
}

.admin-tabs-new::-webkit-scrollbar-track {
    background: transparent;
}

.admin-tabs-new::-webkit-scrollbar-thumb {
    background-color: rgba(139, 92, 246, 0.3);
    border-radius: 2px;
}

.admin-tab-btn-new {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.admin-tab-btn-new:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
}

.admin-tab-btn-new.active {
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.admin-tab-btn-new svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   CONTENT AREA
   ======================================== */

.admin-content-new {
    flex: 1;
    padding: 20px 16px;
    overflow-y: auto;
}

.admin-tab-content-new {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.admin-tab-content-new.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SECTION STYLING
   ======================================== */

.admin-section-new {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-title-new {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-title-new h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.3px;
}

.section-title-new p {
    font-size: 12px;
    color: var(--text-tertiary);
    margin: 0;
}

/* ========================================
   ADMIN CARDS GRID
   ======================================== */

.admin-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* ========================================
   ADMIN CARD
   ======================================== */

.admin-card {
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.08),
        rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.admin-card:hover {
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.12),
        rgba(236, 72, 153, 0.08));
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

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

.card-title {
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    font-size: 15px;
}

.card-meta {
    font-size: 12px;
    color: var(--text-tertiary);
    margin: 0;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    padding: 8px 0;
}

.card-item-label {
    color: var(--text-secondary);
}

.card-item-value {
    color: var(--text-primary);
    font-weight: 600;
}

.card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ========================================
   ACTION BUTTONS
   ======================================== */

.admin-action-btn {
    padding: 8px 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex: 1;
    min-width: 70px;
}

.admin-action-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.admin-action-btn.danger {
    color: var(--danger-color);
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
}

.admin-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.admin-action-btn.success {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
}

.admin-action-btn.success:hover {
    background: rgba(16, 185, 129, 0.2);
}

/* ========================================
   STATUS BADGES
   ======================================== */

.status-badge-new {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-verified {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-unverified {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.status-featured {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-not-featured {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.status-published {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.status-draft {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

/* ========================================
   USER AVATAR IN CARD
   ======================================== */

.card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* ========================================
   EMPTY STATE
   ======================================== */

.admin-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.admin-empty-state-icon {
    font-size: 48px;
    opacity: 0.5;
}

.admin-empty-state p {
    font-size: 14px;
    margin: 0;
}

/* ========================================
   TABLET LAYOUT (481px - 768px)
   ======================================== */

@media (min-width: 481px) and (max-width: 768px) {
    .admin-header-new {
        padding: 24px 20px;
    }

    .admin-tabs-new {
        padding: 12px 20px;
        gap: 12px;
    }

    .admin-content-new {
        padding: 24px 20px;
    }

    .admin-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .admin-title {
        font-size: 28px;
    }
}

/* ========================================
   DESKTOP LAYOUT (769px and up)
   ======================================== */

@media (min-width: 769px) {
    .admin-header-new {
        padding: 32px 40px;
    }

    .admin-tabs-new {
        padding: 16px 40px;
        gap: 16px;
    }

    .admin-content-new {
        padding: 32px 40px;
        max-width: 1400px;
        margin: 0 auto;
    }

    .admin-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 16px;
    }

    .admin-title {
        font-size: 32px;
    }

    .admin-card {
        padding: 20px;
    }

    .card-actions {
        gap: 10px;
    }

    .admin-action-btn {
        flex: 0 1 auto;
        min-width: 80px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .admin-card,
    .admin-tab-btn-new,
    .admin-action-btn,
    .admin-tab-content-new {
        transition: none;
    }

    .admin-card:hover,
    .admin-tab-btn-new:hover,
    .admin-action-btn:hover {
        transform: none;
    }
}

/* Focus styles for keyboard navigation */
.admin-tab-btn-new:focus-visible,
.admin-action-btn:focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
}
