/* ==========================================================================
   Vetur Artists Plugin Styles
   ========================================================================== */

/* Main Widget Container */
.vetur-artists-widget {
    padding: 20px;
    background: transparent;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.vetur-artists-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(56, 75, 242, 0.1) 0%, rgba(56, 75, 242, 0.05) 100%);
    pointer-events: none;
}

/* Title */
.vetur-artists-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Filter Buttons */
.vetur-artists-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.vetur-filter-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vetur-filter-btn:hover,
.vetur-filter-btn.active {
    background: #384bf2;
    border-color: #384bf2;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 75, 242, 0.4);
}

/* Artists Grid */
.vetur-artists-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(3, 1fr);
}

/* Artist Card */
.vetur-artist-card {
    position: relative;
    transition: transform 0.3s ease;
    width: 100%;
    min-width: 0;
}

.vetur-artist-card:hover {
    transform: translateY(-8px);
}

.vetur-artist-card-inner {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
}

.vetur-artist-card:hover .vetur-artist-card-inner {
    border-color: rgba(56, 75, 242, 0.5);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4), 0 0 30px rgba(56, 75, 242, 0.2);
}

/* Artist Image */
.vetur-artist-image {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.vetur-artist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s ease;
}

.vetur-artist-card:hover .vetur-artist-image img {
    transform: scale(1.05);
}

.vetur-artist-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    pointer-events: none;
}

/* Artist Content */
.vetur-artist-content {
    padding: 25px;
    text-align: center;
    position: relative;
}

.vetur-artist-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
}

.vetur-artist-category {
    font-size: 1rem;
    color: #384bf2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Social Links */
.vetur-artist-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.vetur-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.vetur-social-link:hover {
    background: #384bf2;
    border-color: #384bf2;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 8px 20px rgba(56, 75, 242, 0.4);
}

.vetur-social-link:visited {
    color: #ffffff !important;
}

.vetur-social-link i {
    line-height: 1;
    color: #ffffff !important;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Ensure Font Awesome icons are white */
.vetur-social-link .fab,
.vetur-social-link .fas {
    color: #ffffff !important;
}

/* Screen reader text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Clean up - removed old fallback rules that were causing issues */

/* Force all social icon elements to be white */
.vetur-social-link,
.vetur-social-link *,
.vetur-social-link i,
.vetur-social-link i:before,
.vetur-social-link i:after {
    color: #ffffff !important;
}

/* Fallback mode when Font Awesome is not loaded */
.vetur-fa-fallback .vetur-social-link i:before,
.vetur-fa-fallback .vetur-social-link i:after {
    display: none !important;
}

.vetur-fa-fallback .vetur-text-icon {
    font-family: 'Arial', sans-serif !important;
    font-weight: bold !important;
    font-size: 12px !important;
    line-height: 1 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

.vetur-fa-fallback .vetur-social-website .vetur-text-icon {
    font-size: 10px !important;
}

/* Hide empty Font Awesome classes in fallback mode */
.vetur-fa-fallback .fab,
.vetur-fa-fallback .fas {
    font-family: 'Arial', sans-serif !important;
}

.vetur-fa-fallback .fab:before,
.vetur-fa-fallback .fas:before {
    display: none !important;
}

/* Book Now Button */
.vetur-book-now-btn {
    background: linear-gradient(135deg, #384bf2 0%, #5a67f2 100%);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    padding: 15px 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(56, 75, 242, 0.3);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.vetur-book-now-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.vetur-book-now-btn:hover::before {
    width: 300px;
    height: 300px;
}

.vetur-book-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(56, 75, 242, 0.5);
}

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

/* No Results */
.vetur-artists-no-results {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
}

/* Booking Modal */
.vetur-booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    flex: 1;
    min-height: 0;
}

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(56, 75, 242, 0.6);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 75, 242, 0.8);
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 2px;
}

.vetur-booking-modal .modal-body .form-group {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
    margin-top: 0px !important;
    padding-top: 0px !important;
}

/* Override any global form-group styles with maximum specificity */
.vetur-booking-modal .modal-body .form-group,
.vetur-booking-modal .form-group,
div.vetur-booking-modal .form-group,
.modal-backdrop .vetur-booking-modal .form-group {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
    margin-top: 0px !important;
    padding-top: 0px !important;
}

