/* =========================================================
   BLINKSKIT URL SHORTENER
   Premium Dark-Soft SaaS Tool Interface
========================================================= */


/* =========================================================
   PAGE BACKGROUND
========================================================= */

body {

    background:
        radial-gradient(
            circle at 50% -10%,
            color-mix(
                in srgb,
                var(--primary) 12%,
                transparent
            ),
            transparent 38%
        ),
        var(--bg);

    min-height: 100vh;

}


/* =========================================================
   TOOL HERO
========================================================= */

.tool-hero {

    padding: 45px 0 35px;

    text-align: center;

}


.breadcrumb {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 25px;

    color: var(--text-muted);

    font-size: 12px;

}


.breadcrumb a {

    color: var(--text-secondary);

    text-decoration: none;

}


.breadcrumb a:hover {

    color: var(--primary);

}


.tool-badge {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 6px 11px;

    margin-bottom: 17px;

    border:
        1px solid
        color-mix(
            in srgb,
            var(--primary) 25%,
            var(--border)
        );

    border-radius: 999px;

    background:
        color-mix(
            in srgb,
            var(--primary) 8%,
            var(--surface)
        );

    color: var(--primary);

    font-size: 11px;

    font-weight: 750;

    letter-spacing: .8px;

}


.badge-icon {

    font-size: 14px;

}


.tool-hero h1 {

    max-width: 800px;

    margin: 0 auto 15px;

    font-size:
        clamp(
            38px,
            6vw,
            58px
        );

    line-height: 1.08;

    letter-spacing: -2.5px;

    font-weight: 850;

    background:
        linear-gradient(
            100deg,
            var(--text),
            var(--primary),
            var(--accent)
        );

    -webkit-background-clip: text;

    background-clip: text;

    -webkit-text-fill-color: transparent;

}


.hero-description {

    max-width: 650px;

    margin: 0 auto;

    color: var(--text-secondary);

    font-size: 17px;

}


/* =========================================================
   SHORTENER SECTION
========================================================= */

.shortener-section {

    padding: 20px 0 65px;

}


.shortener-card {

    width: min(100%, 680px);

    margin: 0 auto;

    padding: 38px;

    background:
        linear-gradient(
            145deg,
            var(--surface),
            color-mix(
                in srgb,
                var(--surface-soft) 45%,
                var(--surface)
            )
        );

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    box-shadow:
        var(--shadow-lg);

}


/* =========================================================
   CARD HEADING
========================================================= */

.card-heading {

    margin-bottom: 28px;

}


.eyebrow {

    display: block;

    margin-bottom: 7px;

    color: var(--primary);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.2px;

}


.card-heading h2 {

    margin-bottom: 7px;

    font-size: 25px;

    letter-spacing: -.7px;

}


.card-heading p {

    color: var(--text-secondary);

    font-size: 14px;

}


/* =========================================================
   FORM
========================================================= */

.form-group {

    margin-bottom: 20px;

}


.form-group label {

    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 8px;

    color: var(--text);

    font-size: 13px;

    font-weight: 700;

}


.form-group label span {

    color: var(--text-muted);

    font-size: 11px;

    font-weight: 500;

}


.form-group input {

    width: 100%;

    min-height: 50px;

    padding:
        13px 15px;

    background:
        color-mix(
            in srgb,
            var(--surface) 85%,
            var(--surface-soft)
        );

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-sm);

    color: var(--text);

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;

}


.form-group input:hover {

    border-color:
        color-mix(
            in srgb,
            var(--primary) 30%,
            var(--border)
        );

}


.form-group input:focus {

    background: var(--surface);

    border-color: var(--primary);

    box-shadow:
        0 0 0 4px
        color-mix(
            in srgb,
            var(--primary) 10%,
            transparent
        );

}


.form-group small {

    display: block;

    margin-top: 7px;

    color: var(--text-muted);

    font-size: 11px;

}


/* =========================================================
   SHORTEN BUTTON
========================================================= */

