/**
 * ATS Red Thread - Styles
 */

/* Container */
.ats-red-thread-container {
    position: relative;
    width: 100%;
    overflow: visible;
}

/* Wrapper */
.ats-red-thread-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Text Area */
.ats-red-thread-text-area {
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

/* Heading */
.ats-red-thread-heading {
    margin: 0;
    padding: 0;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* ===========================================
   Custom Image Thread (Recommended)
   =========================================== */
.ats-red-thread-custom-image {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: visible;
}

.ats-red-thread-custom-image img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: left bottom;
}

/* For SVG images - preserve aspect ratio */
.ats-red-thread-custom-image img[src$=".svg"] {
    object-fit: contain;
    object-position: left bottom;
}

/* ===========================================
   Default SVG Thread (Fallback)
   =========================================== */
   
/* Thread Design Container */
.ats-red-thread-design {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: auto;
    margin-top: -4px;
}

/* Thread Line */
.ats-red-thread-line {
    flex: 1;
    height: 8px;
    min-height: 8px;
}

/* Wave Container */
.ats-red-thread-wave {
    position: relative;
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    margin-left: -4px;
    margin-bottom: 0;
    align-self: flex-end;
}

.ats-red-thread-wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

/* ===========================================
   Responsive Styles
   =========================================== */
@media (max-width: 1024px) {
    .ats-red-thread-heading {
        font-size: 42px;
    }
    
    .ats-red-thread-line {
        height: 6px;
    }
    
    .ats-red-thread-wave {
        width: 160px;
        height: 120px;
    }
    
    .ats-red-thread-wave svg path {
        stroke-width: 6;
    }
    
    .ats-red-thread-custom-image,
    .ats-red-thread-custom-image img {
        height: 120px;
    }
}

@media (max-width: 767px) {
    .ats-red-thread-heading {
        font-size: 28px;
    }
    
    .ats-red-thread-line {
        height: 5px;
    }
    
    .ats-red-thread-wave {
        width: 120px;
        height: 80px;
    }
    
    .ats-red-thread-wave svg path {
        stroke-width: 5;
    }
    
    .ats-red-thread-custom-image,
    .ats-red-thread-custom-image img {
        height: 80px;
    }
}
