/* Comment Block Frontend Styles */
.wp-block-wp-new-comment.comment-block,
.comment-block {
    margin: 2rem 0 !important;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.wp-block-wp-new-comment .comment-container,
.comment-container {
    background: #1E202A;
    border-radius: 10px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
        margin-top: 20px;
}

/* Header styles */
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.comment-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5; /* Фон на случай прозрачности */
    border: 2px solid rgba(44, 216, 185, 0.1); /* Тонкая рамка */
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Фокусируется на верхней части (лицо) */
}

.avatar-placeholder {
    background: #2CD8B9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-initial {
    color: #1E202A;
    font-weight: 700;
    font-size: 24px;
    text-transform: uppercase;
}

.comment-author-details {
    flex: 1;
}

.author-name {
    color: #2CD8B9;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    font-family: 'Clash Display Variable', sans-serif;
}

.author-name-link {
    text-decoration: none;
}

.comment-avatar-link {
    text-decoration: none;
}

.author-position {
    color: #8F93A8;
    font-size: 14px;
    font-family: 'Vela Sans', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    margin: 0 0 10px 0;
}

/* Social links */
.comment-social-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.social-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2D303E;
    border: 1px solid #2D303E;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
    color: #E9ECFC;
    font-weight: 600;
}

.social-link:hover {
    background: #3a3d4d;
    border-color: #3a3d4d;
}

.social-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.social-link:hover .social-icon {
    opacity: 0.8;
}

/* Platform specific icons using SVG */
.social-facebook .social-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E9ECFC'%3E%3Cpath d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E");
}

.social-twitter .social-icon,
.social-x .social-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E9ECFC'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E");
}

.social-instagram .social-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E9ECFC'%3E%3Cpath d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z'/%3E%3C/svg%3E");
}

.social-linkedin .social-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E9ECFC'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E");
}

.social-youtube .social-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E9ECFC'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E");
}

.social-telegram .social-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E9ECFC'%3E%3Cpath d='M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z'/%3E%3C/svg%3E");
}

.social-tiktok .social-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E9ECFC'%3E%3Cpath d='M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z'/%3E%3C/svg%3E");
}

.social-email .social-icon,
.social-mail .social-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E9ECFC'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

/* Content styles */
.comment-content {
    margin-bottom: 20px;
}

.comment-text-item {
    margin-bottom: 15px;
}

.comment-text-item p {
    color: #E9ECFC;
    font-weight: 400;
    margin: 0;
    font-size: 16px;
}

.comment-image-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.comment-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Specialties */
.comment-specialties {
    border-top: 1px solid rgba(143, 147, 168, 0.2);
    padding-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.specialties-title {
    color: #8F93A8;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Vela Sans', sans-serif;
    text-transform: uppercase;
    margin: 0;
    flex-shrink: 0;
}

.specialties-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    flex: 1;
}

.specialty-tag {
    background: #2D303E;
    border: 1px solid #2D303E;
    color: #E9ECFC;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: skewX(-10deg);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Remove specialty specific colors - all use the same background now */
.specialty-nba,
.specialty-nfl,
.specialty-ncaaf,
.specialty-ncaab,
.specialty-mma {
    background: #2D303E;
    border-color: #2D303E;
    color: #8F93A8;
}

/* Mobile styles */
@media (max-width: 768px) {
    .comment-container {
        padding: 15px;
    }
    .wp-block-wp-new-comment.comment-block,
    .comment-block {
        margin: 0 0 !important;
        margin-top: -20px;
    }
    .wp-block-wp-new-comment .comment-container, .comment-container{
        margin: 0;
        margin-top: -2px;
        border-radius: 0;
    }

    .comment-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .comment-author-info {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        text-align: center;
    }
    
    .author-details {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .author-position {
        text-align: center;
    }
    
    .comment-social-links {
        justify-content: center;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
    }
    
    .social-icon {
        font-size: 12px;
    }
    
}

@media (max-width: 480px) {
    .comment-container {
        padding: 12px;
    }
    
    .avatar-initial {
        font-size: 18px;
    }
    
    .specialty-tag {
        font-size: 11px;
        padding: 3px 5px;
    }
    .specialties-title {
        font-size: 12px;
    }
    .specialties-list {
        gap: 6px;
    }
}
