/* Channel Directory custom styles */

:root {
    --cd-primary: #0088cc;
    --cd-primary-dark: #006699;
    --cd-secondary: #5cb85c;
    --cd-success: #28a745;
    --cd-info: #17a2b8;
    --cd-warning: #ffc107;
    --cd-danger: #dc3545;
    --cd-light: #f8f9fa;
    --cd-dark: #343a40;
    --cd-white: #ffffff;
    --cd-gray: #6c757d;
    --cd-gray-dark: #343a40;
    --cd-gray-light: #f1f1f1;
  }
  
  body.channel-directory {
    background-color: #f8f9fa;
    color: #333;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
  }
  
  /* Header Styles */
  .cd-header {
    background-color: var(--cd-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .header-logo img {
    max-height: 50px;
  }
  
  .search-form .form-control {
    border-radius: 20px 0 0 20px;
    border: 1px solid #ddd;
    padding-left: 20px;
  }
  
  .search-form .btn {
    border-radius: 0 20px 20px 0;
    background-color: var(--cd-primary);
    border-color: var(--cd-primary);
  }
  
  .navbar-dark.bg-primary {
    background-color: var(--cd-primary) !important;
  }
  
  .navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    padding: 0.7rem 1rem;
    transition: all 0.3s ease;
  }
  
  .navbar-dark .navbar-nav .nav-link:hover,
  .navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
    background-color: rgba(0,0,0,0.1);
  }
  
  /* Category Cards */
  .category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    border: none;
    height: 100%;
  }
  
  .category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  
  .category-card .card-img-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
  }
  
  .category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--cd-primary);
  }
  
  /* Channel Cards */
  .channel-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .channel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
  }
  
  .channel-card .card-img-top {
    height: 140px;
    object-fit: cover;
  }
  
  .channel-card .channel-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    margin-top: -30px;
    position: relative;
    z-index: 1;
    background-color: #f8f9fa;
  }
  
  .channel-card .card-title {
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
  }
  
  .channel-card .channel-stats {
    font-size: 0.9rem;
    color: var(--cd-gray);
  }
  
  .channel-card .badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.3em 0.6em;
    margin-right: 0.3rem;
  }
  
  .channel-card .badge-channel {
    background-color: var(--cd-primary);
    color: white;
  }
  
  .channel-card .badge-group {
    background-color: var(--cd-secondary);
    color: white;
  }
  
  .channel-card .badge-bot {
    background-color: var(--cd-info);
    color: white;
  }
  
  .channel-card .card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 0.75rem 1.25rem;
    margin-top: auto;
  }
  
  .channel-card .btn-sm {
    border-radius: 20px;
    font-size: 0.8rem;
    padding: 0.25rem 0.8rem;
  }
  
  /* Rating Stars */
  .rating-stars {
    color: #ffc107;
    font-size: 0.9rem;
  }
  
  .rating-count {
    font-size: 0.8rem;
    color: var(--cd-gray);
  }
  
  /* Featured Channels Section */
  .featured-section {
    background-color: var(--cd-primary);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
  }
  
  .featured-section h2 {
    font-weight: 700;
    margin-bottom: 1.5rem;
  }
  
  .featured-channels .channel-card {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border: none;
  }
  
  .featured-channels .channel-card .card-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  
  .featured-channels .channel-stats {
    color: rgba(255,255,255,0.8);
  }
  
  /* Section Titles */
  .section-title {
    position: relative;
    margin-bottom: 2rem;
    font-weight: 700;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--cd-primary);
  }
  
  /* Channel Detail Page */
  .channel-detail {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    overflow: hidden;
  }
  
  .channel-detail .channel-header {
    background-size: cover;
    background-position: center;
    height: 200px;
    position: relative;
  }
  
  .channel-detail .channel-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  
  .channel-detail .channel-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    margin-right: 1.5rem;
  }
  
  .channel-detail .channel-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  
  .channel-detail .channel-meta {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
  }
  
  .channel-detail .channel-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
  
  .channel-detail .btn-telegram {
    background-color: #0088cc;
    border-color: #0088cc;
    color: white;
  }
  
  .channel-detail .btn-telegram:hover {
    background-color: #006699;
    border-color: #006699;
  }
  
  .channel-detail .btn-favorite {
    background-color: transparent;
    border-color: white;
    color: white;
  }
  
  .channel-detail .btn-favorite.active {
    background-color: #e74c3c;
    border-color: #e74c3c;
  }
  
  .channel-detail .channel-stats-card {
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    background-color: var(--cd-light);
    border: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    height: 100%;
  }
  
  .channel-detail .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cd-primary);
    display: block;
    margin-bottom: 0.5rem;
  }
  
  .channel-detail .stat-label {
    font-size: 0.9rem;
    color: var(--cd-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .channel-detail .channel-content {
    padding: 2rem;
  }
  
  .channel-detail .channel-description {
    margin-bottom: 2rem;
    line-height: 1.8;
  }
  
  .channel-detail .section-heading {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--cd-dark);
  }
  
  .channel-detail .tag-list {
    margin-bottom: 1.5rem;
  }
  
  .channel-detail .badge-tag {
    background-color: #f1f1f1;
    color: #666;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.4em 0.8em;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 20px;
    display: inline-block;
  }
  
  /* Reviews Section */
  .reviews-section {
    margin-top: 2rem;
  }
  
  .review-card {
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  }
  
  .review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
  }
  
  .reviewer-info {
    flex-grow: 1;
  }
  
  .reviewer-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
  }
  
  .review-date {
    font-size: 0.85rem;
    color: var(--cd-gray);
  }
  
  .review-content {
    color: var(--cd-dark);
    line-height: 1.6;
  }
  
  .add-review-card {
    border-radius: 10px;
    padding: 1.5rem;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  }
  
  .star-rating {
    font-size: 1.5rem;
    cursor: pointer;
    color: #ddd;
  }
  
  .star-rating .fas {
    color: #ffc107;
  }
  
  /* Add Channel Form */
  .add-channel-form {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    padding: 2rem;
  }
  
  .form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
  }
  
  .form-steps::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e9ecef;
    z-index: 1;
  }
  
  .step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
    z-index: 2;
  }
  
  .step.active {
    background-color: var(--cd-primary);
    color: white;
  }
  
  .step.completed {
    background-color: var(--cd-success);
    color: white;
  }
  
  .form-section {
    display: none;
  }
  
  .form-section.active {
    display: block;
  }
  
  .preview-card {
    border-radius: 10px;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    margin-bottom: 2rem;
  }
  
  .preview-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .preview-logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 1rem;
  }
  
  .preview-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .preview-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
  }
  
  .preview-meta {
    font-size: 0.9rem;
    color: var(--cd-gray);
  }
  
  .preview-description {
    color: var(--cd-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
  }
  
  .preview-stats {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--cd-gray);
  }
  
  .preview-stats div {
    margin-right: 1.5rem;
  }
  
  .preview-stats i {
    margin-right: 0.5rem;
    color: var(--cd-primary);
  }
  
  /* User Dashboard */
  .dashboard-header {
    background-color: var(--cd-primary);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
  }
  
  .dashboard-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
  }
  
  .stat-box {
    text-align: center;
    padding: 1rem;
    background-color: rgba(255,255,255,0.1);
    border-radius: 10px;
  }
  
  .stat-box .value {
    font-size: 2rem;
    font-weight: 700;
  }
  
  .stat-box .label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    opacity: 0.9;
  }
  
  .dashboard-nav {
    margin-bottom: 2rem;
  }
  
  .dashboard-nav .nav-link {
    color: var(--cd-dark);
    font-weight: 500;
    padding: 1rem 1.5rem;
    border-radius: 5px;
  }
  
  .dashboard-nav .nav-link.active {
    background-color: var(--cd-primary);
    color: white;
  }
  
  .dashboard-nav .nav-link i {
    margin-right: 0.5rem;
  }
  
  .dashboard-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  .status-badge {
    padding: 0.3em 0.6em;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 500;
  }
  
  .status-pending {
    background-color: var(--cd-warning);
    color: white;
  }
  
  .status-approved {
    background-color: var(--cd-success);
    color: white;
  }
  
  .status-rejected {
    background-color: var(--cd-danger);
    color: white;
  }
  
  .status-featured {
    background-color: var(--cd-primary);
    color: white;
  }
  
  /* Utility Classes */
  .text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Verified Badge */
  .verified-badge {
    color: var(--cd-primary);
    margin-left: 0.3rem;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 767.98px) {
    .navbar-dark .navbar-nav .nav-link {
      padding: 0.5rem 0.75rem;
    }
    
    .channel-detail .channel-header {
      height: 150px;
    }
    
    .channel-detail .channel-logo {
      width: 80px;
      height: 80px;
    }
    
    .channel-detail .channel-title {
      font-size: 1.5rem;
    }
    
    .featured-section {
      padding: 2rem 0;
    }
  }
  
  @media (max-width: 575.98px) {
    .header-logo img {
      max-height: 40px;
    }
    
    .search-form {
      margin-top: 1rem;
    }
    
    .header-actions {
      margin-top: 1rem;
      text-align: center;
    }
    
    .channel-card .card-img-top {
      height: 120px;
    }
    
    .channel-detail .channel-header-overlay {
      padding: 1rem;
    }
    
    .channel-detail .channel-logo {
      width: 60px;
      height: 60px;
      margin-right: 1rem;
    }
  }