/**
 * Frontend Styles for DATAsoft Escort Core
 * 
 * @package DATAsoft_Escort_Core
 * @since 1.0.0
 */

/* ==========================================================================
   MODAL STYLES
   ========================================================================== */

.ds-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.ds-modal {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

.ds-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ds-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #2c3e50;
}

.ds-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.ds-modal-close:hover {
    color: #333;
}

.ds-modal-body {
    padding: 30px;
}

/* ==========================================================================
   FORM STYLES
   ========================================================================== */

.ds-form-group {
    margin-bottom: 20px;
}

.ds-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.ds-form-group input[type="text"],
.ds-form-group input[type="email"],
.ds-form-group input[type="tel"],
.ds-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.ds-form-group input:focus,
.ds-form-group textarea:focus {
    outline: none;
    border-color: #e91e63;
}

.ds-form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.ds-form-actions {
    margin-top: 25px;
}

.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ds-btn-primary {
    background: #e91e63;
    color: #fff;
    width: 100%;
}

.ds-btn-primary:hover {
    background: #c2185b;
}

.ds-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.ds-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ds-spin 0.6s linear infinite;
}

@keyframes ds-spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse-video {
    0%, 100% {
        box-shadow: 0 2px 6px rgba(255, 65, 108, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 12px rgba(255, 65, 108, 0.7);
        transform: scale(1.05);
    }
}

.ds-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-weight: 500;
}

.ds-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ds-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==========================================================================
   LIGHTBOX STYLES
   ========================================================================== */

.ds-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ds-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ds-lightbox {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ds-lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ds-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #fff;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ds-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ds-lightbox-prev,
.ds-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #fff;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ds-lightbox-prev {
    left: 20px;
}

.ds-lightbox-next {
    right: 20px;
}

.ds-lightbox-prev:hover,
.ds-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ds-lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ==========================================================================
   NOTIFICATION STYLES
   ========================================================================== */

.ds-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.ds-notification.show {
    transform: translateX(0);
}

.ds-notification.success {
    background: #28a745;
    color: #fff;
}

.ds-notification.error {
    background: #dc3545;
    color: #fff;
}

.ds-notification.info {
    background: #17a2b8;
    color: #fff;
}

/* ==========================================================================
   BUTTON STATES
   ========================================================================== */

.ds-favorite-btn.active {
    background: #e91e63 !important;
    color: #fff !important;
    border-color: #e91e63 !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .ds-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .ds-modal-header,
    .ds-modal-body {
        padding: 20px;
    }
    
    .ds-lightbox-prev {
        left: 10px;
        width: 40px;
        height: 40px;
    }
    
    .ds-lightbox-next {
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .ds-lightbox-close {
        top: 10px;
        right: 10px;
    }
    
    .ds-lightbox-counter {
        bottom: 10px;
    }
}

/* ==========================================================================
   PROFILE SPECIFIC STYLES
   ========================================================================== */

/* Ensure gallery items are clickable */
.gallery-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: "🔍";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Contact button styling */
.ds-contact-btn,
.ds-favorite-btn {
    transition: all 0.3s ease;
}

.ds-contact-btn:hover {
    background: #c2185b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.ds-favorite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

/* ==========================================================================
   STAR RATING STYLES
   ========================================================================== */

.ds-star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    font-size: 3rem;
    margin: 10px 0;
    gap: 5px;
}

.ds-star-rating input {
    display: none;
}

.ds-star-rating label {
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s ease;
}

.ds-star-rating label:hover,
.ds-star-rating label.hover {
    color: #ffd700;
}

.ds-star-rating input:checked ~ label {
    color: #ffd700;
}

/* Rating stars display (read-only) */
.ds-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.ds-rating-stars .star {
    font-size: 1.2rem;
}

.ds-rating-stars .star-full {
    color: #ffd700;
}

.ds-rating-stars .star-half {
    color: #ffd700;
    opacity: 0.5;
}

.ds-rating-stars .star-empty {
    color: #ddd;
}

.ds-rating-number {
    margin-left: 8px;
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.2rem;
}

/* Review button */
.ds-add-review-btn {
    transition: all 0.3s ease;
}

.ds-add-review-btn:hover {
    background: #5568d3 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Review items */
.review-item {
    transition: box-shadow 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
