/* =========================================================
   ASSETS/CSS/FONTIG.CSS - STICKY INPUT, ANIMATIONS & NO OVERFLOW
   ========================================================= */

html, body {
    overflow-x: clip; /* Eliminates Horizontal Scroll */
    width: 100%;
}

/* Main Container */
#main {
    max-width: 900px;
    margin: 15px auto;
    padding: 0 12px;
}

/* STICKY INPUT SECTION (STICKS TO TOP ON SCROLL) */
.input-section-card {
    background: #fcf9fc;
    padding: 10px 0;
    margin-bottom: 12px;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 999;
}
.input-action-group {
    display: flex;
    align-items: center;
    background: #fff;
    border: 3px solid #ff5f0f;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 95, 15, 0.15);
}
.ff-input {
    flex: 1;
    min-width: 0;
    font-size: 15px; /* Requested 15px */
    font-weight: bold;
    text-align: left;
    padding: 18px 14px;
    border: none;
    outline: none;
    background: transparent;
    color: #222;
}
.action-btn {
    background: #f7f4f8;
    border: none;
    color: #555;
    padding: 11px 14px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #ebdfee;
}
.action-btn.btn-clear:hover { background: #dc2626; color: #fff; }

.ff-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 11px;
    color: #666;
    padding: 0 4px;
}
.char-counter {
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #15803d;
    background: #dcfce7;
}

/* Output Cards */
.output-item-wrap {
    position: relative;
    cursor: pointer;
    margin-bottom: 2px;
}
.output {
    font-size: 18px;
    display: block;
    width: 100%;
    padding: 21px 45px 22px 12px;
    outline: 0;
    border: none;
    background: #fff;
    cursor: pointer;
}
span.copybtn {
    color: #323331;
    padding: 16px 12px;
    width: 100%;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
    margin-top: -58px;
    position: relative;
    float: right;
    border-radius: 5px;
    border: 1px solid #dadada;
    pointer-events: none;
    transition: 0.2s;
}
.output-item-wrap:hover span.copybtn {
    border: 1px solid #ff5f0f !important;
    color: #ff5f0f;
}
i.fa-regular.fa-paste {
    float: right;
    font-size: 1.7em;
    transition: transform 0.2s;
}

/* COPY ZOOM IN / ZOOM OUT PULSE ANIMATION */
@keyframes iconZoomPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.45); color: #ff5f0f; }
    100% { transform: scale(1); }
}
.copy-zoom i.fa-regular.fa-paste {
    animation: iconZoomPulse 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Load More Button */
p.loadmore {
    text-align: center;
    clear: both;
    margin: 20px 0;
}
#loading, .loadmore-btn-style {
    font-size: 18px;
    padding: 12px 35px;
    margin: 15px 0 5px; 
    outline: 0;
    width: 50%;
    background: #eee;
    color: #ff5f0f;
    border: 1px solid #f0eded;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    box-shadow: 2px 2px 1px 1px #ff5f0f61;
    font-weight: bold;
    transition: 0.25s;
    display: inline-block;
}
#loading:hover, .loadmore-btn-style:hover {
    background: linear-gradient(90deg, #ff0f7b 0%, hsla(33, 94%, 57%, 1) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 95, 15, 0.35);
}

/* CATEGORY PILLS (NO CLIPPING) */
.category-pills {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    padding: 6px 10px 12px 10px;
    margin-bottom: 15px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    justify-content: flex-start;
}
.category-pills::-webkit-scrollbar { display: none; }
@media (min-width: 800px) {
    .category-pills { justify-content: safe center; }
}
.category-btn {
    flex: 0 0 auto;
    border: 1px solid #ff5f0f80;
    background: #fff;
    color: #ff5f0f;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.category-btn.active, .category-btn:hover {
    background: linear-gradient(90deg, #ff5f0f, #fe107b);
    color: #fff;
    border-color: transparent;
}

/* FOOTER GRID (EVENLY BALANCED) */
.footer {
    background: #fff;
    border-radius: 30px;
    padding: 2em;
    width: 100%;
}
.footer-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    width: 100%;
    margin-bottom: 25px;
}

@media only screen and (max-width: 850px) {
    #main { margin: 10px auto 0 auto !important; width: 100% !important; padding: 0 8px; }
    .output { font-size: 14px; padding: 16px 45px 16px 10px; }
    span.copybtn { margin-top: -48px; padding: 12px 10px; }
    .footer { padding: 1.2em; border-radius: 20px; }
}
@media only screen and (max-width: 600px) {
    #loading, .loadmore-btn-style { width: 90% !important; font-size: 16px; }
}