/* HScope Single Waveform Page Styles */

.container { max-width: 980px; margin: 0 auto; }
ul { list-style: none; margin: 0; padding: 0; }

input[type=text].yellow {
    width: 60px;
    height: 2em;
    line-height: 2em;
    text-align: center;
    background-color: yellow;
    border: solid 1px gray;
}

.result {
    text-align: center;
    font-weight: bold;
}

.red,
#offset,
#multiplier {
    color: red;
}

.row.articles .article-wrapper {
    margin-bottom: 10px;
    background-color: #FFFFFF;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.image-wrapper {
    width: 100%;
}

.article-wrapper.defect .article-description-wrapper {
    position: relative;
}

.wp-block-columns.are-vertically-aligned-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.wp-block-column:first-child {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
}

.wp-block-column:nth-child(2) {
    flex: 1 1 100%;
    position: relative;
    padding-right: 0;
    min-width: 0;
    max-width: 100%;
}

@media (min-width: 1100px) {
    .wp-block-columns.are-vertically-aligned-top {
        flex-wrap: nowrap;
        gap: 20px;
    }
    .wp-block-column:first-child {
        flex: 0 0 auto;
        max-width: 500px;
        min-width: 0;
    }
    .wp-block-column:nth-child(2) {
        flex: 1 1 0%;
        padding-right: 0;
        width: 100%;
    }
    .wp-block-column:nth-child(2) .description {
        width: 100% !important;
    }
}

@media (max-width: 1099px) {
    .wp-block-columns.are-vertically-aligned-top {
        flex-wrap: wrap;
    }
    .wp-block-column:first-child,
    .wp-block-column:nth-child(2) {
        flex: 1 1 100%;
        min-width: 0;
        max-width: 100%;
    }
}

.waveform-main-figure,
.waveform-main-figure a,
.waveform-main-figure img {
    max-width: 100%;
    height: auto;
    display: block;
}

.description figure {
    max-width: 100%;
    margin: 0;
}

.waveform-thumbnails {
    flex-wrap: wrap;
    overflow-x: auto;
}

.waveform-thumb {
    flex-shrink: 0;
}

.social-share-container {
    position: relative;
    padding: 15px;
}

.social-buttons {
    gap: 8px;
}

.entry-header .entry-title {
    word-break: break-word;
    font-size: clamp(1.2rem, 4vw, 2rem);
}

.fav_area {
    float: right;
    margin-left: 10px;
}

@media (max-width: 480px) {
    .fav_area {
        margin-right: 12px;
    }
    .waveform-thumb {
        width: 64px;
        height: 64px;
    }
    .social-button {
        width: 40px;
        height: 40px;
    }
    .waveform_table td:first-child {
        width: auto;
        white-space: normal;
    }
}

.row.articles .article-description-wrapper {
    color: #707070;
    position: relative;
    font-size: 14px;
    line-height: 1.42857143;
}

.row.articles .description,
.row.related .article-description-wrapper,
.row.articles .attachments {
    padding: 15px;
}

.description figure {
    border: 1px #9C9C9C solid;
}

.defect-icon svg {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

svg:not(:root) {
    overflow: hidden;
}

.st2 {
    fill: #9c9c9c;
}

.article-description-wrapper h2 {
    color: #9C9C9C;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    margin: 0 0 10px;
}

.article-description-wrapper p {
    margin: 0 0 10px;
}

/* Waveform Lightbox */
.waveform-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.waveform-lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.waveform-lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.waveform-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.waveform-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    text-decoration: none;
    z-index: 100001;
    cursor: pointer;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.waveform-lightbox-close:hover {
    color: #ff4444;
}

.waveform-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #fff;
    text-decoration: none;
    padding: 20px;
    cursor: pointer;
    z-index: 100001;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    user-select: none;
    transition: color 0.2s;
}

.waveform-lightbox-nav:hover {
    color: #ff4444;
}

.waveform-lightbox-prev {
    left: 10px;
}

.waveform-lightbox-next {
    right: 10px;
}

.waveform-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 12px;
    border-radius: 12px;
    z-index: 100001;
}

/* Thumbnails */
.waveform-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding: 4px;
}

.waveform-thumb {
    width: 80px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.waveform-thumb:hover {
    border-color: #375987;
}

.waveform-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Social share buttons */
.social-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.social-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    color: #fff;
}

.social-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.social-button svg {
    width: 24px;
    height: 24px;
}

.social-button.facebook {
    background: #1877f2;
}

.social-button.twitter {
    background: #1da1f2;
}

.social-button.whatsapp {
    background: #25d366;
}

.social-button.copy-link {
    background: #e0e0e0;
    color: #fff;
    position: relative;
    overflow: visible;
}

.social-button.copy-link:hover {
    background: #bdbdbd;
    color: #fff;
}

.copy-link-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 100000;
}

.copy-link-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #333;
}

.copy-link-tooltip.show {
    opacity: 1;
}

.social-button.score-box {
    background: #fff;
    border: 2px solid #e65100;
    color: #e65100;
    width: auto;
    min-width: 48px;
    padding: 0 8px;
    flex-direction: column;
    border-radius: 8px;
}

.share-text {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}
