/* Device Detail Styles */

.device-header {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.device-gallery-main {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.device-main-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.device-info {
    flex: 1.5;
    min-width: 300px;
}

.device-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.device-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.status-active {
    background: #e6f4ea;
    color: #1e7e34;
}

.status-upcoming {
    background: #e8f0fe;
    color: #1967d2;
}

.status-discontinued {
    background: #fce8e6;
    color: #c5221f;
}

.key-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.key-spec-item {
    text-align: center;
}

.key-spec-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.key-spec-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
}

.key-spec-value {
    display: block;
    font-weight: bold;
    color: #333;
}

/* Specs Accordion */
.specs-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.spec-group {
    border-bottom: 1px solid #eee;
}

.spec-group-header {
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spec-group-header:hover {
    background: #f1f3f4;
}

.spec-group-header::after {
    content: '+';
    font-size: 1.2rem;
    color: #666;
}

.spec-group.active .spec-group-header::after {
    content: '-';
}

.spec-group-content {
    display: none;
    padding: 0;
}

.spec-group.active .spec-group-content {
    display: block;
}

.spec-row {
    display: flex;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid #f1f1f1;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-key {
    width: 35%;
    color: #555;
    font-weight: 500;
}

.spec-val {
    width: 65%;
    color: #333;
}

/* Related Devices */
.related-devices {
    margin-top: 3rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.related-card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
    /* reformatted from flex to block for link */
}

.related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.related-img {
    height: 120px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.related-name {
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.related-brand {
    font-size: 0.8rem;
    color: #666;
}