/* ==============================
   GOOGLE FONT & GLOBAL SETTINGS
============================== */

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

body {
    font-family: 'Nunito', sans-serif;
    background: #FFF5F8;
    color: #5D4650;
    min-height: 100vh;
}

/* ==============================
   NAVBAR
============================== */

.navbar {
    width: 100%;
    padding: 20px 8%;
    background: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 15px rgba(244, 143, 177, 0.10);
}

.logo {
    font-size: 22px;
    font-weight: 900;
    color: #D81B60;
}

.nav-text {
    color: #C06A89;
    font-size: 14px;
    font-weight: 700;
}

/* ==============================
   MAIN CONTAINER
============================== */

.container {
    max-width: 1100px;
    margin: auto;
    padding: 60px 25px 30px;
}

/* ==============================
   HERO SECTION
============================== */

.hero {
    text-align: center;
    margin-bottom: 45px;
}

.badge {
    display: inline-block;
    padding: 9px 20px;
    background: #FCE4EC;
    color: #D81B60;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 900;
    color: #5D4650;
}

.hero h1 span {
    display: block;
    color: #EC6B9A;
}

.hero p {
    max-width: 520px;
    margin: 18px auto 0;
    color: #987B87;
    font-size: 16px;
    line-height: 1.8;
}

/* ==============================
   GENERATOR CARD
============================== */

.generator-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    background: #FFFFFF;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 12px 40px rgba(230, 120, 160, 0.12);
}

.generator-card h2 {
    font-size: 21px;
    color: #D81B60;
    font-weight: 900;
}

.subtitle {
    color: #A58B96;
    font-size: 14px;
    margin: 8px 0 25px;
}

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

.form-section label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    margin: 20px 0 10px;
    color: #765967;
}

.form-section textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 2px solid #F8D5E2;
    border-radius: 15px;
    resize: vertical;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    color: #5D4650;
    background: #FFFAFC;
    transition: 0.3s;
}

.form-section textarea:focus {
    border-color: #EC6B9A;
    box-shadow: 0 0 0 4px rgba(236, 107, 154, 0.10);
}

.form-section textarea::placeholder {
    color: #C7AAB6;
}

/* ==============================
   COLOR PICKER
============================== */

.color-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #987B87;
    font-size: 14px;
    font-weight: 700;
}

.color-picker input {
    width: 48px;
    height: 42px;
    padding: 3px;
    border: 2px solid #F8D5E2;
    border-radius: 10px;
    background: white;
    cursor: pointer;
}

/* ==============================
   BUTTONS
============================== */

.generate-btn {
    width: 100%;
    margin-top: 30px;
    padding: 15px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #F48FB1, #E85D91);
    color: white;
    font-family: inherit;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 6px 15px rgba(232, 93, 145, 0.20);
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(232, 93, 145, 0.30);
}

.generate-btn:active {
    transform: scale(0.98);
}

/* ==============================
   QR PREVIEW
============================== */

.preview-section {
    text-align: center;
    padding: 5px;
}

.preview-section h2 {
    margin-bottom: 25px;
}

.empty-preview {
    min-height: 310px;
    border: 2px dashed #F4B6CB;
    border-radius: 20px;
    background: #FFFAFC;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.placeholder-icon {
    font-size: 65px;
    margin-bottom: 15px;
}

.empty-preview p {
    font-size: 16px;
    font-weight: 900;
    color: #D46D93;
}

.empty-preview span {
    margin-top: 8px;
    font-size: 13px;
    color: #B99AA7;
}

/* ==============================
   GENERATED QR RESULT
============================== */

.qr-result {
    min-height: 310px;
    background: #FFFAFC;
    border: 2px solid #F8D5E2;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qr-result img {
    width: 200px;
    max-width: 100%;
    height: auto;
    padding: 10px;
    background: white;
    border-radius: 12px;
}

.qr-result p {
    margin: 15px 0;
    color: #D46D93;
    font-weight: 900;
}

/* ==============================
   DOWNLOAD BUTTON
============================== */

.download-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #FCE4EC;
    color: #D81B60;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 900;
    font-size: 14px;
    transition: 0.3s;
}

.download-btn:hover {
    background: #F48FB1;
    color: white;
    transform: translateY(-2px);
}

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

