/* ==========================================
   Product Shield Frontend Styles
   Modern & Professional Design
   ========================================== */

/* Container utama form pencarian */
.product-shield-search {
    max-width: 600px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: all 0.3s ease;
}

/* Styling form */
.product-shield-search form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-shield-search label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.product-shield-search input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.product-shield-search input[type="text"]:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.product-shield-search input[type="submit"] {
    background: #0073aa;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    width: 100%;
    letter-spacing: 0.5px;
}

.product-shield-search input[type="submit"]:hover {
    background: #005a87;
    transform: translateY(-2px);
}

.product-shield-search input[type="submit"]:active {
    transform: translateY(0);
}

/* ===== Sertifikat Hasil Pencarian ===== */
.psn-certificate {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid #eaeaea;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.psn-certificate h1 {
    font-weight: 800;
    color: #2e7d32;
    margin: 0 0 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(46, 125, 50, 0.1);
}

.psn-certificate .subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 15px;
}

.psn-certificate .recipient {
    font-size: 24px;
    font-weight: 600;
    color: #0073aa;
    margin-bottom: 20px;
    background: #f0f8ff;
    display: inline-block;
    padding: 5px 20px;
    border-radius: 40px;
}

.psn-certificate .details {
    text-align: left;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
}

.psn-certificate .details p {
    margin: 8px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.psn-certificate .details p strong {
    color: #222;
    min-width: 120px;
    display: inline-block;
}

/* Bagian tanda tangan */
.psn-certificate .signature {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eaeaea;
}

.psn-certificate .signature .left {
    text-align: left;
}

.psn-certificate .signature .left p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.psn-certificate .signature .right {
    text-align: right;
}

.psn-certificate .signature .name {
    font-size: 22px;
    font-weight: 700;
    color: #0073aa;
    font-family: 'Brush Script MT', cursive;
}

.psn-certificate .signature .title {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Pesan Error ===== */
.psn-error {
    margin-top: 20px;
    padding: 15px 20px;
    background: #ffebee;
    border-left: 4px solid #d32f2f;
    border-radius: 8px;
    color: #b71c1c;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.psn-error p {
    margin: 0;
}

/* ===== Tampilan Responsif ===== */
@media (min-width: 768px) {
    .product-shield-search form {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    /* Sembunyikan label untuk tampilan lebih bersih (opsional) */
    .product-shield-search label {
        display: none;
    }

    .product-shield-search input[type="text"] {
        flex: 1;
    }

    .product-shield-search input[type="submit"] {
        width: auto;
        padding: 14px 30px;
    }
}

@media (max-width: 480px) {
    .product-shield-search {
        padding: 20px;
    }

    .psn-certificate {
        padding: 15px;
    }

    .psn-certificate h1 {
        font-size: 28px;
    }

    .psn-certificate .signature {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .psn-certificate .signature .left,
    .psn-certificate .signature .right {
        text-align: center;
    }
}

/* Gaya sertifikat */
.psn-certificate {
    max-width: 700px;
    margin: 30px auto;
    padding: 40px 30px;
    border: 10px solid #2c3e50;
    background: #fff;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Watermark Stamp ORIGINAL */
.psn-certificate::before {
    content: "";
    position: absolute;
    top: 5%;
    bottom: 5%;
    left: 5%;
    right: 5%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cg transform='translate(250, 250) rotate(-35)'%3E%3Crect x='-220' y='-60' width='440' height='120' rx='20' fill='none' stroke='rgba(44, 62, 80, 0.06)' stroke-width='8'/%3E%3Ctext x='0' y='22' font-family='Arial Black, Impact, sans-serif' font-weight='900' font-size='60' fill='rgba(44, 62, 80, 0.06)' text-anchor='middle' letter-spacing='18'%3EORIGINAL%3C/text%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    z-index: -1;
    pointer-events: none;
}

.psn-certificate h1 {
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 4px;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 20px;
}

.psn-certificate .subtitle {
    font-size: 24px;
    color: #7f8c8d;
    margin: 10px 0 30px;
    font-style: italic;
}

.psn-certificate .recipient {
    font-size: 36px;
    font-weight: bold;
    color: #e67e22;
    margin: 20px 0;
    text-transform: uppercase;
}

.psn-certificate .details {
    font-size: 18px;
    color: #34495e;
    margin: 20px 0;
    line-height: 1.8;
}

.psn-certificate .details p {
    margin: 5px 0;
}

.psn-certificate .signature {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #aaa;
    padding-top: 20px;
    font-size: 16px;
}

.psn-certificate .signature .left,
.psn-certificate .signature .right {
    width: 45%;
}

.psn-certificate .signature .left {
    text-align: left;
}

.psn-certificate .signature .right {
    text-align: right;
}

.psn-certificate .signature .name {
    font-weight: bold;
    font-size: 20px;
    margin: 5px 0;
}

.psn-certificate .signature .title {
    color: #7f8c8d;
    font-style: italic;
}

/* Gaya error */
.psn-error {
    margin-top: 20px;
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}