/* ===================================
   Contacts Page Modern Styles
   =================================== */

/* Page Header */
.contacts-page-header {
    margin-bottom: 2.5rem;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #ffdf00 0%, #d4b800 100%);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(255, 223, 0, 0.25);
}

.contacts-page-header .header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.contacts-page-header .page-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    color: #0b0b0b;
    margin: 0 0 0.5rem 0;
}

.contacts-page-header .title-icon {
    font-size: 2.25rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.contacts-page-header .page-subtitle {
    font-size: 1.0625rem;
    color: rgba(0, 0, 0, 0.75);
    margin: 0;
    font-weight: 400;
}

/* Contacts Grid Container */
.contacts-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Contact Card */
.contact-card {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
}

.contact-card:hover {
    box-shadow: 0 12px 32px rgba(255, 223, 0, 0.2);
    transform: translateY(-4px);
    border-color: #ffdf00;
}

/* Contact Card Header */
.contact-card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e5e7eb;
}

.marketer-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.marketer-avatar {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffdf00;
    box-shadow: 0 4px 12px rgba(255, 223, 0, 0.3);
    flex-shrink: 0;
}

.marketer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #0b0b0b 100%);
    color: #ffdf00;
    font-size: 2rem;
}

.marketer-info {
    flex: 1;
    min-width: 0;
}

.marketer-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.contact-date .clock-icon {
    color: #ffdf00;
    font-size: 0.875rem;
}

/* Contact Card Body */
.contact-card-body {
    padding: 1.5rem;
}

.contact-actions {
    display: flex;
    gap: 0.75rem;
}

.contact-actions button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 0.625rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-view-ad {
    background: linear-gradient(135deg, #ffdf00 0%, #d4b800 100%);
    color: #0b0b0b;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 223, 0, 0.3);
}

.btn-view-ad:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 223, 0, 0.4);
}

.btn-rate {
    background: linear-gradient(135deg, #ffdf00 0%, #d4b800 100%);
    color: #0b0b0b;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 223, 0, 0.3);
}

.btn-rate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 223, 0, 0.4);
}

/* Empty State */
.empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 3rem 1.5rem;
}

.empty-state-content {
    text-align: center;
    max-width: 400px;
}

.empty-state-content img {
    max-width: 200px;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.empty-state-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.empty-state-content p {
    font-size: 1.0625rem;
    color: #6b7280;
    margin: 0;
}

/* ===================================
   Modal Styles
   =================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
    padding: 1rem;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content-wrapper {
    background: #ffffff;
    border-radius: 1rem;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 100000 !important;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content-wrapper.modal-xl {
    width: 100%;
    max-width: 1200px;
}

.modal-content-wrapper.modal-lg {
    width: 100%;
    max-width: 800px;
}

/* Modal Header */
.modal-header-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #ffdf00 0%, #d4b800 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header-modern .modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: #0b0b0b;
    margin: 0;
}

.modal-header-modern .modal-icon {
    font-size: 1.5rem;
    color: #0b0b0b;
}

.btn-close-modal {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 50%;
    color: #0b0b0b;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-modal:hover {
    background: rgba(0, 0, 0, 0.25);
    transform: rotate(90deg);
}

/* Modal Body */
.modal-body-modern {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* ===================================
   Contacts Slider Styles
   =================================== */

.contacts-slider-container {
    background: #000000;
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
}

.main-contacts-swiper {
    height: 500px;
    direction: ltr;
}

.video-slide,
.image-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000;
}

.image-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Play/Pause Buttons */
.play-button-overlay,
.pause-button-overlay {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #ffffff;
    z-index: 10;
    transition: all 0.2s ease;
}

.play-button-overlay {
    width: 70px;
    height: 70px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.75rem;
}

.play-button-overlay:hover {
    background: rgba(255, 223, 0, 0.9);
    color: #0b0b0b;
    transform: translate(-50%, -50%) scale(1.1);
}

.pause-button-overlay {
    width: 48px;
    height: 48px;
    top: 16px;
    left: 16px;
    font-size: 1.25rem;
}

.pause-button-overlay:hover {
    background: rgba(255, 223, 0, 0.9);
    color: #0b0b0b;
}

/* Thumbnails */
.thumbnails-contacts-swiper {
    height: 80px;
    padding: 8px 12px;
    box-sizing: border-box;
    direction: ltr;
    background: rgba(0, 0, 0, 0.9);
}

.thumbnails-contacts-swiper .swiper-slide {
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s ease;
    border-radius: 6px;
    overflow: hidden;
    max-width: 100px;
    height: 60px;
}

.thumbnails-contacts-swiper .swiper-slide.active-thumb {
    opacity: 1;
    border: 2px solid #ffdf00;
}

.thumbnails-contacts-swiper img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.video-thumb {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.play-icon-thumb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.625rem;
}

/* Content Type Indicator */
.content-type-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    z-index: 10;
    font-weight: 600;
}

.no-content-placeholder {
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    color: #6c757d;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
    font-size: 1.0625rem;
}

/* ===================================
   Rating Modal Styles
   =================================== */

.rating-intro {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 0.75rem;
    border: 1px solid #bae6fd;
}

.rating-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0c4a6e;
    margin: 0 0 0.5rem 0;
}

.rating-subtitle {
    font-size: 0.9375rem;
    color: #075985;
    margin: 0;
    line-height: 1.6;
}

