/* Custom Comments Styling */

/* Comments Area */
.football-comments-area {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.football-comments-container {
    display: flex;
    gap: 30px;
}

/* Left Column - Ratings */
.football-ratings-column {
    flex: 0 0 300px;
    padding: 20px;
    border-radius: 5px;
}

.football-overall-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.football-rating-number {
    font-size: 36px;
    font-weight: bold;
    color: #00c853;
    margin-right: 15px;
}

.football-rating-stars {
    display: flex;
    align-items: center;
}

.football-rating-stars .star {
    font-size: 20px;
    color: #00c853;
    margin-right: 2px;
}

.football-rating-stars .star:not(.filled) {
    color: #ddd;
}

.football-rating-categories {
    margin-bottom: 20px;
}

.football-rating-category {
    position: relative;
    margin-bottom: 25px;
}

.football-rating-label {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.football-rating-slider {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 15px;
}

.football-rating-bar {
    width: 100%;
    height: 4px;
    background-color: #ddd;
    position: relative;
}

.football-rating-indicator {
    position: absolute;
    top: -5px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid #00c853;
    transform: translateX(-50%);
}

.football-rating-options {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 5px;
}

.football-rating-option {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.football-rating-option.left {
    text-align: left;
}

.football-rating-option.center {
    text-align: center;
}

.football-rating-option.right {
    text-align: right;
}

.football-rating-perfect,
.football-rating-general {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 5px;
}

.football-comment-button-container {
    text-align: center;
}

/* Right Column - Comments */
.football-comments-column {
    flex: 1;
    max-width: 100%;
    overflow-x: hidden;
}

.football-comments-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.football-tab {
    padding: 8px 15px;
    margin-right: 10px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.football-tab.active {
    background-color: #00c853;
    color: white;
}

.football-tab-content {
    display: none;
    max-width: 100%;
    overflow-x: hidden;
}

.football-tab-content.active {
    display: block;
}

/* Media Grid */
.football-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.football-media-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 5px;
}

.football-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.football-video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list > li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.comment-list > li:last-child {
    border-bottom: none;
}

/* Comment author and rating */
.comment-author-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}

.comment-author {
    font-weight: bold;
    color: #555;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.comment-author .avatar {
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

.masked-email {
    color: #666;
    font-size: 14px;
}

/* Default Rating Stars */
.default-star-rating {
    display: flex;
    align-items: center;
}

.default-star-rating .star {
    font-size: 16px;
    color: #ddd;
    margin-right: 2px;
}

.default-star-rating .star.filled {
    color: #00c853;
}

/* Comment content */
.comment-content {
    line-height: 1.6;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

/* Comment date */
.comment-date {
    font-size: 14px;
    color: #777;
    margin-top: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Comment Images in Comment List */
.comment-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.comment-image-link {
    display: block;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 5px;
    position: relative;
}

.comment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.comment-image:hover {
    transform: scale(1.05);
}

/* Comment Video in Comment List */
.comment-video {
    margin-top: 15px;
    max-width: 500px;
}

.comment-video video {
    width: 100%;
    border-radius: 5px;
    height: auto;
}

/* Modal */
.comment-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.comment-modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 5px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #333;
}

.modal-open {
    overflow: hidden;
}

/* Modal title */
.comment-modal-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.comment-modal-subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-top: 0;
    margin-bottom: 25px;
}

/* Overall rating */
.overall-rating-field {
    text-align: center;
    margin-bottom: 30px;
}

.overall-rating-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.overall-rating-stars {
    display: flex;
    justify-content: center;
    align-items: center;
}

.overall-rating-stars .star {
    font-size: 32px;
    color: #ddd;
    cursor: pointer;
    margin: 0 5px;
    transition: color 0.2s;
}

.overall-rating-stars .star.filled {
    color: #ffb400;
}

/* Recommend product */
.recommend-product-field {
    margin-bottom: 30px;
}

.recommend-product-field label {
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
}

.recommend-options {
    display: flex;
    gap: 15px;
}

.recommend-option {
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.recommend-option input[type="radio"] {
    display: none;
}

.recommend-text {
    display: block;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: bold;
}

.recommend-option input[type="radio"]:checked + .recommend-text {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* Rating sliders */
.slider-field {
    margin-bottom: 25px;
    position: relative;
}

.slider-field label {
    display: inline-block;
    margin-bottom: 10px;
    font-weight: bold;
    width: 100px;
    text-align: right;
    vertical-align: top;
}

.rating-status {
    display: inline-block;
    color: #007bff;
    font-size: 13px;
    margin-left: 10px;
    vertical-align: top;
}

.rating-slider {
    display: flex;
    align-items: center;
    width: 100%;
    margin-left: 110px;
    margin-top: -25px;
}

.slider-label {
    font-size: 12px;
    color: #777;
    flex: 0 0 80px;
}

.slider-label.left {
    text-align: right;
    padding-right: 10px;
}

.slider-label.right {
    text-align: left;
    padding-left: 10px;
}

.slider-options {
    flex: 1;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.slider-options:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ddd;
    z-index: 1;
}

.slider-option {
    position: relative;
    z-index: 2;
    margin: 0;
    cursor: pointer;
}

.slider-option input[type="radio"] {
    display: none;
}

.slider-circle {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background-color: #fff;
    transition: all 0.2s;
}

.slider-option input[type="radio"]:checked + .slider-circle {
    border-color: #000;
    background-color: #fff;
}

.center-label {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #777;
    margin-top: 5px;
    margin-left: 110px;
}

/* New Rating Style */
.fit-scale-container {
    width: 100%;
    max-width: 800px;
    margin: auto;
    font-family: sans-serif;
}

.fit-group {
    margin-bottom: 30px;
}

.fit-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fit-title {
    width: 100px;
    text-align: right;
    font-weight: bold;
    color: #333;
}

.fit-scale-wrapper {
    flex: 1;
}

.status-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    text-align: left;
    font-weight: 500;
}

.fit-scale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin: 10px 0 8px;
}

.fit-scale input[type="radio"] {
    display: none;
}

.fit-scale label {
    position: relative;
    flex: 1;
    text-align: center;
}

.fit-scale .circle {
    width: 24px;
    height: 24px;
    border: 2px solid #666;
    border-radius: 50%;
    background-color: white;
    margin: auto;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.fit-scale label:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
    height: 2px;
    background-color: #666;
    z-index: 1;
    transform: translateY(-50%);
}

.fit-scale input[type="radio"]:checked + .circle {
    background-color: #666;
}

.fit-scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    padding: 0 10px;
}

/* Rating Field Error Styling */
.fit-scale-wrapper.error-field .circle {
    border-color: #e53935;
}

/* Open Comment Button */
.open-comment-modal {
    display: inline-block;
    background-color: #000;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
    font-weight: bold;
}

.open-comment-modal:hover {
    background-color: #333;
}

/* Comment Form */
.comment-form {
    margin-top: 20px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.comment-form input.error-field,
.comment-form textarea.error-field {
    border-color: #e53935;
    background-color: #ffebee;
}

.comment-form textarea {
    height: 120px;
    resize: vertical;
}

.chars-counter {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #777;
    margin-top: -10px;
    margin-bottom: 15px;
}

.comment-form-author,
.comment-form-email {
    margin-bottom: 15px;
}

.comment-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.required {
    color: #e53935;
}

.email-note, 
.auth-note {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

.auth-note {
    text-align: center;
    margin-bottom: 20px;
}

/* Rating Field */
.comment-form-ratings {
    margin-bottom: 30px;
}

/* Media Upload */
.comment-form-media {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.comment-form-images,
.comment-form-video {
    flex: 1;
}

.image-upload-container,
.video-upload-container {
    margin-top: 10px;
}

.image-preview-container,
.video-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.image-preview,
.video-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
}

.image-preview {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image,
.remove-video {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
}

.upload-button {
    display: inline-flex;
    align-items: center;
    background-color: #f8f8f8;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid #ddd;
}

.upload-button:hover {
    background-color: #f0f0f0;
}

.upload-button .dashicons {
    margin-right: 5px;
}

input[type="file"] {
    display: none;
}

/* Reviewer info */
.reviewer-info {
    margin-bottom: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Submit Button */
.form-submit {
    margin-top: 20px;
    text-align: center;
}

.submit {
    background-color: #000;
    color: white;
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
    font-weight: bold;
}

.submit:hover {
    background-color: #333;
}

.submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Terms note */
.terms-note {
    text-align: center;
    font-size: 12px;
    color: #777;
    margin-top: 15px;
}

.terms-note a {
    color: #555;
    text-decoration: underline;
}

/* Response Messages */
.comment-response-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.comment-response-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.comment-response-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Load More Comments Link */
.football-load-more {
    text-align: center;
    margin: 20px 0;
}

.football-load-more a {
    display: inline-block;
    padding: 8px 20px;
    background-color: #f8f8f8;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
}

.football-load-more a:hover {
    background-color: #eee;
    color: #000;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .football-comments-container {
        flex-direction: column;
        max-width: 100%;
    }
    
    .football-ratings-column {
        flex: 0 0 auto;
        margin-bottom: 30px;
        max-width: 100%;
    }
    
    .comment-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }
    
    .rating-field {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rating-field label {
        margin-bottom: 5px;
    }
    
    .football-media-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .comment-form-media {
        flex-direction: column;
    }
    
    /* Make sure images don't break layout on mobile */
    .comment-image-link {
        width: 80px;
        height: 80px;
    }
    
    /* Adjust padding for smaller screens */
    .comment-list > li {
        padding: 15px 10px;
    }
} 