/* ============================================
   Channel Page Styles
   ============================================ */

/* Main Container */
.channel-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #fcfcfd;
    color: #111827;
}

/* Top Navigation */
.channel-top-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #f3f4f6;
    padding: 12px 24px;
}

.channel-nav-container {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.channel-nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel-logo-icon {
    width: 32px;
    height: 32px;
    background-color: #2563eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.channel-logo-icon svg {
    width: 20px;
    height: 20px;
}

.channel-logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #111827;
    letter-spacing: -0.025em;
}

.channel-nav-links {
    display: none;
    align-items: center;
    gap: 32px;
}

@media (min-width: 768px) {
    .channel-nav-links {
        display: flex;
    }
}

.channel-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.channel-nav-link:hover {
    color: #2563eb;
}

.channel-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.channel-nav-login {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.channel-nav-login:hover {
    color: #111827;
}

.channel-nav-start {
    background-color: #111827;
    color: white;
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.channel-nav-start:hover {
    background-color: #1f2937;
}

/* Main Content Area */
.channel-content {
    flex: 1;
    position: relative;
    overflow-y: auto;
    background-color: #fcfcfd;
}

.channel-content::-webkit-scrollbar {
    width: 6px;
}

.channel-content::-webkit-scrollbar-track {
    background: transparent;
}

.channel-content::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 10px;
}

.channel-content::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}

/* Background Gradient */
.channel-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 320px;
    background: linear-gradient(to bottom, rgba(239, 246, 255, 0.4), rgba(236, 254, 255, 0.1), transparent);
    pointer-events: none;
}

.channel-content-inner {
    position: relative;
    z-index: 10;
    max-width: 1360px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Header / Search Section */
.channel-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 48px;
}

.channel-title {
    font-size: 20px;
    font-weight: bold;
    color: #111827;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: default;
    white-space: nowrap;
}

.channel-search-wrapper {
    width: 100%;
    max-width: 512px;
    margin: 0 auto;
}

.channel-search-container {
    position: relative;
}

.channel-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #9ca3af;
    pointer-events: none;
    transition: color 0.2s;
}

.channel-search-container:focus-within .channel-search-icon {
    color: #2563eb;
}

.channel-search-icon svg {
    width: 100%;
    height: 100%;
}

.channel-search-input {
    width: 100%;
    padding: 8px 16px 8px 40px;
    background-color: white;
    border: 1px solid #f3f4f6;
    border-radius: 9999px;
    font-size: 14px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    outline: none;
}

.channel-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.channel-search-input::placeholder {
    color: #9ca3af;
}

/* Tool Sections */
.channel-tool-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.channel-tool-section {
    display: flex;
    flex-direction: column;
}

.channel-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.channel-section-title {
    font-size: 18px;
    font-weight: bold;
    color: #111827;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel-section-indicator {
    width: 4px;
    height: 20px;
    background-color: #2563eb;
    border-radius: 9999px;
}

.channel-tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .channel-tool-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .channel-tool-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .channel-tool-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1280px) {
    .channel-tool-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

/* Tool Card */
.channel-tool-card {
    position: relative;
    background-color: white;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.channel-tool-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: #93c5fd;
}

.channel-tool-icon-wrapper {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #f9fafb;
    transition: background-color 0.2s;
}

.channel-tool-card:hover .channel-tool-icon-wrapper {
    background-color: #eff6ff;
}

.channel-tool-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
}

.channel-tool-icon svg {
    width: 100%;
    height: 100%;
}

.channel-tool-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.channel-tool-name-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
}

.channel-tool-name {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-tool-card:hover .channel-tool-name {
    color: #2563eb;
}

.channel-tool-tag {
    font-size: 9px;
    padding: 0 4px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    flex-shrink: 0;
}

.channel-tool-tag.hot {
    color: #f59e0b;
}

.channel-tool-tag.new {
    background-color: #ef4444;
    color: white;
}

/* Tool Card Indicator */
.channel-tool-indicator {
    opacity: 0;
    position: absolute;
    right: 6px;
    transition: opacity 0.2s;
}

.channel-tool-card:hover .channel-tool-indicator {
    opacity: 1;
}

.channel-tool-indicator svg {
    width: 12px;
    height: 12px;
    color: #60a5fa;
}

/* Floating Action Buttons */
.channel-floating-buttons {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 40;
}

.channel-float-btn {
    width: 48px;
    height: 48px;
    background-color: white;
    border: 1px solid #f3f4f6;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.channel-float-btn:hover {
    color: #2563eb;
    transform: translateY(-4px);
}

.channel-float-btn svg {
    width: 24px;
    height: 24px;
}

/* Hidden class for search filtering */
.channel-tool-section.hidden,
.channel-tool-card.hidden {
    display: none;
}
