/* ================================
   FAVORITES PAGE - MODERN DESIGN
   ================================ */

/* Modern Breadcrumb */
.modern-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    margin-bottom: 20px;
    font-size: 14px;
    animation: fadeInDown 0.6s ease-out;
}

.modern-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.modern-breadcrumb a:hover {
    color: white;
}

.modern-breadcrumb i {
    font-size: 12px;
    opacity: 0.6;
}

.modern-breadcrumb span {
    color: white;
    font-weight: 600;
}

.dark-mode .modern-breadcrumb a {
    color: #94a3b8;
}

.dark-mode .modern-breadcrumb a:hover {
    color: #818cf8;
}

.dark-mode .modern-breadcrumb span {
    color: #818cf8;
}

/* Hero Section */
.favorites-hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0 60px;
    margin-bottom: 60px;
    overflow: hidden;
}

.dark-mode .favorites-hero {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: pulse 2s infinite;
}

.hero-icon i {
    font-size: 36px;
    color: white;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 24px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.stat-item i {
    font-size: 18px;
}

/* Animated Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -100px;
    animation-delay: 7s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 10%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Favorites Container */
.favorites-container {
    padding: 20px 0 60px;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 24px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.1);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-state p {
    color: #64748b;
    font-size: 16px;
    font-weight: 500;
}

.dark-mode .loading-state p {
    color: #94a3b8;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    animation: pulse 2s infinite;
}

.empty-icon i {
    font-size: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.empty-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.dark-mode .empty-title {
    color: #f1f5f9;
}

.empty-description {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 32px;
}

.dark-mode .empty-description {
    color: #94a3b8;
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-explore:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-explore i {
    font-size: 18px;
}

/* Favorites Grid */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    padding: 20px 0;
}

/* Favorite Card */
.favorite-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: cardFadeIn 0.6s ease-out both;
}

.dark-mode .favorite-card {
    background: #1e293b;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.favorite-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.dark-mode .favorite-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

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

/* Remove Favorite Button */
.remove-favorite {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 75, 145, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.remove-favorite i {
    color: #ff4b91;
    font-size: 18px;
    transition: all 0.3s ease;
}

.remove-favorite:hover {
    background: #ff4b91;
    transform: scale(1.1);
}

.remove-favorite:hover i {
    color: white;
}

/* Tool Image */
.tool-image {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.dark-mode .tool-image {
    background: linear-gradient(135deg, #334155, #475569);
}

.tool-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tool Info */
.tool-info {
    margin-bottom: 16px;
}

.tool-name {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
}

.dark-mode .tool-name {
    color: #f1f5f9;
}

.tool-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
}

.dark-mode .tool-category {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.15), rgba(167, 139, 250, 0.15));
    color: #818cf8;
}

.tool-category i {
    font-size: 11px;
}

/* Tool Description */
.tool-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark-mode .tool-description {
    color: #94a3b8;
}

/* Tool Meta */
.tool-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.dark-mode .tool-meta {
    border-top-color: #334155;
}

.tool-rating,
.tool-users {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.dark-mode .tool-rating,
.dark-mode .tool-users {
    color: #cbd5e1;
}

.tool-rating i {
    color: #fbbf24;
}

.tool-users i {
    color: #667eea;
}

/* View Tool Button */
.btn-view-tool {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-view-tool:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-view-tool i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-view-tool:hover i {
    transform: translateX(4px);
}

/* Notification */
.notification {
    position: fixed;
    bottom: 32px;
    right: 32px;
    padding: 16px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-success {
    color: #059669;
}

.notification-error {
    color: #dc2626;
}

.notification-info {
    color: #667eea;
}

.notification i {
    font-size: 18px;
}

.dark-mode .notification {
    background: #1e293b;
    color: #f1f5f9;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .favorites-hero {
        padding: 60px 0 40px;
    }

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

    .hero-description {
        font-size: 16px;
    }

    .favorites-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .favorite-card {
        padding: 20px;
    }
}.favorites-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ff7eb3, #ffcc68);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark-mode .favorites-title {
  color: #fff;
}

.favorites-description {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.dark-mode .favorites-description {
  color: #bbb;
}

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

.favorite-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.dark-mode .favorite-card {
  background: rgba(30, 30, 30, 0.8);
  border-color: rgba(255, 255, 255, 0.05);
}

.favorite-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.remove-favorite {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.dark-mode .remove-favorite {
  background: rgba(40, 40, 40, 0.9);
}

.remove-favorite svg {
  width: 18px;
  height: 18px;
  fill: #ff7eb3;
  transition: all 0.3s ease;
}

.remove-favorite:hover {
  transform: scale(1.1);
  background: #ff7eb3;
}

.remove-favorite:hover svg {
  fill: white;
}

.favorite-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.favorite-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.favorite-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.dark-mode .favorite-title {
  color: #fff;
}

.favorite-description {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.dark-mode .favorite-description {
  color: #bbb;
}

.favorite-stats {
  display: flex;
  gap: 15px;
  margin: 15px 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
}

.dark-mode .favorite-stats {
  background: rgba(40, 40, 40, 0.5);
}

.favorite-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-value {
  font-weight: 700;
  color: #ff7eb3;
}

.stat-label {
  font-size: 0.8rem;
  color: #666;
}

.dark-mode .stat-label {
  color: #bbb;
}

.favorite-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.favorite-button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.primary-action {
  background: linear-gradient(135deg, #ff7eb3, #ffcc68);
  color: white;
}

.secondary-action {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .secondary-action {
  background: rgba(40, 40, 40, 0.9);
  color: white;
  border-color: rgba(255, 255, 255, 0.1);
}

.favorite-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 126, 179, 0.2);
}

.no-favorites {
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  margin: 20px;
}

.dark-mode .no-favorites {
  background: rgba(30, 30, 30, 0.8);
}

.no-favorites h3 {
  color: #333;
  margin-bottom: 15px;
}

.dark-mode .no-favorites h3 {
  color: #fff;
}

.no-favorites p {
  color: #666;
  margin-bottom: 20px;
}

.dark-mode .no-favorites p {
  color: #bbb;
}

.explore-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff7eb3, #ffcc68);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.explore-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 126, 179, 0.3);
  color: white;
}