/* traffic-devices.css */

.traffic-devices-container {
    padding: 20px;
}

.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
    margin: 20px 0;
}

.device-card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 380px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border: 1px solid #e0e0e0;
}

.device-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.device-image {
    height: 120px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 15px;
}

.device-image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.device-content {
    padding: 10px 0;
    height: calc(100% - 135px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.device-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c5f41;
    margin-bottom: 15px;
    line-height: 1.3;
}

.device-description {
    font-size: 1.4rem;
    color: #4a6741;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 20px;
    text-align: left;
}

.device-btn {
    background: linear-gradient(135deg, #3D8F19, #3D8F19);
    border: none;
    color: white;
    padding: 12px 30px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(61, 143, 25, 0.3);
}

.device-btn:hover {
    background: linear-gradient(135deg, #2f6e13, #2f6e13);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(61, 143, 25, 0.4);
}

/* Responsivní design */
@media (max-width: 768px) {
    .device-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px 0;
    }
    
    .device-card {
        height: auto;
        min-height: 350px;
    }
    
    .device-title {
        font-size: 1.6rem;
    }
    
    .device-description {
        font-size: 1.3rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .device-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}