.error-message {
    padding: 12px;
    background: #FFF0F0;
    color: #D64545;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* ==============================
   FOOTER
============================== */

footer {
    text-align: center;
    margin-top: 45px;
    color: #C06A89;
    font-size: 14px;
    font-weight: 800;
    line-height: 2;
}

footer span {
    font-size: 12px;
    color: #B99AA7;
}

/* ==============================
   RESPONSIVE DESIGN
============================== */

@media (max-width: 768px) {

    .navbar {
        padding: 18px 5%;
    }

    .nav-text {
        font-size: 11px;
    }

    .logo {
        font-size: 18px;
    }

    .container {
        padding: 40px 18px;
    }

    .hero h1 {
        font-size: 35px;
    }

    .hero p {
        font-size: 14px;
    }

    .generator-card {
        grid-template-columns: 1fr;
        padding: 25px 20px;
        gap: 40px;
    }

    .generator-card h2 {
        font-size: 19px;
    }

    footer {
        margin-top: 30px;
    }
}

/* ==============================
   CUTE ANIMATIONS
============================== */

/* Smooth Page Animation */

.hero {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Flower Decoration */

.container {
    position: relative;
}

.container::before {
    content: "🌸";
    position: absolute;
    top: 40px;
    left: -30px;
    font-size: 35px;
    animation: floating 3s ease-in-out infinite;
    pointer-events: none;
}

.container::after {
    content: "💗";
    position: absolute;
    top: 180px;
    right: -20px;
    font-size: 30px;
    animation: floating 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* Button Animation */

.generate-btn {
    position: relative;
    overflow: hidden;
}

.generate-btn:hover {
    letter-spacing: 0.5px;
}

/* QR Image Animation */

.qr-result img {
    transition: transform 0.3s ease;
}

.qr-result img:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Download Animation */

.download-btn {
    transition: all 0.3s ease;
}

.download-btn:hover {
    box-shadow: 0 5px 15px rgba(216, 27, 96, 0.15);
}

/* =================================
   RESPONSIVE DESIGN
================================= */

/* Tablet */
@media screen and (max-width: 1024px) {

    .container {
        max-width: 900px;
        padding: 45px 25px;
    }

    .generator-card {
        gap: 25px;
        padding: 30px;
    }

    .hero h1 {
        font-size: 40px;
    }

}

/* Mobile Landscape & Small Tablet */
@media screen and (max-width: 768px) {

    .navbar {
        padding: 18px 5%;
    }

    .container {
        padding: 40px 20px;
    }

    .hero {
        margin-bottom: 30px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 14px;
        padding: 0 10px;
    }

    .generator-card {
        grid-template-columns: 1fr;
        padding: 25px 20px;
        gap: 35px;
        border-radius: 20px;
    }

    .form-section textarea {
        height: 110px;
    }

    .preview-section {
        width: 100%;
    }

    .empty-preview,
    .qr-result {
        min-height: 280px;
    }

    .container::before {
        left: 0;
        top: 10px;
        font-size: 25px;
    }

    .container::after {
        right: 0;
        top: 150px;
        font-size: 23px;
    }

}

/* Mobile Phone */
@media screen and (max-width: 480px) {

    body {
        overflow-x: hidden;
    }

    .navbar {
        padding: 15px 18px;
    }

    .logo {
        font-size: 17px;
    }

    .nav-text {
        font-size: 10px;
    }

    .container {
        padding: 35px 15px;
    }

    .badge {
        font-size: 10px;
        padding: 8px 15px;
    }

    .hero h1 {
        font-size: 29px;
    }

    .hero p {
        font-size: 13px;
        line-height: 1.7;
    }

    .generator-card {
        padding: 22px 17px;
        gap: 30px;
    }

    .generator-card h2 {
        font-size: 18px;
    }

    .subtitle {
        font-size: 12px;
    }

    .form-section label {
        font-size: 13px;
    }

    .form-section textarea {
        font-size: 13px;
        padding: 12px;
    }

    .color-picker {
        font-size: 12px;
    }

    .generate-btn {
        padding: 14px;
        font-size: 14px;
    }

    .empty-preview,
    .qr-result {
        min-height: 250px;
        padding: 15px;
    }

    .qr-result img {
        width: 180px;
    }

    .download-btn {
        font-size: 12px;
        padding: 11px 20px;
    }

    footer {
        font-size: 12px;
        padding: 0 15px;
    }

    footer span {
        font-size: 10px;
    }

}

/* Extra Small Phone */
@media screen and (max-width: 360px) {

    .hero h1 {
        font-size: 25px;
    }

    .logo {
        font-size: 15px;
    }

    .nav-text {
        font-size: 9px;
    }

    .generator-card {
        padding: 18px 14px;
    }

}