/*
|--------------------------------------------------------------------------
| YTThumbnailHD
| Main Tool Styles
|--------------------------------------------------------------------------
*/


/* ==========================================================================
   Main Tool Section
   ========================================================================== */

.main-section {
    padding: 55px 0 70px;
    background: #f5f8ff;
}

.tool-container {
    max-width: 1100px;
}

.tool-introduction {
    max-width: 850px;
    margin: 0 auto 30px;
    text-align: center;
}

.tool-introduction h1 {
    margin: 0 0 16px;
    color: #0b3c8a;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.25;
}

.tool-introduction p {
    max-width: 780px;
    margin: 0 auto 10px;
    color: #4e5b78;
    font-size: 16px;
    line-height: 1.7;
}

.tool-introduction p:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   Thumbnail Downloader
   ========================================================================== */

.thumbnail-downloader {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;

    background: #ffffff;

    border: 1px solid #e4eaf4;
    border-radius: 12px;

    box-shadow:
        0 8px 30px rgba(27, 61, 112, 0.08);
}

.thumbnail-downloader form label {
    display: block;

    margin-bottom: 9px;

    color: #172b4d;

    font-size: 15px;
    font-weight: 600;
}


/* ==========================================================================
   Input Group
   ========================================================================== */

.thumbnail-input-group {
    display: flex;

    width: 100%;

    gap: 10px;
}


/* ==========================================================================
   Input Wrapper
   ========================================================================== */

.thumbnail-input-wrap {
    position: relative;

    flex: 1;

    min-width: 0;
}


/* ==========================================================================
   URL Input
   ========================================================================== */

.thumbnail-input-wrap input {
    display: block;

    width: 100%;

    height: 50px;

    box-sizing: border-box;

    padding:
        0 52px 0 16px;

    background: #ffffff;

    border: 1px solid #cfd8e8;
    border-radius: 7px;

    outline: none;

    color: #172b4d;

    font-family: inherit;
    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.thumbnail-input-wrap input::placeholder {
    color: #8a96aa;
}

.thumbnail-input-wrap input:focus {
    border-color: #0b5ed7;

    box-shadow:
        0 0 0 3px rgba(11, 94, 215, 0.10);
}


/* ==========================================================================
   Paste Icon Button
   ========================================================================== */

.paste-icon-button {
    position: absolute;

    top: 50%;
    right: 7px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    padding: 0;

    box-sizing: border-box;

    transform: translateY(-50%);

    border: 0;

    border-radius: 6px;

    background: transparent;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.paste-icon-button img {
    display: block;

    width: 19px;
    height: 19px;

    object-fit: contain;

    opacity: 0.75;

    transition:
        opacity 0.2s ease;
}

.paste-icon-button:hover {
    background: #eef3fa;
}

.paste-icon-button:hover img {
    opacity: 1;
}

.paste-icon-button:active {
    transform:
        translateY(-50%)
        scale(0.95);
}

.paste-icon-button:disabled {
    opacity: 0.6;

    cursor: not-allowed;
}

.paste-icon-button:focus-visible {
    outline: 2px solid #0b5ed7;

    outline-offset: 1px;
}


/*
 * Paste success state.
 */

.paste-icon-button.paste-success {
    background: #eaf5ec;
}

.paste-icon-button.paste-success img {
    opacity: 1;
}


/* ==========================================================================
   Get Thumbnails Button
   ========================================================================== */

.thumbnail-input-group > #download-thumbnail {
    flex: 0 0 auto;

    min-width: 160px;

    height: 50px;

    padding: 0 22px;

    border: 0;
    border-radius: 7px;

    background: #fc5531;

    color: #ffffff;

    cursor: pointer;

    font-family: inherit;

    font-size: 15px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.thumbnail-input-group > #download-thumbnail:hover {
    background: #e84421;
}

.thumbnail-input-group > #download-thumbnail:active {
    transform: translateY(1px);
}

.thumbnail-input-group > #download-thumbnail:disabled {
    opacity: 0.65;

    cursor: not-allowed;
}


/* ==========================================================================
   Short Line
   ========================================================================== */

.short-line {
    margin: 13px 0 0;

    color: #7b879f;

    font-size: 13px;

    text-align: center;
}


/* ==========================================================================
   Thumbnail Results
   ========================================================================== */

.thumbnail-result {
    margin-top: 35px;

    padding-top: 30px;

    border-top: 1px solid #e7ecf5;
}

.thumbnail-result[hidden] {
    display: none;
}

