/**
 * VIN Decoder WordPress Plugin - Styles
 * Version: 1.0.0
 */

/* Reset e Base */
.vin-decoder-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.vin-decoder-container * {
    box-sizing: border-box;
}

/* Hero Section con Gradient */
.vin-search-section {
    background: transparent;
    border-radius: 24px;
    padding: 60px 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}


.vin-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    padding: 0;
}

.vin-hero-title {
    color: #1800ad;
    font-size: 48px;
    font-weight: 800;
    margin: 0 auto 16px auto;
    line-height: 1.2;
    text-align: center !important;
    padding: 0;
}

.vin-hero-subtitle {
    color: #000000 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
    margin: 0 auto 40px auto !important;
    padding: 0 20px !important;
    max-width: 700px !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Search Box con Glassmorphism */
.vin-search-box {
    display: flex;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto 20px auto;
    background: white;
    border-radius: 16px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.vin-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    border: none;
    border-radius: 12px;
    background: white;
    color: #1a202c;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.vin-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.vin-input::placeholder {
    color: #a0aec0;
    text-transform: none;
    letter-spacing: normal;
}

.vin-search-btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    background: #1800ad;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(24, 0, 173, 0.3);
    line-height: 1;
    white-space: nowrap;
}

.vin-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 0, 173, 0.4);
    background: #1400a0;
}

.vin-search-btn:active {
    transform: translateY(0);
}

.vin-search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Icon */
.vin-icon {
    width: 20px;
    height: 20px;
}

/* Validation Message */
.vin-validation {
    min-height: 24px;
    font-size: 14px;
    margin-bottom: 20px;
}

.vin-validation.error {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
}

.vin-validation.success {
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
}


/* Loading Spinner */
.vin-loading {
    text-align: center;
    padding: 60px 20px;
}

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

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

.vin-loading p {
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
}

/* Error Message */
.vin-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
    color: #991b1b;
    font-size: 16px;
    line-height: 1.6;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
}

/* Results Section */
.vin-results-section {
    animation: fadeIn 0.5s ease;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vin-results-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.vin-action-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.vin-share-btn {
    background: #3b82f6;
    color: white;
}

.vin-share-btn:hover {
    background: #2563eb;
}

.vin-new-search-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.vin-new-search-btn:hover {
    background: #e5e7eb;
}

/* VIN Summary Section */
.vin-summary {
    margin-bottom: 40px;
}

.vin-summary-row {
    display: flex;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
}

.vin-summary-row:first-child {
    border-top: 1px solid #e5e7eb;
}

.vin-summary-label {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    width: 140px;
    flex-shrink: 0;
}

.vin-summary-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    flex: 1;
}

.vin-summary-value.vin-number {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

.vin-wmi-parts {
    display: flex;
    gap: 8px;
}

.vin-wmi-part {
    padding: 6px 14px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 14px;
}

.vin-wmi-part.wmi {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.vin-wmi-part.vds {
    background: #dbeafe;
    color: #0284c7;
    border: 1px solid #7dd3fc;
}

.vin-wmi-part.vis {
    background: #fed7aa;
    color: #c2410c;
    border: 1px solid #fdba74;
}

/* Build Sheet */
.vin-build-sheet {
    margin-top: 40px;
}

.vin-build-sheet-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Results Table */
.vin-results-table {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.vin-table-row {
    display: flex;
    padding: 14px 20px;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.15s ease;
    gap: 30px;
}

.vin-table-row:last-child {
    border-bottom: none;
}

.vin-table-row:nth-child(even) {
    background: #f9fafb;
}

.vin-table-row:hover {
    background: #f3f4f6;
}

.vin-table-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    min-width: 280px;
    flex-shrink: 0;
    padding-right: 20px;
}

.vin-table-value {
    font-size: 14px;
    font-weight: 400;
    color: #1a202c;
    flex: 1;
    word-break: break-word;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vin-search-section {
        padding: 40px 24px;
        border-radius: 16px;
    }

    .vin-hero-title {
        font-size: 32px;
    }

    .vin-hero-subtitle {
        font-size: 16px;
    }

    .vin-search-box {
        flex-direction: column;
    }

    .vin-search-btn {
        width: 100%;
        justify-content: center;
    }

    .vin-results-section {
        padding: 20px;
    }

    .vin-results-actions {
        width: 100%;
    }

    .vin-action-btn {
        flex: 1;
    }

    .vin-table-row {
        flex-direction: column;
        gap: 8px;
    }

    .vin-table-label {
        width: 100%;
        color: #6b7280;
        font-size: 13px;
    }

    .vin-summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .vin-summary-label {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .vin-hero-title {
        font-size: 28px;
    }

    .vin-results-actions {
        flex-direction: column;
    }

    .vin-summary-value.vin-number {
        font-size: 16px;
        letter-spacing: 0.5px;
    }

    .vin-wmi-parts {
        flex-wrap: wrap;
    }
}

/* Full Report Button in Table */
.vin-get-report-btn-inline {
    background: #1800ad;
    color: #FFFFFF !important;
    border: none !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    text-decoration: none !important;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    position: relative;
    line-height: normal;
}

.vin-get-report-btn-inline:hover {
    background: #1400a0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 0, 173, 0.3);
    color: #FFFFFF !important;
}

.vin-get-report-btn-inline::before,
.vin-get-report-btn-inline::after {
    content: none !important;
    display: none !important;
}

.vin-get-report-btn-inline br {
    display: none !important;
}

/* Full Report Section */
.vin-full-report-section {
    margin-top: 40px;
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.vin-full-report-btn {
    background: #1800ad;
    color: #FFFFFF !important;
    border: none !important;
    padding: 18px 48px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(24, 0, 173, 0.3);
    text-decoration: none !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    line-height: 1.2;
    white-space: nowrap;
    width: auto;
    min-width: 200px;
}

.vin-full-report-btn:hover {
    background: #1400a0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 0, 173, 0.4);
    color: #FFFFFF !important;
}

.vin-full-report-btn:active {
    transform: translateY(0);
}

.vin-full-report-btn::before,
.vin-full-report-btn::after {
    content: none !important;
    display: none !important;
}

/* Print Styles */
@media print {

    .vin-search-section,
    .vin-results-actions,
    .vin-full-report-section {
        display: none;
    }

    .vin-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}