/*
Theme Name: Understrap Child - Vehicle Lineart MVP
Description: Child theme for Vehicle Lineart MVP with custom functions
Author: Vehicle Lineart Team
Version: 1.0.0
Template: understrap
*/

@import url("../understrap/style.css");

/* Remove all top spacing on homepage */
body.home {
    margin: 0 !important;
    padding: 0 !important;
}

body.home #front-page-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home .hero-section {
    margin-top: 0 !important;
    padding-top: 3rem !important;
}

/* Remove any admin bar spacing on frontend */
body.home.admin-bar {
    padding-top: 0 !important;
}

/* Additional white space removal for homepage */
body.home #wrapper-hero,
body.home #wrapper-navbar,
body.home .navbar,
body.home #main,
body.home #content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home #wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure no top margins on containers */
body.home .container,
body.home .container-fluid {
    margin-top: 0 !important;
}

/* Remove any Bootstrap default margins */
body.home .row:first-child {
    margin-top: 0 !important;
}

/* Custom styles for Vehicle Lineart MVP */
.vehicle-upload-section {
    margin: 20px 0;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: #f9f9f9;
}

.vehicle-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.vehicle-upload-item {
    text-align: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
}

.vehicle-upload-item input[type="file"] {
    margin-bottom: 10px;
}

.vehicle-preview {
    max-width: 100%;
    max-height: 150px;
    margin-top: 10px;
    border: 1px solid #ddd;
}

.processing-status {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    font-weight: bold;
}

.processing-status.pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.processing-status.processing {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.processing-status.completed {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.processing-status.failed {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Homepage Custom Styles */
.min-vh-75 {
    min-height: 75vh;
}

.hero-section {
    background: var(--charcoal);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.1;
}

/* Hero Visual Components */
.hero-visual-container {
    position: relative;
    z-index: 2;
}

.process-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.process-step {
    text-align: center;
    flex: 0 0 auto;
}

.process-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.process-icon:hover {
    transform: scale(1.1);
}

.process-icon i {
    font-size: 1.8rem;
}

.process-arrow {
    font-size: 1.2rem;
    opacity: 0.7;
}

.stat-badge {
    transition: transform 0.3s ease;
}

.stat-badge:hover {
    transform: translateY(-2px);
}

/* Solution Showcase */
.solution-showcase {
    position: relative;
}

.before-after-demo {
    border: 2px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.before-after-demo:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

.demo-image {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.demo-item:hover .demo-image {
    border-color: #007cba;
    transform: scale(1.02);
}

.problem-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #dc3545;
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1);
}

.problem-card i {
    background: rgba(220, 53, 69, 0.1);
    padding: 15px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-list li {
    position: relative;
    padding-left: 1.5rem;
}

.solution-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #007cba;
    font-weight: bold;
    font-size: 1.2em;
}

.step-card {
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-3px);
}

.testimonial-card {
    transition: transform 0.3s ease;
    border: 1px solid #e9ecef;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.stats-row .stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.btn-success {
    background: var(--success);
    border: none;
    font-weight: 600;
    padding: 14px 35px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
    text-transform: none;
    font-size: 16px;
}

.btn-success:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.btn-outline-light {
    font-weight: 600;
    padding: 14px 35px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-lg {
    font-size: 16px;
    padding: 14px 35px;
}

/* Trust indicators */
.trust-indicators {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-indicators small {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.trust-indicators small:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .display-5 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-visual-container {
        margin-top: 2rem;
    }
    
    .process-flow {
        flex-direction: column;
        gap: 15px;
    }
    
    .process-arrow {
        transform: rotate(90deg);
    }
    
    .process-icon {
        width: 60px;
        height: 60px;
    }
    
    .hero-stats .col-4 {
        margin-bottom: 10px;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
        padding: 16px 25px;
    }
    
    .benefits-list {
        margin-bottom: 2rem;
    }
    
    .problem-card,
    .step-card,
    .testimonial-card {
        margin-bottom: 1.5rem;
    }
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section .container > .row {
    animation: fadeInUp 0.8s ease-out;
}

/* FontAwesome 4.x fixes - prioritize working font formats */
@font-face {
    font-family: FontAwesome;
    src: url("../understrap/fonts/fontawesome-webfont.eot?v=4.7.0");
    src: url("../understrap/fonts/fontawesome-webfont.eot?#iefix&v=4.7.0") format("embedded-opentype"),
         url("../understrap/fonts/fontawesome-webfont.woff?v=4.7.0") format("woff"),
         url("../understrap/fonts/fontawesome-webfont.ttf?v=4.7.0") format("truetype"),
         url("../understrap/fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular") format("svg");
    font-weight: 400;
    font-style: normal;
}

/* Vehicle Dashboard Styles */
.vehicle-app-dashboard {
    margin: 0 !important;
    padding: 0 !important;
}

.vehicle-app-dashboard .container-fluid {
    max-width: none;
    padding: 20px;
}

.dashboard-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.dashboard-nav .nav-pills .nav-link {
    color: #6c757d;
    border-radius: 8px;
    margin-bottom: 5px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.dashboard-nav .nav-pills .nav-link:hover {
    background-color: #e9ecef;
    color: #495057;
}

.dashboard-nav .nav-pills .nav-link.active {
    background-color: #007cba;
    color: white;
}

.user-info {
    border: 1px solid #dee2e6;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.avatar-placeholder {
    font-weight: bold;
    font-size: 1.2rem;
}

.tab-content {
    min-height: 600px;
}

.upload-section, .gallery-section, .account-section, .billing-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.product-description {
    border: 1px solid #dee2e6;
}

.vehicle-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #dee2e6;
}

.vehicle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.empty-state {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
}

.upload-images img {
    border-radius: 4px;
}

.stat-item {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.stat-item:last-child {
    border-bottom: none;
}

.pricing-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* Responsive adjustments for dashboard */
@media (max-width: 768px) {
    .dashboard-sidebar {
        position: static;
        margin-bottom: 20px;
    }
    
    .vehicle-app-dashboard .container-fluid {
        padding: 10px;
    }
    
    .upload-section, .gallery-section, .account-section, .billing-section {
        padding: 20px;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 15px;
    }
    
    .pricing-info {
        text-align: center !important;
    }
}

/* Badge improvements */
.badge {
    font-size: 0.75em;
    padding: 0.35em 0.65em;
}

.badge.bg-primary {
    background-color: #007cba !important;
}

/* Button improvements */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

.btn-outline-danger:hover {
    color: white;
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Contact Form 7 - Fix message styling */
.wpcf7-response-output {
    border: 2px solid #46b450 !important;
    background-color: #f0f9f0 !important;
    color: #155724 !important;
    padding: 15px !important;
    margin-top: 15px !important;
    border-radius: 4px !important;
}

.wpcf7-mail-sent-ok {
    border-color: #46b450 !important;
    background-color: #f0f9f0 !important;
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
    border-color: #dc3232 !important;
    background-color: #fff8f8 !important;
    color: #721c24 !important;
}

.wpcf7-spam-blocked {
    border-color: #ffb900 !important;
    background-color: #fff9e6 !important;
    color: #856404 !important;
}

/* Ensure CF7 messages are visible */
.wpcf7-response-output {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.wpcf7-response-output::before {
    content: '✓ ' !important;
    font-weight: bold !important;
    margin-right: 5px !important;
}

.wpcf7-validation-errors::before {
    content: '✗ ' !important;
}