.results-heading {
    margin: 0 0 22px;

    color: #0b3c8a;

    font-size: 25px;
    font-weight: 700;

    text-align: center;
}


/* ==========================================================================
   Thumbnail Grid
   ========================================================================== */

.thumbnail-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}


/* ==========================================================================
   Thumbnail Card
   ========================================================================== */

.thumbnail-card {
    min-width: 0;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e3e9f3;
    border-radius: 10px;

    box-shadow:
        0 5px 20px rgba(27, 61, 112, 0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.thumbnail-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 9px 28px rgba(27, 61, 112, 0.10);
}


/* ==========================================================================
   Thumbnail Image
   ========================================================================== */

.thumbnail-image-wrapper {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #f0f3f8;
}

.thumbnail-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    background: #f0f3f8;
}


/* ==========================================================================
   Thumbnail Card Content
   ========================================================================== */

.thumbnail-card-content {
    padding: 17px;
}

.thumbnail-title {
    margin: 0 0 7px;

    color: #172b4d;

    font-size: 18px;
    font-weight: 700;

    line-height: 1.4;
}

.thumbnail-dimensions {
    min-height: 20px;

    margin-bottom: 13px;

    color: #6c7890;

    font-size: 13px;

    line-height: 1.5;
}


/* ==========================================================================
   Best Available Badge
   ========================================================================== */

.thumbnail-best-badge {
    display: inline-flex;

    align-items: center;

    margin-bottom: 10px;

    padding: 5px 9px;

    background: #eaf2ff;

    border-radius: 5px;

    color: #0b5ed7;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.3;
}


/* ==========================================================================
   Thumbnail URL
   ========================================================================== */

.thumbnail-url {
    width: 100%;

    margin-bottom: 14px;
}

.thumbnail-url input {
    display: block;

    width: 100%;

    height: 38px;

    box-sizing: border-box;

    padding: 0 10px;

    background: #ffffff;

    border: 1px solid #d3dce9;
    border-radius: 6px;

    color: #6c7890;

    font-family: inherit;
    font-size: 12px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.thumbnail-url input:focus {
    border-color: #0b5ed7;

    box-shadow:
        0 0 0 3px rgba(11, 94, 215, 0.08);
}


/* ==========================================================================
   Thumbnail Actions
   ========================================================================== */

.thumbnail-actions {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 8px;
}

.thumbnail-actions button,
.thumbnail-actions a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-width: 0;

    min-height: 38px;

    padding: 0 8px;

    box-sizing: border-box;

    border-radius: 6px;

    font-family: inherit;

    font-size: 12px;
    font-weight: 600;

    line-height: 1.2;

    text-align: center;
    text-decoration: none;

    cursor: pointer;
}

.thumbnail-download {
    border: 0;

    background: #fc5531;

    color: #ffffff;
}

.thumbnail-download:hover {
    background: #e84421;
}

.thumbnail-download:disabled {
    opacity: 0.65;

    cursor: not-allowed;
}

.thumbnail-open {
    border: 0;

    background: #0b5ed7;

    color: #ffffff;
}

.thumbnail-open:hover {
    background: #084da8;
}

.thumbnail-copy {
    border: 1px solid #d7e0ec;

    background: #f3f6fa;

    color: #27456f;
}

.thumbnail-copy:hover {
    background: #e7edf5;
}

.thumbnail-actions button:focus-visible,
.thumbnail-actions a:focus-visible {
    outline: 2px solid #0b5ed7;

    outline-offset: 2px;
}


/* ==========================================================================
   Loading / Error Messages
   ========================================================================== */

.thumbnail-message {
    width: 100%;

    box-sizing: border-box;

    padding: 16px 18px;

    border-radius: 8px;

    font-size: 14px;

    line-height: 1.6;

    text-align: center;
}

.thumbnail-message.loading {
    background: #eef4ff;

    border: 1px solid #d8e5fb;

    color: #0b5ed7;
}

.thumbnail-message.error {
    background: #fff4f1;

    border: 1px solid #ffd8cf;

    color: #c4371c;
}


/* ==========================================================================
   How to Download
   ========================================================================== */

.download-section {
    padding: 70px 0;

    background: #ffffff;
}

.section-title {
    max-width: 850px;

    margin: 0 auto 13px;

    color: #0b3c8a;

    font-size: 30px;
    font-weight: 700;

    line-height: 1.35;

    text-align: center;
}

.section-desc {
    max-width: 800px;

    margin: 0 auto 35px;

    color: #5f6f94;

    font-size: 15px;

    line-height: 1.75;

    text-align: center;
}

