/* ================= GLOBAL ================= */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", system-ui, sans-serif;
}

body{
    min-height: 100vh;
    background:
      radial-gradient(circle at 20% 20%, #2b2b2b, transparent 35%),
      radial-gradient(circle at 80% 80%, #141414, transparent 40%),
      #0b0b0b;
    color: #fff;
}

/* ================= HEADER ================= */
.app-header{
    position: sticky;
    top: 0;
    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 40px;

    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.logo{
    font-size: 1.4rem;
    font-weight: 600;
}

/* ================= SEARCH ================= */
.search-box{
    flex: 1;
    display: flex;
    justify-content: center;
}

.search-box input{
    width: 60%;
    max-width: 420px;
    height: 44px;
    border-radius: 30px;
    border: none;
    outline: none;

    padding: 0 20px;
    font-size: 14px;

    background: rgba(255,255,255,0.18);
    color: white;
}

.search-box input::placeholder{
    color: rgba(255,255,255,0.6);
}

/* ================= HEADER BUTTON ================= */
#headerAddBtn{
    padding: 12px 26px;
    border-radius: 30px;
    border: none;
    cursor: pointer;

    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    font-weight: 600;
    letter-spacing: 0.4px;

    box-shadow: 0 12px 30px rgba(255,75,43,0.6);
    transition: transform 0.3s ease;
}

#headerAddBtn:hover{
    transform: translateY(-3px);
}


/* ================= PRODUCT GRID ================= */
#product-cards-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    padding: 50px 40px 120px;
}

/* ================= PRODUCT CARD ================= */
.product-card{
    width: 240px;
    padding: 20px;
    border-radius: 20px;
    text-align: center;

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.12),
        rgba(255,255,255,0.04)
    );

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border: 1px solid rgba(255,255,255,0.18);
    box-shadow:
      0 12px 35px rgba(0,0,0,0.55),
      inset 0 0 0 rgba(255,255,255,0.2);

    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover{
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.75);
}

/* ================= IMAGE ================= */
.product-card img{
    width: 100%;
    height: 155px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 14px;
}

/* ================= TEXT ================= */
.product-card h3{
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.product-card p{
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ================= BUTTON ================= */
.product-card button{
    margin-top: 14px;
    padding: 10px 22px;
    border-radius: 30px;
    border: none;
    cursor: pointer;

    background: linear-gradient(135deg, #ff4d6d, #ff7a9c);
    color: white;
    font-weight: 600;
    letter-spacing: 0.4px;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card button:hover{
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 77, 109, 0.55);
}

/* ================= OPEN MODAL BUTTON ================= */
#addmoreCards{
    position: fixed;
    bottom: 30px;
    right: 30px;

    padding: 14px 30px;
    border-radius: 50px;
    border: none;
    cursor: pointer;

    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;

    box-shadow: 0 15px 40px rgba(255,75,43,0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#addmoreCards:hover{
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(255,75,43,0.8);
}

/* ================= MODAL BACKDROP ================= */
.modal-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* ================= MODAL ================= */
#modal{
    width: 420px;
    padding: 34px 30px;
    border-radius: 26px;

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.18),
        rgba(255,255,255,0.06)
    );

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    border: 1px solid rgba(255,255,255,0.25);
    box-shadow:
      0 30px 80px rgba(0,0,0,0.75),
      inset 0 0 30px rgba(255,255,255,0.05);

    display: flex;
    flex-direction: column;
    gap: 18px;

    animation: modalIn 0.4s ease;
}

@keyframes modalIn{
    from{
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to{
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ================= INPUTS ================= */
#modal input{
    width: 100%;
    height: 50px;
    border-radius: 30px;
    border: none;
    padding: 0 20px;
    outline: none;

    background: rgba(255,255,255,0.18);
    color: white;
    font-size: 0.9rem;

    transition: background 0.25s ease, box-shadow 0.25s ease;
}

#modal input::placeholder{
    color: rgba(255,255,255,0.65);
}

#modal input:focus{
    background: rgba(255,255,255,0.28);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.25);
}

/* ================= MODAL BUTTONS ================= */
#modal button{
    height: 46px;
    border-radius: 30px;
    border: none;
    cursor: pointer;

    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    font-weight: 600;
    letter-spacing: 0.4px;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#modal button:hover{
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,114,255,0.6);
}
