/**
 * Theme Name: Datarefy
 * Theme URI: https://datarefy.com
 * Author: Your Name
 * Author URI: https://datarefy.com
 * Description: Custom theme for Datarefy - Data Service Provider
 * Version: 2.0.0
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: datarefy
 * Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
 */

/* ===== RESET AND BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --secondary: #00a8e8;
    --accent: #ff6b6b;
    --dark: #1a1a2e;
    --dark-blue: #16213e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #28a745;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-dark: linear-gradient(135deg, var(--dark), var(--dark-blue));
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== MODERN HEADER STYLES ===== */
header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 30px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
    padding: 5px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-identity {
    display: flex;
    flex-direction: column;
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-title a {
    text-decoration: none;
    color: inherit;
}

.site-tagline {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.main-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
}

.main-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.main-menu a:hover::after {
    width: 100%;
}

.main-menu a:hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--gradient);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: all 0.3s ease;
}

/* ===== BOOKING MODAL STYLES ===== */
.booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.booking-modal.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.booking-modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.booking-modal.active .booking-modal-content {
    transform: translateY(0);
}

.close-booking-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
    background: none;
    border: none;
}

.close-booking-modal:hover {
    color: #333;
}

.booking-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* ===== TIME SLOTS STYLES ===== */
.time-slots-container {
    margin-top: 10px;
}

.time-slots-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    display: none;
}

.time-slots-grid h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.slots-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.time-slot-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: white;
}

.time-slot-option.available {
    border-color: var(--primary);
    background-color: #f8f9ff;
}

.time-slot-option.available:hover {
    border-color: var(--primary-dark);
    background-color: #eef1ff;
    transform: translateY(-2px);
}

.time-slot-option.selected {
    border-color: var(--primary-dark);
    background-color: var(--primary);
    color: white;
}

.time-slot-option.selected .slot-time,
.time-slot-option.selected .slot-status {
    color: white;
}

.time-slot-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.slot-time {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.slot-status {
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
}

.time-slot-option.booked {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.time-slot-option.booked .slot-status {
    color: #dc3545;
}

.no-slots-available {
    text-align: center;
    padding: 30px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #666;
    border: 2px dashed #dee2e6;
}

/* ===== MEETING TYPE OPTIONS ===== */
.meeting-type-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.meeting-type-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.meeting-type-option:hover {
    border-color: var(--primary);
    background: #f8f9fa;
}

.meeting-type-option input[type="radio"]:checked + .meeting-type-label {
    color: var(--primary);
    font-weight: 600;
}

.meeting-type-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
}

.meeting-icon {
    font-size: 1.2rem;
}

/* ===== BUTTON STYLES ===== */
.booking-modal-trigger,
.submit-booking-btn,
.close-success-btn,
.copy-link-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.booking-modal-trigger {
    padding: 15px 30px;
    font-size: 1rem;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.booking-modal-trigger:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
}

.submit-booking-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.submit-booking-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.submit-booking-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.close-success-btn {
    padding: 12px 30px;
    margin-top: 1rem;
}

.copy-link-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.copy-link-btn:hover {
    background: var(--primary-dark);
}

/* ===== SUCCESS MESSAGE STYLES ===== */
.booking-success {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.booking-success h4 {
    color: #28a745;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.meet-link-container {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary);
}

.meet-link {
    display: block;
    word-break: break-all;
    color: var(--primary);
    text-decoration: none;
    margin: 10px 0;
    font-weight: 500;
}

.meet-link:hover {
    text-decoration: underline;
}

.meeting-reminder {
    color: #666;
    font-style: italic;
    margin: 1rem 0;
}

/* ===== SINGLE SERVICE PAGE STYLES ===== */
.service-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.service-header h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.service-featured-image {
    margin: 3rem 0;
}

.service-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.booking-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    margin: 4rem 0;
    border: 1px solid #e9ecef;
}

.booking-section h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.8rem;
}

.back-to-services {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
    padding: 10px 20px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-to-services:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ===== FOOTER STYLES ===== */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* ===== LOADING AND ERROR STATES ===== */
.loading, .error-message {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.error-message {
    color: var(--accent);
}

/* ===== SERVICE DETAIL PAGE CONTAINER ONLY ===== */
.service-detail-page {
    margin-top: 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 4rem 0;
}

.service-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-detail-split {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

/* Left Side - Service Content Only */
.service-detail-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-detail-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-weight: 800;
    line-height: 1.2;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.5rem;
}

.service-detail-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem 0;
    color: var(--dark);
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 102, 204, 0.1);
}

