/**
 * Details Page Stylesheet
 * Styles specific to the vehicle wheel data and specifications page
 */

/* Ensure rows stay within bounds */
main .row {
    margin-left: 0;
    margin-right: 0;
}

/* Hero Section */
.details-hero {
    background: var(--gradient-primary);
    color: #FFFFFF;
    padding: 56px 32px;
    margin-bottom: 40px;
    margin-left: 0;
    margin-right: 0;
    border-radius: var(--radius-lg);
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.details-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.details-hero p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Breadcrumb */
.modern-breadcrumb {
    background: transparent;
    padding: 16px 0;
    margin-bottom: 0;
}

.modern-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.modern-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.25rem;
    color: var(--text-muted);
}

.modern-breadcrumb .breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-base);
}

.modern-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary-hover);
}

/* Selection Card */
.selection-card {
    background: var(--surface-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: none;
    margin-bottom: 24px;
    overflow: hidden;
}

.selection-card .card-header {
    background: var(--gradient-primary);
    padding: 20px 24px;
    border: none;
}

.selection-card .card-header h2 {
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.selection-card .card-body {
    padding: 24px;
}

/* Form Elements */
.modern-select {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    font-size: 1rem;
    transition: var(--transition-base);
    background: var(--surface-primary);
    color: var(--text-primary);
}

.modern-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    outline: none;
}

.modern-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: block;
}

/* Specifications Card */
.specs-card {
    background: var(--surface-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: none;
    margin-bottom: 24px;
    overflow: hidden;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.specs-card .card-header {
    background: var(--surface-secondary);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.specs-card .card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.specs-card .card-body {
    padding: 24px;
}

.specs-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Specifications Table */
.specs-table {
    margin-bottom: 32px;
}

.specs-table th,
.specs-table td {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    vertical-align: middle;
}

.specs-table th {
    background: var(--surface-secondary);
    font-weight: 600;
    color: var(--text-primary);
    width: 45%;
}

.specs-table td {
    background: var(--surface-primary);
    color: var(--text-primary);
    width: 55%;
}

.specs-table tbody tr:hover {
    background: var(--surface-hover);
}

.info-icon {
    color: var(--primary);
    font-size: 0.875rem;
}

/* Notes Section */
.notes-section {
    background: var(--warning-light);
    border-left: 4px solid var(--warning);
    padding: 16px 20px;
    margin-top: 24px;
    border-radius: var(--radius-md);
}

.notes-section p {
    margin: 0;
    color: var(--text-primary);
}

/* Modern Alerts */
.modern-alert {
    border-radius: var(--radius-md);
    padding: 16px 20px;
    border: none;
    margin-top: 24px;
}

.modern-alert.alert-warning {
    background: var(--warning-light);
    color: var(--text-primary);
}

.modern-alert.alert-info {
    background: var(--info-light);
    color: var(--text-primary);
}

/* FAQ Section */
.faq-section {
    margin-top: 48px;
}

.faq-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md) !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    color: var(--text-primary);
    background: var(--surface-primary);
    padding: 16px 20px;
}

.accordion-button:not(.collapsed) {
    background: var(--surface-secondary);
    color: var(--primary);
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    border-color: var(--primary);
}

.accordion-body {
    padding: 20px;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .details-hero {
        padding: 32px 0;
    }

    .details-hero h1 {
        font-size: 1.5rem;
    }

    .details-hero p {
        font-size: 1rem;
    }

    .specs-table th,
    .specs-table td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .specs-table th {
        width: 50%;
    }

    .specs-table td {
        width: 50%;
    }
}
