/* Main styles */
.main {
  min-height: 100vh;
}

/* Header styles */
.prof-header {
  background: #fff;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.search-box {
  display: flex;
  align-items: center;
  background: #f0f2f5;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  width: 400px;
}

.search-box i {
  color: #666;
  margin-right: 0.8rem;
}

.search-box input {
  border: none;
  background: none;
  outline: none;
  width: 100%;
  font-size: 1rem;
  color: #1a1a1a;
}

.search-box input::placeholder {
  color: #666;
}

/* Container layout */
.prof-container {
  max-width: 1400px;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  padding: 0 2rem;
}

/* Sidebar styles */
.sidebar {
  background: #fff;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-section h3 {
  font-size: 1.1rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0f2f5;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  display: flex;
  align-items: center;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.category-list li i {
  font-size: 1.2rem;
  color: #666;
  margin-right: 1rem;
}

.category-list li span {
  color: #1a1a1a;
  font-weight: 500;
}

.category-list li .count {
  margin-left: auto;
  background: #f0f2f5;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: #666;
}

.category-list li:hover {
  background: #f0f2f5;
}

.category-list li.active {
  background: #e3f2fd;
  color: #1976d2;
}

.category-list li.active i,
.category-list li.active span {
  color: #1976d2;
}

/* Recent items */
.recent-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recent-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: 10px;
  background: #f0f2f5;
  transition: all 0.3s ease;
  cursor: pointer;
}

.recent-item:hover {
  background: #e3f2fd;
}

.recent-icon {
  width: 45px;
  height: 45px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.recent-icon i {
  font-size: 1.2rem;
  color: #1976d2;
}

.recent-info h4 {
  margin: 0;
  font-size: 0.9rem;
  color: #1a1a1a;
}

.recent-info span {
  font-size: 0.8rem;
  color: #666;
}

/* Content area */
.content-area {
  background: #fff;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.content-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #1a1a1a;
}

.view-options {
  display: flex;
  gap: 0.5rem;
}

.view-btn {
  width: 45px;
  height: 45px;
  border: none;
  background: #f0f2f5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-btn i {
  font-size: 1.2rem;
  color: #666;
}

.view-btn:hover {
  background: #e3f2fd;
}

.view-btn.active {
  background: #1976d2;
}

.view-btn.active i {
  color: #fff;
}

/* Content grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.content-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.card-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f9fa;
}

.card-icon {
  width: 55px;
  height: 55px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.card-icon i {
  font-size: 1.5rem;
  color: #1976d2;
}

.card-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  color: #1a1a1a;
  line-height: 1.4;
}

.card-body p {
  margin: 0 0 1.5rem 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #666;
  font-size: 0.85rem;
}

.card-footer {
  padding: 1.2rem 1.5rem;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}

.download-btn,
.watch-btn,
.read-btn,
.read-more-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
}

.download-btn {
  background: #e3f2fd;
  color: #1976d2;
}

.watch-btn {
  background: #e8f5e9;
  color: #2e7d32;
}

.read-btn {
  background: #fff3e0;
  color: #f57c00;
}

.read-more-btn {
  background: #f3e5f5;
  color: #7b1fa2;
}

.download-btn:hover,
.watch-btn:hover,
.read-btn:hover,
.read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Scroll to top button */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #1976d2;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(25,118,210,0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: #1565c0;
  transform: translateY(-5px);
}

/* Responsive design */
@media (max-width: 1400px) {
  .prof-container {
    max-width: 100%;
    padding: 0 1.5rem;
  }
}

@media (max-width: 1200px) {
  .prof-container {
    grid-template-columns: 280px 1fr;
  }
  
  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 992px) {
  .prof-container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }
  
  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .search-box {
    width: 100%;
  }

  .content-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .prof-container {
    padding: 0 1rem;
  }
}