.download-features {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;

    margin-top: 35px;
}

.download-card {
    padding: 28px 24px;

    background: #f8faff;

    border: 1px solid #e5ebf5;
    border-radius: 10px;

    text-align: center;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.download-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 25px rgba(27, 61, 112, 0.08);
}

.download-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: #eaf2ff;

    color: #0b5ed7;

    font-size: 25px;
    font-weight: 500;
}

.download-card h3 {
    margin: 0 0 10px;

    color: #172b4d;

    font-size: 19px;
    font-weight: 700;
}

.download-card p {
    margin: 0;

    color: #5f6f94;

    font-size: 14px;

    line-height: 1.7;
}


/* ==========================================================================
   Content Sections
   ========================================================================== */

.content-section {
    padding: 70px 0;

    background: #f5f8ff;
}

.about-tool-section {
    background: #ffffff;
}

.content-container {
    max-width: 900px;
}

.content-container .section-desc {
    margin-bottom: 18px;
}

.content-container .section-desc:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   Why Thumbnail Section
   ========================================================================== */

.why-thumbnail-section {
    padding: 70px 0;

    background: #ffffff;
}

.benefit-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;

    margin-top: 35px;
}

.info-card {
    padding: 27px 24px;

    background: #f8faff;

    border: 1px solid #e5ebf5;
    border-radius: 10px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(27, 61, 112, 0.07);
}

.info-card h3 {
    margin: 0 0 10px;

    color: #172b4d;

    font-size: 19px;
    font-weight: 700;
}

.info-card p {
    margin: 0;

    color: #5f6f94;

    font-size: 14px;

    line-height: 1.7;
}


/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-section {
    padding: 70px 0;

    background: #f5f8ff;
}

.faq-wrapper {
    max-width: 850px;

    margin: 35px auto 0;
}

.faq-item {
    margin-bottom: 12px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e2e8f2;
    border-radius: 8px;
}

.faq-question {
    display: flex;

    align-items: center;
    justify-content: space-between;

    width: 100%;

    gap: 20px;

    padding: 18px 20px;

    border: 0;

    background: #ffffff;

    color: #172b4d;

    cursor: pointer;

    font-family: inherit;

    font-size: 15px;
    font-weight: 600;

    text-align: left;
}

.faq-question:hover {
    background: #fafcff;
}

.faq-question:focus {
    outline: none;
}

.faq-question:focus-visible {
    outline: 2px solid #0b5ed7;

    outline-offset: -2px;
}

.faq-icon {
    flex: 0 0 auto;

    color: #0b5ed7;

    font-size: 22px;
    font-weight: 400;

    line-height: 1;

    transition:
        transform 0.2s ease;
}

.faq-answer {
    display: none;

    padding: 0 20px 18px;

    background: #f9fbff;
}

.faq-answer p {
    margin: 0;

    color: #5f6f94;

    font-size: 14px;

    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}


/* ==========================================================================
   Latest Blog Section
   ========================================================================== */

.latest-blog-section {
    padding: 70px 0;

    background: #ffffff;
}

.latest-blog-section .section-heading {
    margin-bottom: 35px;
}

.latest-blog-section .section-heading h2 {
    margin: 0 0 12px;

    color: #0b3c8a;

    font-size: 30px;
    font-weight: 700;

    line-height: 1.3;

    text-align: center;
}

.latest-blog-section .section-heading p {
    max-width: 720px;

    margin: 0 auto;

    color: #5f6f94;

    font-size: 15px;

    line-height: 1.7;

    text-align: center;
}


/* ==========================================================================
   Blog View More
   ========================================================================== */

.blog-view-more {
    margin-top: 35px;

    text-align: center;
}

.blog-view-more .load-more {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0 25px;

    background: #fc5531;

    border-radius: 7px;

    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.2s ease;
}

.blog-view-more .load-more:hover {
    background: #e84421;
}


/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 900px) {

    .main-section {
        padding: 45px 0 60px;
    }

    .tool-introduction h1 {
        font-size: 35px;
    }

    .thumbnail-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .download-features,
    .benefit-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .download-card:last-child,
    .info-card:last-child {
        grid-column: 1 / -1;

        max-width: calc(50% - 12px);

        width: 100%;

        margin: 0 auto;
    }

}


