/**
 * Fiby Frontend Styles for WooCommerce Product Connection Guide & Code Tab
 */

.fiby-tab-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.6;
}

.fiby-code-intro {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 25px;
    background: #f7fafc;
    border-left: 4px solid #3182ce;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
}

.fiby-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 8px;
}

/* Connection Guide Table Styling */
.fiby-table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.fiby-table-responsive table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    text-align: left;
    font-size: 14px;
}

.fiby-table-responsive th {
    background-color: #f7fafc;
    color: #4a5568;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
}

.fiby-table-responsive td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #4d5460;
    transition: background-color 0.2s ease;
}

.fiby-table-responsive tr:last-child td {
    border-bottom: none;
}

.fiby-table-responsive tr:nth-child(even) {
    background-color: #fcfdfd;
}

.fiby-table-responsive tr:hover td {
    background-color: #f7fafc;
}

/* Tabs for Code Snippets */
.fiby-code-tabs {
    margin-top: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.fiby-code-tabs-nav {
    display: flex;
    background-color: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 10px;
}

.fiby-tab-btn {
    background: none;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #718096;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.fiby-tab-btn:hover {
    color: #2b6cb0;
}

.fiby-tab-btn.active {
    color: #3182ce;
    border-bottom-color: #3182ce;
}

.fiby-code-tabs-content {
    background-color: #2d3748;
}

.fiby-tab-pane {
    display: none;
}

.fiby-tab-pane.active {
    display: block;
}

/* Code Snippet Dark Theme */
.fiby-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a202c;
    padding: 8px 16px;
    border-bottom: 1px solid #4a5568;
}

.fiby-code-lang {
    color: #a0aec0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fiby-copy-btn {
    background-color: #4a5568;
    color: #e2e8f0;
    border: none;
    outline: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fiby-copy-btn:hover {
    background-color: #3182ce;
    color: #fff;
}

.fiby-copy-btn.copied {
    background-color: #48bb78 !important;
    color: #fff !important;
}

.fiby-tab-pane pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
    background-color: #2d3748;
}

.fiby-tab-pane code {
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 13.5px;
    color: #f7fafc;
    line-height: 1.5;
    background: none;
    padding: 0;
    border-radius: 0;
}

/* Monospace Code Styling Colors (Mock Syntax Highlighting) */
.fiby-tab-pane code {
    /* Set color variables */
    --code-comment: #718096;
    --code-keyword: #f6ad55;
    --code-string: #68d391;
    --code-function: #63b3ed;
    --code-number: #f687b3;
}
