/* GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #111;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Make main content grow so footer stays at bottom */
main {
    flex: 1;
}

/* LINKS */
a,
a:visited,
a:hover,
a:active,
a:focus {
    text-decoration: none;
    color: inherit;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f172a;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-link {
    display: inline-block;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #facc15;
    font-size: 20px;
    font-weight: bold;
}

.logo-img {
    width: auto;
    height: 34px;
    object-fit: contain;
    border-radius: 6px;
}

/* HAMBURGER */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: 0.3s;
}

.menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* NAV MENU */
nav ul.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

nav ul.nav-list li a {
    color: white;
    padding: 10px 12px;
    display: block;
    font-size: 14px;
    border-radius: 8px;
    transition: 0.3s;
}

nav ul.nav-list li a:hover {
    color: #facc15;
    background: rgba(255, 255, 255, 0.06);
}

/* MAIN SECTION */
.tool-section {
    padding: 40px 15px 20px;
}

.box {
    background: white;
    padding: 35px 25px;
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.box h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #0f172a;
}

.subtitle {
    font-size: 15px;
    color: #475569;
    margin-bottom: 22px;
}

/* DROP AREA */
#drop-area {
    border: 2px dashed orange;
    padding: 28px 20px;
    border-radius: 15px;
    cursor: pointer;
    margin-bottom: 18px;
    transition: 0.3s;
    background: #fff;
}

#drop-area:hover,
#drop-area.dragover {
    background: #fff7ed;
}

#drop-area p {
    font-size: 15px;
    color: #444;
}

#drop-area input {
    display: none;
}

/* BUTTON */
button {
    margin-top: 10px;
    padding: 12px 24px;
    border: none;
    background: linear-gradient(135deg, orange, #f59e0b);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.3s;
    font-weight: bold;
}

button:hover {
    background: #ea580c;
    transform: scale(1.05);
}

/* PREVIEW */
#preview {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.preview-item {
    position: relative;
}

#preview img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid orange;
    transition: 0.3s;
    background: #fff;
}

#preview img:hover {
    transform: scale(1.05);
}

.remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: red;
    color: white;
    border-radius: 50%;
    font-size: 13px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
}

/* SEO CONTENT */
.seo-content {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    text-align: left;
    border: 1px solid rgb(196, 188, 188);
    border-radius: 10px;
    background: #fff;
}

.seo-content h2 {
    font-size: 24px;
    color: #0f172a;
    margin-bottom: 10px;
    margin-top: 20px;
}

.seo-content h2:first-child {
    margin-top: 0;
}

.seo-content p {
    font-size: 16px;
    color: #334155;
}

/* FOOTER */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    text-align: center;
    padding: 15px;
    width: 100%;
    margin-top: auto;
}

/* TABLET */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 12px 15px;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        width: 100%;
    }

    nav ul.nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 12px;
        background: #0f172a;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    nav ul.nav-list.active {
        display: flex;
    }

    nav ul.nav-list li {
        width: 100%;
    }

    nav ul.nav-list li a {
        text-align: left;
        padding: 12px 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .logo {
        font-size: 17px;
    }

    .logo-img {
        height: 30px;
    }

    .box {
        width: 95%;
        padding: 28px 18px;
    }

    .box h1 {
        font-size: 26px;
    }

    #preview img {
        width: 90px;
        height: 90px;
    }

    .seo-content {
        margin: 20px 15px;
        padding: 18px;
    }

    .seo-content h2 {
        font-size: 21px;
    }

    .seo-content p {
        font-size: 15px;
    }
}

/* MOBILE */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 12px;
    }

    .logo {
        font-size: 15px;
        gap: 8px;
        max-width: 85%;
    }

    .logo-img {
        height: 28px;
    }

    .box {
        margin-top: 10px;
        padding: 22px 15px;
        border-radius: 16px;
    }

    .box h1 {
        font-size: 22px;
    }

    .subtitle {
        font-size: 14px;
    }

    #drop-area {
        padding: 22px 12px;
    }

    #drop-area p {
        font-size: 14px;
    }

    button {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    #preview {
        gap: 10px;
    }

    #preview img {
        width: 75px;
        height: 75px;
    }

    .seo-content {
        margin: 15px 10px;
        padding: 15px;
    }

    .seo-content h2 {
        font-size: 19px;
    }

    .seo-content p {
        font-size: 14px;
    }

    .footer {
        font-size: 13px;
        padding: 14px 10px;
    }
}