/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 600px) {

    .main-section {
        padding: 35px 0 45px;
    }

    .tool-introduction {
        margin-bottom: 22px;
    }

    .tool-introduction h1 {
        font-size: 29px;
    }

    .tool-introduction p {
        font-size: 14px;

        line-height: 1.65;
    }


    /* ----------------------------------------------------------------------
       Downloader
       ---------------------------------------------------------------------- */

    .thumbnail-downloader {
        padding: 20px 16px;

        border-radius: 9px;
    }

    .thumbnail-input-group {
        flex-direction: column;

        gap: 10px;
    }

    .thumbnail-input-wrap {
        width: 100%;
    }

    .thumbnail-input-wrap input {
        width: 100%;

        height: 48px;

        padding:
            0 48px 0 13px;

        font-size: 14px;
    }

    .paste-icon-button {
        right: 6px;

        width: 36px;
        height: 36px;
    }

    .paste-icon-button img {
        width: 18px;
        height: 18px;
    }

    .thumbnail-input-group > #download-thumbnail {
        width: 100%;

        min-width: 0;

        height: 48px;

        min-height: 48px;

        padding: 0 16px;

        font-size: 14px;
    }


    /* ----------------------------------------------------------------------
       Results
       ---------------------------------------------------------------------- */

    .thumbnail-result {
        margin-top: 28px;

        padding-top: 25px;
    }

    .results-heading {
        margin-bottom: 18px;

        font-size: 23px;
    }

    .thumbnail-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .thumbnail-card-content {
        padding: 15px;
    }

    .thumbnail-title {
        font-size: 17px;
    }

    .thumbnail-dimensions {
        font-size: 13px;
    }

    .thumbnail-url input {
        height: 40px;

        font-size: 11px;
    }

    .thumbnail-actions {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 6px;
    }

    .thumbnail-actions button,
    .thumbnail-actions a {
        min-height: 40px;

        padding: 0 4px;

        font-size: 11px;
    }


    /* ----------------------------------------------------------------------
       Content
       ---------------------------------------------------------------------- */

    .download-section,
    .content-section,
    .why-thumbnail-section,
    .faq-section,
    .latest-blog-section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 25px;
    }

    .section-desc {
        font-size: 14px;

        margin-bottom: 25px;
    }


    /* ----------------------------------------------------------------------
       Feature Cards
       ---------------------------------------------------------------------- */

    .download-features,
    .benefit-grid {
        grid-template-columns: 1fr;

        gap: 18px;

        margin-top: 25px;
    }

    .download-card:last-child,
    .info-card:last-child {
        grid-column: auto;

        max-width: none;

        margin: 0;
    }

    .download-card {
        padding: 24px 20px;
    }


    /* ----------------------------------------------------------------------
       FAQ
       ---------------------------------------------------------------------- */

    .faq-wrapper {
        margin-top: 25px;
    }

    .faq-question {
        min-height: 54px;

        padding: 16px;

        font-size: 14px;
    }

    .faq-answer {
        padding: 0 16px 16px;
    }

    .faq-answer p {
        font-size: 14px;

        line-height: 1.7;
    }


    /* ----------------------------------------------------------------------
       Latest Blog
       ---------------------------------------------------------------------- */

    .latest-blog-section .section-heading h2 {
        font-size: 25px;
    }

}


/* ==========================================================================
   Very Small Mobile
   ========================================================================== */

@media (max-width: 380px) {

    .thumbnail-downloader {
        padding-left: 13px;
        padding-right: 13px;
    }

    .thumbnail-card-content {
        padding: 13px;
    }

    .thumbnail-actions {
        gap: 5px;
    }

    .thumbnail-actions button,
    .thumbnail-actions a {
        min-height: 39px;

        padding-left: 3px;
        padding-right: 3px;

        font-size: 10.5px;
    }

    .thumbnail-input-wrap input {
        height: 46px;

        padding-left: 12px;
        padding-right: 46px;

        font-size: 13px;
    }

    .paste-icon-button {
        right: 5px;

        width: 34px;
        height: 34px;
    }

    .paste-icon-button img {
        width: 17px;
        height: 17px;
    }

}

/* ==========================================================================
   HOMEPAGE BRAND IMAGE
   ========================================================================== */

.homepage-image-section {
    padding: 45px 20px;
    background: #ffffff;
}

.homepage-image-wrapper {
    max-width: 850px;
    margin: 0 auto;
}

.homepage-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;

    border-radius: 10px;

    box-shadow: 0 8px 30px rgba(23, 43, 77, 0.10);
}


/* ==========================================================================
   HOMEPAGE BRAND IMAGE - MOBILE
   ========================================================================== */

@media (max-width: 600px) {

    .homepage-image-section {
        padding: 30px 16px;
    }

    .homepage-image-wrapper img {
        border-radius: 8px;
    }

}