/* Testimonial Modal Styles */
.testimonial-write-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--brand-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 143, 122, 0.3);
}

.testimonial-write-btn:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.testimonial-write-btn i {
    color: var(--white-color);
    font-size: 20px;
}

/* Modal Overlay */
.testimonial-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(29, 29, 27, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.testimonial-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.testimonial-modal {
    background-color: var(--white-color);
    border-radius: 30px;
    width: 90%;
    max-width: 600px;
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.testimonial-modal-overlay.active .testimonial-modal {
    transform: scale(1);
}

/* Modal Close Button */
.testimonial-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border: none;
}

.testimonial-modal-close:hover {
    background-color: var(--primary-color);
}

.testimonial-modal-close i {
    color: var(--primary-color);
    font-size: 18px;
    transition: all 0.3s ease-in-out;
}

.testimonial-modal-close:hover i {
    color: var(--white-color);
}

/* Modal Header */
.testimonial-modal-header {
    margin-bottom: 30px;
}

.testimonial-modal-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.testimonial-modal-header p {
    color: var(--text-color);
    margin: 0;
}

/* Modal Form */
.testimonial-modal-form .form-group {
    margin-bottom: 20px;
}

.testimonial-modal-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-transform: capitalize;
}

.testimonial-modal-form input,
.testimonial-modal-form textarea {
    width: 100%;
    padding: 15px 20px;
    background-color: var(--secondary-color);
    border: 1px solid var(--dark-divider-color);
    border-radius: 12px;
    color: var(--primary-color);
    font-size: 16px;
    font-family: var(--default-font);
    transition: all 0.3s ease-in-out;
}

.testimonial-modal-form input:focus,
.testimonial-modal-form textarea:focus {
    outline: none;
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px rgba(0, 143, 122, 0.1);
}

.testimonial-modal-form textarea {
    min-height: 150px;
    resize: vertical;
}

.testimonial-modal-form input::placeholder,
.testimonial-modal-form textarea::placeholder {
    color: var(--text-color);
    opacity: 0.6;
}

/* Submit Button */
.testimonial-submit-btn {
    width: 100%;
    padding: 15px 30px;
    background-color: var(--brand-color);
    color: var(--white-color);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-transform: capitalize;
}

.testimonial-submit-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 143, 122, 0.3);
}

.testimonial-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
.testimonial-success-message {
    display: none;
    text-align: center;
    padding: 30px;
}

.testimonial-success-message.active {
    display: block;
}

.testimonial-success-message i {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 20px;
}

.testimonial-success-message h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.testimonial-success-message p {
    color: var(--text-color);
    margin: 0;
}

/* Responsive */
@media only screen and (max-width: 767px) {
    .testimonial-modal {
        padding: 30px 20px;
        width: 95%;
    }

    .testimonial-modal-header h2 {
        font-size: 24px;
    }

    .testimonial-write-btn {
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
    }

    .testimonial-write-btn i {
        font-size: 18px;
    }
}

/* ========================================= */
/* Testimonial Empty State (No Comments)     */
/* ========================================= */

.testimonial-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 30px;
    min-height: 320px;
}

/* Icon Wrapper with Glow */
.empty-state-icon-wrapper {
    position: relative;
    margin-bottom: 30px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 143, 122, 0.08) 0%, rgba(0, 143, 122, 0.18) 100%);
    animation: emptyStatePulse 3s ease-in-out infinite;
}

.empty-state-icon {
    position: relative;
    z-index: 2;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #008F7A 0%, #00B39B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 143, 122, 0.3);
}

.empty-state-icon i {
    font-size: 38px;
    color: #FFFFFF;
}

/* Floating Sparkles */
.empty-state-sparkle {
    position: absolute;
    font-size: 16px;
    color: var(--brand-color);
    opacity: 0.7;
    z-index: 3;
}

.sparkle-1 {
    top: 5px;
    right: 5px;
    font-size: 14px;
    animation: sparkleFloat1 3s ease-in-out infinite;
}

.sparkle-2 {
    bottom: 10px;
    left: 0;
    font-size: 12px;
    animation: sparkleFloat2 3.5s ease-in-out infinite 0.5s;
}

.sparkle-3 {
    top: 15px;
    left: 10px;
    font-size: 10px;
    color: #FFA800;
    animation: sparkleFloat3 2.8s ease-in-out infinite 1s;
}

/* Empty State Content */
.empty-state-content {
    max-width: 420px;
}

.empty-state-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.empty-state-content p {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* CTA Button */
.empty-state-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #008F7A 0%, #00B39B 100%);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--default-font);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 6px 25px rgba(0, 143, 122, 0.3);
    text-transform: none;
}

.empty-state-cta:hover {
    background: linear-gradient(135deg, #007A69 0%, #008F7A 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0, 143, 122, 0.4);
}

.empty-state-cta:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 143, 122, 0.3);
}

.empty-state-cta i {
    font-size: 16px;
}

/* Animations */
@keyframes emptyStatePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.6;
    }
}

@keyframes sparkleFloat1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translate(5px, -8px) rotate(180deg);
        opacity: 1;
    }
}

@keyframes sparkleFloat2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translate(-6px, -5px) rotate(-180deg);
        opacity: 1;
    }
}

@keyframes sparkleFloat3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(3px, -10px) scale(1.3);
        opacity: 1;
    }
}

/* Empty State Responsive */
@media only screen and (max-width: 767px) {
    .testimonial-empty-state {
        padding: 30px 20px;
        min-height: 260px;
    }

    .empty-state-icon-wrapper {
        width: 100px;
        height: 100px;
        margin-bottom: 24px;
    }

    .empty-state-icon-bg {
        width: 100px;
        height: 100px;
    }

    .empty-state-icon {
        width: 75px;
        height: 75px;
    }

    .empty-state-icon i {
        font-size: 30px;
    }

    .empty-state-content h3 {
        font-size: 20px;
    }

    .empty-state-content p {
        font-size: 14px;
        margin-bottom: 22px;
    }

    .empty-state-cta {
        padding: 12px 26px;
        font-size: 14px;
    }
}

/* ========================================= */
/* Blog Empty State (No Articles)            */
/* ========================================= */

.blog-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 30px;
    min-height: 320px;
    position: relative;
    z-index: 1;
}

@media only screen and (max-width: 767px) {
    .blog-empty-state {
        padding: 40px 20px;
        min-height: 260px;
    }
}
