/* My Garage Styles */

/* Main Garage Container */
.vpc-my-garage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.vpc-garage-title {
    font-size: 2em;
    margin-bottom: 30px;
    color: #333;
}

/* Empty Garage */
.vpc-empty-garage {
    background: #f9f9f9;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Garage Vehicles Grid */
.vpc-garage-vehicles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Single Vehicle Card */
.vpc-garage-vehicle {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
}

.vpc-garage-vehicle:hover {
    border-color: #007cba;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vpc-garage-vehicle.active {
    border-color: #00a32a;
    background: #f0faf3;
}

.vpc-vehicle-header {
    margin-bottom: 15px;
    position: relative;
}

.vpc-vehicle-nickname {
    font-size: 1.3em;
    margin: 0 0 5px 0;
    color: #333;
}

.vpc-vehicle-name {
    font-size: 1.2em;
    margin: 0;
    color: #333;
}

.vpc-vehicle-details {
    color: #666;
    font-size: 0.9em;
    display: block;
}

.vpc-active-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #00a32a;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
}

.vpc-vehicle-meta {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.vpc-added-date {
    color: #999;
    font-size: 0.85em;
}

.vpc-vehicle-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vpc-vehicle-actions .button {
    flex: 1;
    min-width: 100px;
    text-align: center;
    font-size: 0.9em;
    padding: 8px 12px;
}

.vpc-shop-button {
    background: #007cba;
    color: #fff;
    border: none;
}

.vpc-shop-button:hover {
    background: #005a87;
}

/* Add Vehicle Section */
.vpc-add-vehicle-section {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.vpc-add-vehicle-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.vpc-add-vehicle-form .vpc-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.vpc-add-vehicle-form .vpc-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.vpc-add-vehicle-form .vpc-form-field input,
.vpc-add-vehicle-form .vpc-form-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 2px;
}

.vpc-form-actions {
    margin-top: 20px;
}

/* Widget Styles */
.vpc-my-garage-widget-content {
    padding: 10px 0;
}

.vpc-no-vehicles {
    color: #666;
    font-style: italic;
}

.vpc-garage-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vpc-garage-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.vpc-garage-item:hover {
    background: #fff;
    border-color: #007cba;
}

.vpc-garage-item.active {
    border-color: #00a32a;
    background: #f0faf3;
}

.vpc-garage-item .vpc-vehicle-info {
    margin-bottom: 10px;
}

.vpc-garage-item .vpc-vehicle-name {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 3px;
}

.vpc-garage-item .vpc-vehicle-details {
    font-size: 0.85em;
    color: #666;
    display: block;
}

.vpc-garage-item .vpc-vehicle-actions {
    display: flex;
    gap: 8px;
}

.vpc-garage-item .vpc-shop-link {
    flex: 1;
    text-align: center;
    padding: 6px 12px;
    font-size: 0.85em;
    background: #007cba;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
}

.vpc-garage-item .vpc-shop-link:hover {
    background: #005a87;
}

.vpc-garage-item .vpc-remove-vehicle {
    background: transparent;
    border: none;
    color: #b32d2e;
    cursor: pointer;
    padding: 4px 8px;
}

.vpc-garage-item .vpc-remove-vehicle:hover {
    color: #dc3232;
}

.vpc-garage-item .vpc-remove-vehicle .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.vpc-add-vehicle-link {
    margin-top: 15px;
    text-align: center;
}

/* Save to Garage Button */
.vpc-save-garage-btn {
    background: #46b450;
    color: #fff;
    border: none;
    margin-left: 10px;
}

.vpc-save-garage-btn:hover {
    background: #2ea02e;
}

/* Menu Item */
.vpc-my-garage-menu .vpc-garage-count {
    font-size: 0.85em;
    color: #007cba;
}

/* Responsive */
@media (max-width: 768px) {
    .vpc-garage-vehicles {
        grid-template-columns: 1fr;
    }

    .vpc-add-vehicle-form .vpc-form-row {
        grid-template-columns: 1fr;
    }

    .vpc-vehicle-actions {
        flex-direction: column;
    }

    .vpc-vehicle-actions .button {
        width: 100%;
    }
}