.form-group label {
    display: block;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1px !important;
    font-size: 12px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #384bf2;
    box-shadow: 0 0 0 3px rgba(56, 75, 242, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group select option {
    background: #1a1a1a;
    color: #ffffff;
}

.form-actions {
    text-align: center;
    margin-top: 10px;
}

.vetur-submit-booking {
    background: linear-gradient(135deg, #384bf2 0%, #5a67f2 100%);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(56, 75, 242, 0.3);
    font-family: inherit;
}

.vetur-submit-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(56, 75, 242, 0.5);
}

.vetur-submit-booking:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.booking-response {
    margin-top: 8px;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.booking-response.success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #28a745;
}

.booking-response.error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #dc3545;
}

/* Loading Animation */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #384bf2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

/* Large Desktop */
@media (min-width: 1200px) {
    .vetur-artists-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .vetur-artists-widget {
        padding: 30px;
    }
}

/* Tablet Portrait & Small Desktop */
@media (max-width: 1024px) {
    .vetur-artists-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px;
    }
    
    .vetur-artists-widget {
        padding: 25px;
    }
    
    .vetur-artists-title {
        font-size: 2.2rem;
    }
    
    .vetur-artist-image {
        height: 300px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .vetur-artists-widget {
        padding: 20px;
    }
    
    .vetur-artists-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .vetur-artists-title {
        font-size: 2rem;
        margin-bottom: 25px;
        text-align: center;
    }
    
    .vetur-artist-image {
        height: 280px;
    }
    
    .vetur-artist-content {
        padding: 20px;
    }
    
    .vetur-artist-name {
        font-size: 1.3rem;
    }
    
    .vetur-artist-category {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }
    
    .vetur-artist-social {
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .vetur-social-link {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .vetur-book-now-btn {
        padding: 12px 30px;
        font-size: 15px;
    }
    
    /* Filter Buttons - Keep Centered */
    .vetur-artists-filter {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .vetur-filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* Modal Responsiveness */
    .modal-content {
        width: 95%;
        margin: 10px auto;
        max-height: calc(100vh - 20px);
    }
    
    .modal-header {
        padding: 10px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 10px 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .vetur-booking-modal .form-group {
        margin-bottom: 0px !important;
        padding-bottom: 0px !important;
        margin-top: 0px !important;
        padding-top: 0px !important;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .vetur-submit-booking {
        width: 100%;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Mobile Landscape & Small Tablet */
@media (max-width: 640px) {
    .vetur-artists-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .vetur-artist-image {
        height: 250px;
    }
    
    .vetur-artists-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .vetur-filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .vetur-artists-widget {
        padding: 15px;
        border-radius: 15px;
    }
    
    .vetur-artists-title {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }
    
    .vetur-artist-card-inner {
        border-radius: 15px;
    }
    
    .vetur-artist-image {
        height: 220px;
    }
    
    .vetur-artist-content {
        padding: 18px;
    }
    
    .vetur-artist-name {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }
    
    .vetur-artist-category {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .vetur-artist-social {
        gap: 8px;
        margin-bottom: 18px;
    }
    
    .vetur-social-link {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .vetur-book-now-btn {
        padding: 10px 20px;
        font-size: 13px;
        border-radius: 25px;
    }
    
    /* Filter buttons remain centered but with smaller size */
    .vetur-artists-filter {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .vetur-filter-btn {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    /* Modal takes full screen on mobile */
    .modal-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        border: none;
    }
    
    .modal-header {
        padding: 8px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .modal-header h3 {
        font-size: 1rem;
    }
    
    .modal-close {
        font-size: 20px;
        padding: 4px;
    }
    
    .modal-body {
        padding: 8px 12px;
    }
    
    .form-row {
        margin-bottom: 0 !important;
        gap: 0 !important;
    }
    
    .vetur-booking-modal .form-group {
        margin-bottom: 0px !important;
        padding-bottom: 0px !important;
        margin-top: 0px !important;
        padding-top: 0px !important;
    }
    
    .form-group label {
        font-size: 11px;
        margin-bottom: 0px !important;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 6px 8px;
        font-size: 16px;
        border-radius: 4px;
    }
    
    .form-actions {
        margin-top: 8px;
        padding-bottom: 8px;
    }
    
    .vetur-submit-booking {
        width: 100%;
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 4px;
    }
}

/* Small Mobile Portrait */
@media (max-width: 360px) {
    .vetur-artists-widget {
        padding: 12px;
    }
    
    .vetur-artists-title {
        font-size: 1.4rem;
    }
    
    .vetur-artist-image {
        height: 200px;
    }
    
    .vetur-artist-content {
        padding: 15px;
    }
    
    .vetur-artist-name {
        font-size: 1.1rem;
    }
    
    .vetur-social-link {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .vetur-book-now-btn {
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* Touch Devices - Enhanced Touch Targets */
@media (hover: none) and (pointer: coarse) {
    .vetur-filter-btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .vetur-book-now-btn {
        min-height: 44px;
        padding: 12px 25px;
    }
    
    .vetur-social-link {
        min-width: 44px;
        min-height: 44px;
    }
    
    .modal-close {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }
    
    /* Remove hover effects on touch devices */
    .vetur-artist-card:hover {
        transform: none;
    }
    
    .vetur-artist-card:hover .vetur-artist-card-inner {
        border-color: rgba(255, 255, 255, 0.25);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    .vetur-artist-card:hover .vetur-artist-image img {
        transform: none;
    }
} 