.shorten-btn {

    width: 48%;

    min-height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin-top: 7px;

    padding: 14px 20px;

    border: none;

    border-radius:
        var(--radius-sm);

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--accent)
        );

    color: white;

    font-family: inherit;

    font-size: 14px;

    font-weight: 750;

    cursor: pointer;

    box-shadow:
        0 8px 22px
        color-mix(
            in srgb,
            var(--primary) 22%,
            transparent
        );

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;

}


.shorten-btn:hover {

    transform: translateY(-2px);

    box-shadow:
        0 12px 28px
        color-mix(
            in srgb,
            var(--primary) 30%,
            transparent
        );

}


.shorten-btn:active {

    transform: translateY(0);

}


.shorten-btn:disabled {

    opacity: .65;

    cursor: not-allowed;

    transform: none;

}


.btn-arrow {

    font-size: 18px;

}


/* =========================================================
   MESSAGE
========================================================= */

.message {

    min-height: 20px;

    margin-top: 15px;

    font-size: 13px;

    text-align: center;

}


.message.success {

    color: var(--success);

}


.message.error {

    color: var(--danger);

}


/* =========================================================
   RESULT
========================================================= */

.result {

    margin-top: 27px;

    padding-top: 25px;

    border-top:
        1px solid var(--border);

}


.result-header {

    margin-bottom: 13px;

}


.result-header h3 {

    font-size: 18px;

    letter-spacing: -.3px;

}


/* =========================================================
   SHORT URL BOX
========================================================= */

.short-url-box {

    min-height: 58px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 7px;

    background:
        var(--surface-soft);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-sm);

}


.short-url-content {

    min-width: 0;

    flex: 1;

    display: flex;

    align-items: center;

    gap: 9px;

    padding-left: 8px;

}


.link-icon {

    flex: 0 0 auto;

    font-size: 16px;

}


.short-url-box a {

    min-width: 0;

    overflow-wrap: anywhere;

    color: var(--primary);

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

}


.short-url-box a:hover {

    text-decoration: underline;

}


/* =========================================================
   COPY BUTTON
========================================================= */

.copy-btn {

    flex:
        0 0 auto;

    min-width: 92px;

    height: 42px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding: 9px 14px;

    border: none;

    border-radius: 9px;

    background: var(--text);

    color: var(--primary);

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform .2s ease,
        opacity .2s ease;

}


.copy-btn:hover {

    transform: translateY(-1px);

    opacity: .9;

}


.copy-icon {

    font-size: 14px;

}


/* =========================================================
   LINKS SECTION
========================================================= */

.links-section {

    padding-bottom: 70px;

}


.links-card {

    padding: 30px;

    background:
        color-mix(
            in srgb,
            var(--surface) 96%,
            var(--surface-soft)
        );

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    box-shadow:
        var(--shadow);

}


/* =========================================================
   SECTION HEADER
========================================================= */

.section-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;

}


.section-header h2 {

    margin-bottom: 4px;

    font-size: 23px;

    letter-spacing: -.6px;

}


.section-header p {

    color: var(--text-secondary);

    font-size: 13px;

}


/* =========================================================
   REFRESH BUTTON
========================================================= */

.refresh-btn {

    flex:
        0 0 auto;

    min-height: 40px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding:
        8px 13px;

    border:
        1px solid var(--border);

    border-radius: 9px;

    background: var(--surface);

    color: var(--text-secondary);

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition:
        color .2s ease,
        border-color .2s ease,
        background .2s ease;

}


.refresh-btn:hover {

    color: var(--primary);

    border-color:
        color-mix(
            in srgb,
            var(--primary) 35%,
            var(--border)
        );

    background: var(--primary-light);

}


.refresh-icon {

    font-size: 16px;

}


/* =========================================================
   LINKS CONTAINER
========================================================= */

.links-container {

    display: flex;

    flex-direction: column;

    gap: 12px;

}


.empty-message {

    padding: 35px 15px;

    color: var(--text-muted);

    font-size: 13px;

    text-align: center;

}


/* =========================================================
   LINK ITEM
========================================================= */

.link-item {

    padding: 19px;

    background:
        var(--surface-soft);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-sm);

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;

}