.rating-section {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.rating-question {
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.rating-question p {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.rating-stars {
    display: flex;
    justify-content: flex-start;
}

/* Recommendation Section */
.recommendation-section {
    padding: 1.25rem;
    background: #fef3c7;
    border-radius: 0.75rem;
    border: 1px solid #fbbf24;
}

.recommendation-title {
    font-size: 1rem;
    font-weight: 600;
    color: #78350f;
    margin: 0 0 1rem 0;
}

.recommendation-options {
    display: flex;
    gap: 1rem;
}

.recommendation-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recommendation-option:hover {
    border-color: #ffdf00;
    background: rgba(255, 223, 0, 0.05);
}

.recommendation-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ffdf00;
}

.recommendation-option input[type="radio"]:checked + .option-text {
    color: #d4b800;
}

.option-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #4b5563;
    transition: color 0.2s ease;
}

.option-icon {
    font-size: 1.125rem;
}

.yes-icon {
    color: #10b981;
}

.no-icon {
    color: #ef4444;
}

/* Review Section */
.review-section {
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.review-section label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.review-textarea {
    width: 100%;
    padding: 0.875rem;
    font-size: 0.9375rem;
    border: 2px solid #d1d5db;
    border-radius: 0.625rem;
    resize: vertical;
    transition: all 0.2s ease;
    font-family: inherit;
}

.review-textarea:focus {
    outline: none;
    border-color: #ffdf00;
    box-shadow: 0 0 0 3px rgba(255, 223, 0, 0.1);
}

.rate_details_characters {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.rate_details_characters.red {
    color: #ef4444;
    font-weight: 600;
}

/* Submit Rating Button */
.btn-submit-rating {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 1.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #ffdf00 0%, #d4b800 100%);
    color: #0b0b0b;
    box-shadow: 0 4px 12px rgba(255, 223, 0, 0.3);
    transition: all 0.2s ease;
}

.btn-submit-rating:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 223, 0, 0.4);
}

/* ===================================
   Responsive Design
   =================================== */

/* Large Tablets (992px - 1199px) */
@media (max-width: 1199px) {
    .contacts-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.25rem;
    }

    .contacts-page-header .page-title {
        font-size: 1.75rem;
    }

    .main-contacts-swiper {
        height: 450px;
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
    .contacts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }

    .contacts-page-header {
        padding: 1.5rem 1rem;
    }

    .contacts-page-header .page-title {
        font-size: 1.5rem;
    }

    .contacts-page-header .page-subtitle {
        font-size: 0.9375rem;
    }

    .main-contacts-swiper {
        height: 400px;
    }

    .modal-body-modern {
        padding: 1.5rem;
    }

    .recommendation-options {
        flex-direction: column;
    }
}

/* Mobile Devices (576px - 767px) */
@media (max-width: 767px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contacts-page-header {
        padding: 1.25rem 0.875rem;
        margin-bottom: 1.5rem;
    }

    .contacts-page-header .page-title {
        font-size: 1.375rem;
        gap: 0.5rem;
    }

    .contacts-page-header .title-icon {
        font-size: 1.75rem;
    }

    .contacts-page-header .page-subtitle {
        font-size: 0.875rem;
    }

    .contact-card-header {
        padding: 1.25rem;
    }

    .marketer-avatar {
        width: 56px;
        height: 56px;
    }

    .marketer-name {
        font-size: 1rem;
    }

    .contact-date {
        font-size: 0.8125rem;
    }

    .contact-card-body {
        padding: 1.25rem;
    }

    .contact-actions {
        flex-direction: column;
        gap: 0.625rem;
    }

    .contact-actions button {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .main-contacts-swiper {
        height: 350px;
    }

    .thumbnails-contacts-swiper {
        height: 65px;
        padding: 6px 8px;
    }

    .thumbnails-contacts-swiper .swiper-slide {
        max-width: 80px;
        height: 50px;
    }

    .thumbnails-contacts-swiper img {
        height: 50px;
    }

    .play-button-overlay {
        width: 56px;
        height: 56px;
        font-size: 1.375rem;
    }

    .pause-button-overlay {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: 12px;
        left: 12px;
    }

    .modal-header-modern {
        padding: 1.25rem 1.5rem;
    }

    .modal-header-modern .modal-title {
        font-size: 1.125rem;
        gap: 0.5rem;
    }

    .modal-header-modern .modal-icon {
        font-size: 1.25rem;
    }

    .modal-body-modern {
        padding: 1.25rem;
    }

    .rating-intro {
        padding: 1.25rem;
    }

    .rating-title {
        font-size: 1rem;
    }

    .rating-subtitle {
        font-size: 0.875rem;
    }

    .rating-question {
        padding: 1rem;
    }

    .rating-question p {
        font-size: 0.9375rem;
    }

    .recommendation-section {
        padding: 1rem;
    }

    .recommendation-title {
        font-size: 0.9375rem;
    }

    .review-section {
        padding: 1rem;
    }

    .review-section label {
        font-size: 0.9375rem;
    }

    .btn-submit-rating {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* Small Mobile (max 575px) */
@media (max-width: 575px) {
    .contacts-page-header .page-title {
        font-size: 1.25rem;
    }

    .contacts-page-header .title-icon {
        font-size: 1.5rem;
    }

    .marketer-avatar {
        width: 48px;
        height: 48px;
        border-width: 2px;
    }

    .marketer-name {
        font-size: 0.9375rem;
    }

    .contact-date {
        font-size: 0.75rem;
    }

    .main-contacts-swiper {
        height: 300px;
    }

    .thumbnails-contacts-swiper {
        height: 55px;
        padding: 4px 8px;
    }

    .thumbnails-contacts-swiper .swiper-slide {
        max-width: 70px;
        height: 44px;
    }

    .thumbnails-contacts-swiper img {
        height: 44px;
    }

    .play-button-overlay {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
    }

    .modal-overlay {
        padding: 0.5rem;
    }

    .modal-header-modern {
        padding: 1rem;
    }

    .modal-header-modern .modal-title {
        font-size: 1rem;
    }

    .modal-body-modern {
        padding: 1rem;
    }

    .btn-close-modal {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
}
