/* Channel Page Specific Styles */

/* Channel Main Info */
.channel-page {
    max-width: 1000px;
    margin: 0 auto;
}

.channel-main {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    align-items: flex-start;
    width: 100%;
}

.channel-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.channel-avatar-large {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f1f3f4;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.channel-voting {
    display: flex;
    gap: 15px;
}

.vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
    font-weight: 500;
}

.vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.vote-btn.vote-up:hover {
    border-color: #28a745;
    color: #28a745;
}

.vote-btn.vote-down:hover {
    border-color: #dc3545;
    color: #dc3545;
}

.channel-details {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.channel-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
}

.channel-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 25px;
}

.channel-username-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.channel-username-section .channel-username {
    color: #3498db;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.channel-username-section .channel-username:hover {
    color: #2980b9;
    text-decoration: underline;
}

.btn-telegram {
    background: linear-gradient(135deg, #0088cc, #006ba6);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 136, 204, 0.3);
}

.btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
    text-decoration: none;
    color: white;
}

.channel-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meta-item {
    display: flex;
    gap: 10px;
}

.meta-label {
    font-weight: 500;
    color: #6c757d;
    min-width: 100px;
}

.meta-value {
    color: #495057;
}

.meta-value a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.meta-value a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.channel-details .channel-description {
    font-size: 16px;
    line-height: 1.6;
    color: #5a6c7d;
    margin-bottom: 30px;
}

/* Statistics Section */
.channel-stats {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.channel-stats h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
}

.stats-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.subscribers-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.count-number {
    font-size: 48px;
    font-weight: 700;
    color: #3498db;
    line-height: 1;
}

.count-label {
    font-size: 16px;
    color: #6c757d;
    margin-top: 5px;
}

.stats-chart {
    flex: 1;
}

#subscribersChart {
    max-width: 100%;
    height: auto;
}

/* Latest Posts Section */
.latest-posts {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.latest-posts h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.post {
    border: 1px solid #f1f3f4;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.post:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.post-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.post-info {
    flex: 1;
}

.post-channel-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.post-timestamp {
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
}

.post-content {
    margin-bottom: 15px;
}

.post-image {
    /*width: 100%;
    max-width: 400px;*/
    max-width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.post-text {
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
}

.post-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #6c757d;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-link {
    margin-left: auto;
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-link:hover {
    color: #2980b9;
}

.posts-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #f1f3f4;
}

.posts-note {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
}

.btn-show-more {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-show-more:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Comment Form Section */
.comment-form-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.comment-form-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-submit:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* Comments Section */
.comments-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.comments-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.comment {
    display: flex;
    gap: 15px;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.comment-text {
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
}

/* Recommendations Section */
.recommendations {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
}

.recommendations h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.recommendation-card {
    background: white;
    border: 1px solid #f1f3f4;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.recommendation-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
    .channel-main {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .channel-avatar-section {
        align-self: center;
    }

    .channel-info-row {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .channel-username-section {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .stats-content {
        flex-direction: column;
        gap: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
    }

    .channel-title {
        font-size: 28px;
    }

    .count-number {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .channel-avatar-large {
        width: 140px;
        height: 140px;
    }

    .channel-voting {
        gap: 10px;
    }

    .vote-btn {
        padding: 10px 12px;
    }

}