.link-item:hover {

    border-color:
        color-mix(
            in srgb,
            var(--primary) 28%,
            var(--border)
        );

    box-shadow:
        var(--shadow-sm);

}


.link-item h3 {

    margin-bottom: 5px;

    color: var(--primary);

    font-size: 16px;

    font-weight: 750;

    word-break: break-word;

}


.original-url {

    overflow-wrap: anywhere;

    color: var(--text-secondary);

    font-size: 12px;

    line-height: 1.5;

}


/* =========================================================
   LINK INFORMATION
========================================================= */

.link-info {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 12px;

}


.link-info span {

    padding:
        5px 9px;

    border:
        1px solid var(--border);

    border-radius: 7px;

    background: var(--surface);

    color: var(--text-muted);

    font-size: 10px;

    font-weight: 600;

}


/* =========================================================
   LINK ACTIONS
========================================================= */

.link-actions {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 15px;

}


.link-actions button {

    min-width: 72px;

    height: 36px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding:
        7px 12px;

    border: none;

    border-radius: 8px;

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform .2s ease,
        opacity .2s ease,
        box-shadow .2s ease;

}


.link-actions button:hover {

    transform: translateY(-1px);

    box-shadow:
        0 4px 12px
        rgba(0,0,0,.08);

}


.edit-btn {

    background: var(--primary);

    color: white;

}


.delete-btn {

    background: var(--danger);

    color: white;

}


.copy-link-btn {

    background: var(--text);

    color: white;

}


/* =========================================================
   BENEFITS
========================================================= */

.tool-benefits {

    padding-bottom: 30px;

}


.benefits-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;

}


.benefit-card {

    padding: 22px;

    background:
        color-mix(
            in srgb,
            var(--surface) 90%,
            var(--surface-soft)
        );

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

}


.benefit-icon {

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 13px;

    border-radius: 10px;

    background: var(--primary-light);

    font-size: 17px;

}


.benefit-card h3 {

    margin-bottom: 5px;

    font-size: 15px;

}


.benefit-card p {

    color: var(--text-secondary);

    font-size: 12px;

}


/* =========================================================
   HIDDEN
========================================================= */

.hidden {

    display: none !important;

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .shortener-card {

        width: 100%;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    /* HERO */

    .tool-hero {

        padding:
            30px 0 25px;

    }


    .breadcrumb {

        margin-bottom: 18px;

    }


    .tool-hero h1 {

        font-size: 39px;

        letter-spacing: -1.7px;

    }


    .hero-description {

        font-size: 15px;

    }


    /* SHORTENER */

    .shortener-section {

        padding:
            12px 0 50px;

    }


    .shortener-card {

        padding:
            25px 18px;

        border-radius:
            18px;

    }


    .card-heading {

        margin-bottom: 23px;

    }


    .card-heading h2 {

        font-size: 22px;

    }


    /* RESULT */

    .short-url-box {

        flex-direction: column;

        align-items: stretch;

        padding: 8px;

    }


    .short-url-content {

        padding:
            8px 7px;

    }


    .copy-btn {

        width: 100%;

        height: 42px;

    }


    /* LINKS */

    .links-section {

        padding-bottom: 50px;

    }


    .links-card {

        padding:
            23px 16px;

        border-radius:
            18px;

    }


    .section-header {

        align-items:
            flex-start;

        flex-direction:
            column;

        gap: 15px;

    }


    .refresh-btn {

        width: 100%;

    }


    /* ACTIONS */

    .link-actions {

        display: grid;

        grid-template-columns:
            repeat(3, 1fr);

        gap: 7px;

    }


    .link-actions button {

        width: 100%;

        min-width: 0;

        padding:
            7px 5px;

    }


    .link-info {

        align-items:
            stretch;

        flex-direction:
            column;

    }


    .link-info span {

        width: 100%;

    }


    /* BENEFITS */

    .benefits-grid {

        grid-template-columns:
            1fr;

    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 400px) {

    .tool-hero h1 {

        font-size: 34px;

    }


    .logo {

        font-size: 21px;

    }


    .link-actions {

        grid-template-columns:
            1fr;

    }


    .shortener-card {

        padding:
            22px 15px;

    }

}