.service-detail-content h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
    color: var(--primary);
    font-weight: 600;
}

.service-detail-content p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.7;
    font-size: 1.1rem;
}

.service-detail-content ul,
.service-detail-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.service-detail-content li {
    margin-bottom: 0.75rem;
    color: #555;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Right Side - Your existing booking sidebar */
.booking-sidebar {
    position: sticky;
    top: 120px;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.booking-sidebar-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 102, 204, 0.1);
}

.booking-sidebar-header h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 700;
}

.price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.price-note {
    color: var(--gray);
    font-size: 0.95rem;
}

.booking-features {
    margin: 2rem 0;
}

.booking-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(0, 102, 204, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.booking-feature-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.booking-feature-text {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* ===== COMPACT BOOKING FORM STYLES ===== */
.compact-booking-form {
    margin-top: 1.5rem;
}

.compact-booking-form .form-group {
    margin-bottom: 1.25rem;
}

.compact-booking-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.compact-booking-form input,
.compact-booking-form select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.compact-booking-form input:focus,
.compact-booking-form select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Time Slots in Compact Form */
.time-slots-container-compact {
    margin-top: 1rem;
}

.time-slots-loading-compact {
    text-align: center;
    padding: 1rem;
    color: #666;
    display: none;
}

.time-slots-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.time-slot-compact {
    padding: 12px 8px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    background: white;
    font-weight: 500;
}

.time-slot-compact.available {
    border-color: var(--primary);
    background: #f8f9ff;
    color: var(--primary);
}

.time-slot-compact.available:hover {
    border-color: var(--primary-dark);
    background: #eef1ff;
    transform: translateY(-2px);
}

.time-slot-compact.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Submit Button */
.submit-booking-btn-compact {
    width: 100%;
    padding: 15px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.submit-booking-btn-compact:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.submit-booking-btn-compact:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-text, .btn-loading {
    display: inline-block;
}

.btn-loading {
    display: none;
}

/* ===== COMPACT FORM MEETING TYPE STYLES ===== */
.compact-booking-form fieldset {
    border: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
}

.compact-booking-form legend {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
    width: 100%;
}

.compact-booking-form .meeting-type-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.compact-booking-form .meeting-type-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.compact-booking-form .meeting-type-option:hover {
    border-color: var(--primary);
    background: #f8f9fa;
}

.compact-booking-form .meeting-type-option input[type="radio"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
}

.compact-booking-form .meeting-type-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
    font-size: 0.95rem;
}

.compact-booking-form .meeting-icon {
    font-size: 1.1rem;
}

/* Selected state */
.compact-booking-form .meeting-type-option input[type="radio"]:checked {
    accent-color: var(--primary);
}

.compact-booking-form .meeting-type-option:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background: #f0f7ff;
}

.compact-booking-form .meeting-type-option input[type="radio"]:checked + .meeting-type-label {
    color: var(--primary);
    font-weight: 600;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .service-detail-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .booking-sidebar {
        position: static;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-actions {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-active .nav-actions {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .mobile-menu-active .main-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .service-detail-page {
        padding: 2rem 0;
    }
    
    .service-detail-container {
        padding: 0 1.5rem;
    }
    
    .service-detail-content,
    .booking-sidebar {
        padding: 2rem;
    }
    
    .service-detail-content h1 {
        font-size: 2rem;
    }
    
    .service-detail-content h3 {
        font-size: 1.6rem;
    }
    
    .booking-section {
        padding: 2rem;
    }
    
    .booking-modal-content {
        padding: 2rem 1.5rem;
        margin: 10px;
    }
    
    .booking-modal {
        padding: 10px;
    }
    
    .meeting-type-options {
        gap: 8px;
    }
    
    .meeting-type-option {
        padding: 12px;
    }
    
    .slots-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .time-slot-option {
        padding: 10px 6px;
    }
    
    .slot-time {
        font-size: 0.9rem;
    }
    
    .time-slots-grid-compact {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .service-detail-content,
    .booking-sidebar {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .service-detail-content h1 {
        font-size: 1.8rem;
    }
    
    .price {
        font-size: 1.5rem;
    }
    
    .slots-list {
        grid-template-columns: repeat(2, 1fr);
    }
}