/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* TP Comment Proof - Clean & Elegant Styles */

/* Main Container */
#tp-comment-form-container,
.tp-comments-shortcode {
    max-width: 600px;
    margin: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Hide default WordPress comment form elements */
#tp-comment-form-container .form-submit,
#tp-comment-form-container #submit,
#tp-comment-form-container input[name="submit"],
#tp-comment-form-container .comment-form-author,
#tp-comment-form-container .comment-form-email,
#tp-comment-form-container .comment-form-url,
#tp-comment-form-container .comment-form-comment,
#tp-comment-form-container .wp-block-button,
#tp-comment-form-container .wp-element-button,
#tp-comment-form-container input[value="להגיב"],
#tp-comment-form-container input[type="submit"] {
    display: none !important;
}

/* Steps Container */
#tp-comment-steps {
    position: relative;
}

/* Individual Steps */
.tp-step {
    display: none;
    padding: 30px 0;
}

.tp-step.tp-step-active {
    display: block;
}

.tp-step h4 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 300;
    color: #2c3e50;
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 15px;
}

.tp-step-description {
    text-align: center;
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    padding: 0 20px;
}

/* Form Groups */
.tp-form-group {
    margin-bottom: 20px;
}

.tp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
    font-size: 14px;
}

.tp-form-group .required {
    color: #e74c3c;
}

/* Input Fields */
.tp-form-group input[type="text"],
.tp-form-group input[type="email"],
.tp-form-group input[type="url"],
.tp-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
}

.tp-form-group input:focus,
.tp-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.tp-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Buttons */
.tp-button {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    min-width: 140px;
}

.tp-button-primary {
    background: #3498db;
    color: white;
}

.tp-button-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.tp-button.tp-sending {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.tp-button-secondary {
    background: transparent;
    color: #7f8c8d;
    border: 1px solid #bdc3c7;
}

.tp-button-secondary:hover {
    background: #ecf0f1;
    color: #2c3e50;
}

/* Button Group */
.tp-button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Loading Spinner */
.tp-loading {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
}

.tp-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ecf0f1;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: tp-spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes tp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.tp-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 14px;
}

/* Success Step */
#tp-step-3 {
    text-align: center;
    padding: 40px 20px;
}

#tp-step-3 h4 {
    color: #27ae60;
    margin-bottom: 15px;
}

#tp-success-message {
    color: #2c3e50;
    font-size: 16px;
}

/* Comments List */
.tp-comments-list {
    margin-bottom: 40px;
}

.tp-comments-list h3 {
    font-size: 20px;
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
}

/* Individual Comments */
.tp-comment {
    padding: 20px 0;
    border-bottom: 1px solid #f8f9fa;
}

.tp-comment:last-child {
    border-bottom: none;
}

.tp-comment-meta {
    margin-bottom: 10px;
    font-size: 14px;
}

.tp-comment-author {
    color: #2c3e50;
    margin-right: 15px;
}

.tp-comment-date {
    color: #7f8c8d;
}

.tp-comment-content {
    color: #34495e;
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    #tp-comment-form-container,
    .tp-comments-shortcode {
        margin: 0 20px;
    }

    .tp-step {
        padding: 20px 0;
    }

    .tp-step h4 {
        font-size: 20px;
    }

    .tp-button-group {
        flex-direction: column;
        align-items: center;
    }

    .tp-button {
        width: 100%;
        max-width: 200px;
    }
}