/*
 *  package: Joomill - AI Share
 *  copyright: Copyright (c) 2025. Jeroen Moolenschot | Joomill
 *  license: GNU General Public License version 3 or later
 *  link: https://www.joomill-extensions.com
 */

.share-container ul {
    overflow: visible;
}

.aishare-buttons {
    box-sizing: border-box;
    font-size: 12px;
    margin: 0;
    padding: 0;
    width: 100%;
}

.aishare-buttons:after {
    clear: both;
}

.aishare-buttons:after,
.aishare-buttons:before {
    content: " ";
    display: table;
}

.aishare-buttons li {
    box-sizing: border-box;
    float: left;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 2px;
}

.aishare-buttons li.aishare-default-prefix {
    display: flex;
    align-items: center;
}

.aishare-buttons li a,
.aishare-buttons li > span {
    box-sizing: border-box;
    border-radius: 5px;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-weight: 700;
    height: 100%;
    padding: 7px 12px;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    -webkit-transition: all .5s ease;
    transition: all .5s ease;
    width: 100%;
}

.aishare-buttons li a .aishare-icon {
    display: flex;
    align-items: center;
}

.aishare-buttons li a .aishare-icon svg {
    height: 18px;
    width: 18px;
}

.aishare-buttons li a .aishare-icon svg path {
    fill: #fff;
}

.aishare-buttons li a:active {
    box-shadow: inset 1px 3px 15px 0 rgba(22, 0, 0, 0.25);
}

.aishare-buttons li a .aishare-text {
    display: flex;
    align-items: center;
    color: #fff;
}

.aishare-buttons.reveal-text li a .aishare-text {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity 0.3s, max-width 0.3s;
}

.aishare-buttons.reveal-text li a:hover .aishare-text {
    opacity: 1;
    max-width: 100px;
}

.share-container {
    padding: 10px 0;
    display: inline-block;
}

/* AI Platform Colors */
.aishare-buttons li.aishare-chatgpt a {
    background-color: #10a37f;
}

.aishare-buttons li.aishare-chatgpt a:hover {
    background-color: #0c8166;
}

.aishare-buttons li.aishare-perplexity a {
    background-color: #6f42c1;
}

.aishare-buttons li.aishare-perplexity a:hover {
    background-color: #533193;
}

.aishare-buttons li.aishare-claude a {
    background-color: #d97757;
}

.aishare-buttons li.aishare-claude a:hover {
    background-color: #814633;
}

.aishare-buttons li.aishare-googleai a {
    background-color: #4285f4;
}

.aishare-buttons li.aishare-googleai a:hover {
    background-color: #3367d6;
}

.aishare-buttons li.aishare-grok a {
    background-color: #000000;
}

.aishare-buttons li.aishare-grok a:hover {
    background-color: #222222;
}

.aishare-mobileprefix {
    display: none;
}

/* Smartphones and Tablets */
@media (max-width: 767px) {
    .sticky-share {
        position: fixed;
        bottom: 0;
        left: 0;
        padding-left: 10px;
        right: 0;
        background: #ffffff;
        box-shadow: 2px 0 5px rgba(57, 63, 72, 0.1);
        z-index: 9999;
    }

    li.aishare-mobileprefix {
        display: flex;
    }

    li.aishare-mobileprefix span {
        padding: 12px 12px;
    }
}

/* Statistics Styles */
.aishare-statistics {
    margin: 20px 0;
}

.aishare-statistics table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.aishare-statistics table th {
    background-color: #f5f5f5;
    padding: 10px;
    text-align: center;
    border-bottom: 2px solid #ddd;
    vertical-align: middle;
}

.aishare-statistics table th svg {
    height: 24px;
    width: 24px;
    margin-bottom: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.aishare-statistics table th svg path {
    fill: currentColor;
}

.aishare-statistics table th:nth-child(1),
.aishare-statistics table th:nth-child(2) {
    text-align: left;
}

.aishare-statistics table td {
    padding: 8px 10px;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

.aishare-statistics table td:nth-child(n+3) {
    text-align: center;
    font-weight: bold;
}

/* Platform-specific colors for statistics */
.aishare-statistics table th.chatgpt svg path {
    fill: #10a37f;
}

.aishare-statistics table th.perplexity svg path {
    fill: #6f42c1;
}

.aishare-statistics table th.claude svg path {
    fill: #d97757;
}

.aishare-statistics table th.googleai svg path {
    fill: #4285f4;
}

.aishare-statistics table th.grok svg path {
    fill: #000000;
}

/* Responsive styles for statistics table */
@media (max-width: 767px) {
    .aishare-statistics {
        overflow-x: auto;
    }

    .aishare-statistics table {
        min-width: 600px;
    }
}
