/* Frontend Styles for WooCommerce Product Specifications */

.wac-specifications-wrapper {
    padding: 0;
}

/* Search functionality styles */
.wac-search-container {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
}

.wac-search-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e5e5e5;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.wac-search-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.wac-clear-search {
    background: #dc3232;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.wac-clear-search:hover {
    background: #c32525;
    transform: scale(1.1);
}

/* Print and Copy button styles */
.wac-print-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.wac-print-btn:hover {
    background: #005a87;
}

.wac-copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.wac-copy-btn:hover {
    background: #f0f0f0;
    opacity: 1;
}

.wac-copy-btn.copied {
    color: #00a32a;
    opacity: 1;
}

/* External link icon */
.external-link-icon {
    font-size: 10px;
    opacity: 0.7;
    margin-left: 3px;
}

.wac-specifications-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.wac-specifications-table-container {
    overflow-x: auto;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wac-specifications-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.wac-specification-row {
    border-bottom: 1px solid #e5e5e5;
    transition: background-color 0.3s ease;
}

.wac-specification-row:hover {
    background-color: #f8f9fa;
}

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

.wac-specification-key,
.wac-specification-value {
    padding: 15px 20px;
    vertical-align: top;
    border: none;
}

.wac-specification-key {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    width: 35%;
    padding-left: 10px !important;
    border-right: 1px solid #e5e5e5;
    text-transform: uppercase;
}

.wac-specification-value {
    background-color: #fff;
    color: #555;
    width: 65%;
}

.wac-specification-value a {
    color: #ffffff;
    text-decoration: none;
    word-break: break-all;
}

.wac-specification-value a:hover {
    color: #c8c8c8;
    text-decoration: underline;
}

.wac-specifications-tab .wac-specifications-title {
    margin-top: 0;
}

/* Datasheet download button styles */
.wac-datasheet-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wac-datasheet-btn:hover {
    background: linear-gradient(135deg, #005a87, #004567);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.4);
    color: white;
    text-decoration: none;
}

.wac-datasheet-btn:active {
    transform: translateY(0);
}

.wac-datasheet-btn .download-icon {
    font-size: 14px;
}

/* PDF specific styling */
.wac-datasheet-btn.pdf {
    background: linear-gradient(135deg, #dc3232, #a02020);
    box-shadow: 0 2px 8px rgba(220, 50, 50, 0.3);
}

.wac-datasheet-btn.pdf:hover {
    background: linear-gradient(135deg, #a02020, #801818);
    box-shadow: 0 4px 15px rgba(220, 50, 50, 0.4);
}

/* External link styles for non-datasheet links */
.wac-specification-value a:not(.wac-datasheet-btn) {
    color: #0073aa;
    text-decoration: none;
    word-break: break-all;
}

.wac-specification-value a:not(.wac-datasheet-btn):hover {
    color: #005a87;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wac-specifications-table-container {
        margin: 0 -15px;
        border-radius: 0;
    }

    .wac-specification-key,
    .wac-specification-value {
        padding: 12px 15px;
        font-size: 13px;
    }

    .wac-specification-key {
        width: 40%;
    }

    .wac-specification-value {
        width: 60%;
    }

    .wac-specifications-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
}

/* @media (max-width: 480px) {

    .wac-specifications-table,
    .wac-specification-row {
        display: block;
        width: 100%;
    }

    .wac-specification-row {
        margin-bottom: 15px;
        border: 1px solid #e5e5e5;
        border-radius: 5px;
        overflow: hidden;
    }

    .wac-specification-key,
    .wac-specification-value {
        display: block;
        width: 100%;
        border: none;
        border-radius: 0;
    }

    .wac-specification-key {
        border-bottom: 1px solid #e5e5e5;
        border-right: none;
        background-color: #0073aa;
        color: #fff;
        font-weight: 600;
        padding: 10px 15px;
    }

    .wac-specification-value {
        background-color: #fff;
        padding: 15px;
    }
} */

/* Animation for smooth transitions */
.wac-specifications-wrapper {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    .wac-specifications-wrapper {
        page-break-inside: avoid;
    }

    .wac-specification-row:hover {
        background-color: transparent;
    }

    .wac-specification-value a {
        color: #333;
        text-decoration: none;
    }

    .wac-specification-value a:after {
        content: " (" attr(href) ")";
        font-size: 11px;
        color: #666;
    }
}