/**
 * Styles for "Dobór czytnika kodów" help page
 * Extracted from original dobor-czytnika-kodow.php layout
 */

/* Override help-content for barcode reader - full width within column */
.help-area .help-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background-color: transparent;
}

.help-description {
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 40px;
    color: #34495e;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welder-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.welder-category {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e1e8ed;
}

.welder-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.category-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 3px solid #3498db;
}

.category-models {
    font-size: 14px;
    text-align: left;
    line-height: 1.8;
    color: #34495e;
    margin: 20px 0;
}

.model-zk90eco { color: #27ae60; font-weight: 600; }
.model-zk160eco { color: #3498db; font-weight: 600; }
.model-zk250pro { color: #f39c12; font-weight: bold; }
.model-zk90pro { color: #27ae60; font-weight: 600; }
.model-zk160pro { color: #3498db; font-weight: 600; }
.model-zk315pro { color: #e74c3c; font-weight: 600; }

/* Device-Connector Mapping */
.device-connector-section {
    margin: 50px 0;
}

.section-subtitle {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
}

.device-connector-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.device-connector-group::before {
    content: "→";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #3498db;
    font-weight: bold;
    background: white;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.device-connector-group.dual-connectors::after { display: none; }
.device-connector-group.dual-connectors::before {
    content: "→";
    color: #666;
}
.device-connector-group.dual-connectors .connector-cards-container::before,
.device-connector-group.dual-connectors .connector-cards-container::after { display: none; }

.device-side,
.connector-side {
    display: flex;
    justify-content: center;
}

.device-card,
.connector-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 400px;
    width: 100%;
}

.device-card:hover,
.connector-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.device-card img,
.connector-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid #e1e8ed;
    margin-bottom: 20px;
}

.device-info,
.connector-info {
    text-align: center;
}

.device-info h4,
.connector-info h4 {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.device-info p,
.connector-info p {
    font-size: 14px;
    color: #34495e;
    line-height: 1.5;
    margin-bottom: 15px;
}

.connector-type,
.connector-types {
    margin-top: 15px;
}

.connector-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    margin: 2px;
}

.connector-badge.rs232 {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.connector-badge.xlr {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.connector-badge.square {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.connector-card.rs232 { border-left: 4px solid #3498db; }
.connector-card.xlr { border-left: 4px solid #e74c3c; }
.connector-card.square { border-left: 4px solid #27ae60; }

.connector-card.square a {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.connector-card.square a:hover {
    transform: scale(1.02);
}

.connector-cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.connector-cards-container .connector-card {
    margin-bottom: 0;
}

.or-divider {
    text-align: center;
    margin: 20px 0;
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    position: relative;
}

.or-divider span {
    background-color: #fff;
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

.or-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e1e8ed;
    z-index: 0;
}

/* Info sections */
.info-section {
    display: flex;
    align-items: flex-start;
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.info-section .info-icon {
    width: 40px;
    height: 40px;
    margin-right: 20px;
    flex-shrink: 0;
    background: #e74c3c;
    border-radius: 50%;
    padding: 8px;
}

.info-section .info-text {
    font-size: 15px;
    line-height: 1.6;
    color: #2c3e50;
    font-weight: 500;
}

/* Requirements */
.requirements-section {
    margin: 40px 0;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.requirements-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.requirements-list {
    font-size: 15px;
    line-height: 1.6;
    color: #34495e;
}

.requirements-list ul {
    list-style: none;
    padding-left: 0;
}

.requirements-list li {
    margin-bottom: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
    border-left: 4px solid #3498db;
    transition: background-color 0.3s ease;
}

.requirements-list li:hover {
    background: #e3f2fd;
}

.requirements-list li:before {
    content: "✓";
    position: absolute;
    left: 8px;
    color: #3498db;
    font-weight: bold;
    font-size: 16px;
}

@media (max-width: 768px) {
    .welder-categories {
        grid-template-columns: 1fr;
    }

    .category-title {
        font-size: 18px;
    }

    .device-connector-group {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .device-connector-group::before {
        display: none;
    }

    .section-subtitle {
        font-size: 20px;
    }
}
