/* Device Page Styles */

.device-header {
    background: linear-gradient(135deg, #00adee 0%, #0099d4 100%);
    color: white;
    padding: 120px 0 60px;
    margin-top: 70px;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: white;
}

.device-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.device-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Gallery Section */
.device-gallery {
    padding: 60px 0;
    background: white;
}

.gallery-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: start;
}

.main-image {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.thumbnail-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 460px; /* 400px image + 60px padding */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: #00adee #f1f1f1;
}

.thumbnail-container::-webkit-scrollbar {
    width: 6px;
}

.thumbnail-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.thumbnail-container::-webkit-scrollbar-thumb {
    background: #00adee;
    border-radius: 3px;
}

.thumbnail-container::-webkit-scrollbar-thumb:hover {
    background: #0099d4;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease, transform 0.2s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #00adee;
    transform: scale(1.05);
}

/* Device Info Section */
.device-info {
    padding: 60px 0;
    background: #f8f9fa;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.specifications,
.features-downloads {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.spec-table {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #e9ecef;
}

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

.spec-label {
    background: #f8f9fa;
    padding: 15px 20px;
    font-weight: 600;
    color: #333;
    border-right: 1px solid #e9ecef;
}

.spec-value {
    padding: 15px 20px;
    color: #666;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 10px 0;
    position: relative;
    padding-left: 25px;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00adee;
    font-weight: bold;
}

.downloads {
    margin-top: 40px;
}

.download-section {
    margin-bottom: 30px;
}

.download-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.download-button {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #00adee;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.download-button:hover {
    background: #0099d4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 173, 238, 0.3);
}

.download-icon {
    font-size: 1.2rem;
    margin-right: 10px;
}

.download-button small {
    display: block;
    opacity: 0.8;
    font-size: 0.85rem;
    margin-top: 2px;
}

/* Applications Section */
.applications {
    padding: 60px 0;
    background: white;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.application-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.application-card:hover {
    border-color: #00adee;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.application-card h3 {
    color: #00adee;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.application-card p {
    color: #666;
    line-height: 1.6;
}

/* Bluetooth Connection Instructions (for scanners) */
.bluetooth-instructions {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.bluetooth-steps {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.bluetooth-steps li {
    counter-increment: step-counter;
    padding: 15px 0;
    padding-left: 50px;
    position: relative;
    border-bottom: 1px solid #e9ecef;
}

.bluetooth-steps li:last-child {
    border-bottom: none;
}

.bluetooth-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 15px;
    background: #00adee;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .device-title {
        font-size: 2rem;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .thumbnail-container {
        flex-direction: row;
        justify-content: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .specifications,
    .features-downloads {
        padding: 30px 20px;
    }
    
    .spec-row {
        grid-template-columns: 1fr;
    }
    
    .spec-label {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .device-header {
        padding: 100px 0 40px;
    }
    
    .device-title {
        font-size: 1.8rem;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .main-image {
        padding: 20px;
    }
}
