/**
 * Beauty Services Styles for Nyata AI
 * Matches existing app design language
 * Updated: Map & Call buttons improved
 */

/* ============================================
   BEAUTY CARDS
   ============================================ */
.beauty-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 15px 0;
}

.beauty-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #E91E63;
    border-radius: 12px;
    padding: 15px;
    color: #fff;
}

.beauty-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.beauty-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #FF69B4;
}

.beauty-rating {
    color: #FFD700;
    font-size: 0.9em;
}

.beauty-salon {
    font-size: 1.1em;
    color: #87CEEB;
    margin-bottom: 5px;
}

.beauty-address,
.beauty-specialty,
.beauty-payment {
    font-size: 0.9em;
    color: #ccc;
    margin: 4px 0;
}

.beauty-services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.beauty-service-tag {
    background: rgba(233, 30, 99, 0.2);
    border: 1px solid #E91E63;
    color: #FF69B4;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.beauty-service-tag:hover,
.beauty-service-tag.selected {
    background: #E91E63;
    color: white;
}

.beauty-pricing {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 12px 0;
    flex-wrap: wrap;
}

.price-original {
    color: #888;
    text-decoration: line-through;
    font-size: 0.9em;
}

.price-app {
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.2em;
}

.price-savings {
    background: #4CAF50;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: bold;
}

.price-starting {
    color: #FF69B4;
    font-size: 0.85em;
}

/* ============================================
   BEAUTY ACTIONS - IMPROVED LAYOUT
   ============================================ */
.beauty-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.btn-book-beauty {
    background: linear-gradient(135deg, #E91E63 0%, #AD1457 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 1em;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.btn-book-beauty:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(233, 30, 99, 0.45);
}

.btn-book-beauty:active {
    transform: translateY(0);
}

/* ============================================
   MAP & CALL BUTTONS - SIDE BY SIDE
   ============================================ */
.beauty-contact-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.btn-map,
.btn-call {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.95em;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s ease;
    cursor: pointer;
    min-height: 48px;
    box-sizing: border-box;
}

/* Map Button - Pink Outline */
.btn-map {
    background: transparent;
    border: 2px solid #E91E63;
    color: #FF69B4;
}

.btn-map:hover,
.btn-map:focus,
.btn-map:active {
    background: rgba(233, 30, 99, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.25);
    color: #FF69B4;
    text-decoration: none !important;
}

/* Call Button - Green Gradient */
.btn-call {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border: none;
    color: white;
}

.btn-call:hover,
.btn-call:focus,
.btn-call:active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    color: white;
    text-decoration: none !important;
}

/* Mobile Service Button */
.btn-mobile {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-mobile:hover,
.btn-mobile:focus,
.btn-mobile:active {
    background: linear-gradient(135deg, #7B1FA2 0%, #6A1B9A 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.35);
    color: white;
    text-decoration: none !important;
}

.beauty-note {
    color: #888;
    font-size: 0.9em;
    margin-top: 10px;
    padding: 10px;
    background: rgba(233, 30, 99, 0.1);
    border-radius: 8px;
    border-left: 3px solid #E91E63;
}

.mobile-service-badge {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   SERVICE SELECTION MODAL
   ============================================ */
.beauty-modal {
    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: 10000;
    animation: fadeIn 0.3s ease;
}

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

.beauty-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

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

.service-selection {
    color: white;
}

.service-selection h3 {
    color: #FF69B4;
    margin-bottom: 20px;
}

.service-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.service-option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.service-option:hover {
    border-color: #E91E63;
}

.service-option.selected {
    border-color: #E91E63;
    background: rgba(233, 30, 99, 0.2);
}

.service-option-name {
    font-weight: bold;
    color: white;
}

.service-option-price {
    color: #4CAF50;
    font-size: 0.9em;
}

.service-option-duration {
    color: #888;
    font-size: 0.8em;
}

.payment-processing {
    color: white;
}

.payment-processing p {
    margin: 10px 0;
}

.payment-processing .small {
    font-size: 0.85em;
    color: #888;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #333;
    border-top-color: #E91E63;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

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

/* ============================================
   BOOKING CONFIRMATION
   ============================================ */
.booking-confirmation {
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 100%);
    border: 2px solid #4CAF50;
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
}

.confirmation-header {
    font-size: 1.4em;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 15px;
}

.confirmation-details {
    text-align: left;
    color: #fff;
}

.confirmation-details p {
    margin: 8px 0;
}

.confirmation-actions {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.btn-directions,
.btn-call-confirm {
    flex: 1;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-directions {
    background: #4CAF50;
    color: white;
}

.btn-directions:hover {
    background: #43A047;
    transform: translateY(-2px);
}

.btn-call-confirm {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.btn-call-confirm:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
}

.confirmation-note {
    color: #90EE90;
    font-size: 0.9em;
    margin-top: 10px;
}

/* ============================================
   BOOKING ERROR
   ============================================ */
.booking-error {
    background: linear-gradient(135deg, #4a1a1a 0%, #5a2d2d 100%);
    border: 2px solid #f44336;
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    color: white;
}

.error-header {
    font-size: 1.2em;
    font-weight: bold;
    color: #f44336;
    margin-bottom: 10px;
}

.error-note {
    color: #ffcdd2;
    font-size: 0.9em;
    margin-top: 10px;
}

/* ============================================
   BOOKING FALLBACK (Web Browser)
   ============================================ */
.booking-fallback {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #E91E63;
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    color: white;
}

.fallback-header {
    font-size: 1.2em;
    font-weight: bold;
    color: #E91E63;
    margin-bottom: 10px;
}

.fallback-actions {
    margin: 15px 0;
}

.btn-appstore {
    display: inline-block;
    background: #000;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.fallback-note {
    color: #F48FB1;
    font-size: 0.9em;
}

/* ============================================
   RATING SYSTEM
   ============================================ */
.rating-prompt {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #FFD700;
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    text-align: center;
}

.rating-header {
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 15px;
}

.rating-stars {
    font-size: 2em;
    margin: 15px 0;
}

.rating-stars .star {
    cursor: pointer;
    color: #555;
    transition: color 0.2s, transform 0.2s;
    padding: 0 5px;
}

.rating-stars .star:hover {
    transform: scale(1.2);
}

.rating-stars .star.selected {
    color: #FFD700;
}

.rating-comment {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #0a0a15;
    color: white;
    font-size: 1em;
    resize: vertical;
    min-height: 60px;
    margin: 10px 0;
}

.rating-comment::placeholder {
    color: #666;
}

.btn-submit-rating {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1em;
    transition: transform 0.2s;
}

.btn-submit-rating:hover {
    transform: translateY(-2px);
}

.btn-skip-rating {
    background: transparent;
    color: #888;
    border: 1px solid #555;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    margin-left: 10px;
}

.rating-thanks {
    color: #4CAF50;
    font-size: 1.1em;
    padding: 20px;
}

.rating-skipped {
    color: #888;
    font-size: 0.95em;
    padding: 15px;
}

/* ============================================
   LOCATION TYPE SELECTOR
   ============================================ */
.location-type-selector {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.location-btn {
    flex: 1;
    padding: 15px;
    border: 2px solid #333;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.location-btn:hover {
    border-color: #E91E63;
}

.location-btn.selected {
    border-color: #E91E63;
    background: rgba(233, 30, 99, 0.2);
}

.location-btn i {
    font-size: 1.5em;
    display: block;
    margin-bottom: 5px;
}

.location-btn span {
    font-size: 0.85em;
}

/* ============================================
   ADDRESS INPUT (Mobile Services)
   ============================================ */
.address-input-section {
    margin: 15px 0;
    text-align: left;
}

.address-input-section label {
    color: #FF69B4;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.address-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #0a0a15;
    color: white;
    font-size: 1em;
}

.address-input:focus {
    border-color: #E91E63;
    outline: none;
}

.address-note {
    color: #888;
    font-size: 0.8em;
    margin-top: 5px;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    .beauty-card {
        padding: 12px;
    }
    
    .beauty-name {
        font-size: 1.1em;
    }
    
    .beauty-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-book-beauty {
        width: 100%;
    }
    
    /* Keep Map & Call side by side on mobile */
    .beauty-contact-actions {
        display: flex;
        flex-direction: row;
        gap: 8px;
    }
    
    .btn-map,
    .btn-call {
        flex: 1;
        padding: 12px 10px;
        font-size: 0.9em;
    }
    
    .btn-mobile {
        width: 100%;
        text-align: center;
    }
    
    .beauty-pricing {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .btn-directions,
    .btn-call-confirm {
        width: 100%;
    }
    
    .location-type-selector {
        flex-direction: column;
    }
    
    .beauty-services-list {
        gap: 5px;
    }
    
    .beauty-service-tag {
        font-size: 0.75em;
        padding: 3px 8px;
    }
}

/* Very small screens - stack buttons */
@media (max-width: 350px) {
    .beauty-contact-actions {
        flex-direction: column;
    }
    
    .btn-map,
    .btn-call {
        width: 100%;
    }
}