/* ============================================================
   Promo Code Checker  Stylesheet
   File: assets/stykes.css
   ============================================================ */

.pcc-checker-card {
    --pcc-brand:      #00b0f0;
    --pcc-brand-dark: #0090CC;
    --pcc-dark:       #111827;
    --pcc-mid:        #4B5563;
    --pcc-white:      #FFFFFF;
    --pcc-radius:     12px;

    font-family: 'Barlow', sans-serif;
    background: var(--pcc-white);
    border-radius: 20px;
    box-shadow: 0 8px 48px rgba(0, 174, 239, .18), 0 2px 8px rgba(0, 0, 0, .06);
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    margin: 50px auto;
}

/*  Header  */
.pcc-card-header {
    background: var(--pcc-brand);
    padding: 32px 36px 28px;
    position: relative;
    overflow: hidden;
}

.pcc-card-header::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
}

.pcc-card-header::before {
    content: '';
    position: absolute;
    right: 30px;
    bottom: 10px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.pcc-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--pcc-white);
    letter-spacing: .5px;
    line-height: 1.1;
    margin: 0;
}

.pcc-subheading {
    color: rgba(255, 255, 255, .85);
    font-size: .95rem;
    margin-top: 6px;
    font-weight: 500;
}

/*  Body  */
.pcc-card-body {
    padding: 36px;
}

/*  Footer  */
.pcc-card-footer {
    border-top: 1px solid #F3F4F6;
    padding: 16px 36px;
    font-size: .8rem;
    color: #9CA3AF;
    text-align: center;
}

.pcc-card-footer a {
    color: var(--pcc-brand);
    text-decoration: none;
    font-weight: 600;
}

.pcc-card-footer a:hover {
    text-decoration: underline;
}

/*  Form  */
.pcc-field-label {
    display: block;
    font-weight: 600;
    font-size: .875rem;
    color: var(--pcc-dark);
    margin-bottom: 8px;
    letter-spacing: .3px;
}

.pcc-input-row {
    display: flex;
    gap: 10px;
}

.pcc-code-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #E5E7EB;
    border-radius: var(--pcc-radius);
    font-family: 'Barlow', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--pcc-dark);
    background: var(--pcc-white);
    text-transform: uppercase;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.pcc-code-input::placeholder {
    letter-spacing: 1px;
    font-weight: 400;
    color: #9CA3AF;
}

.pcc-code-input:focus {
    border-color: var(--pcc-brand);
    box-shadow: 0 0 0 4px rgba(0, 174, 239, .12);
}

/*  Button  */
.pcc-btn-check {
    padding: 14px 24px;
    background: var(--pcc-brand);
    color: var(--pcc-white);
    border: none;
    border-radius: var(--pcc-radius);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background .2s, transform .1s, box-shadow .2s;
    white-space: nowrap;
}

.pcc-btn-check:hover {
    background: var(--pcc-brand-dark);
    box-shadow: 0 4px 16px rgba(0, 174, 239, .35);
}

.pcc-btn-check:active {
    transform: scale(.97);
}

.pcc-btn-check:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/*  Result box  */
.pcc-result {
    margin-top: 24px;
    border-radius: var(--pcc-radius);
    padding: 20px 22px;
    animation: pccSlideIn .3s ease;
}

@keyframes pccSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pcc-valid   { background: #ECFDF5; border: 1.5px solid #6EE7B7; }
.pcc-invalid { background: #FEF2F2; border: 1.5px solid #FCA5A5; }
.pcc-error   { background: #FFFBEB; border: 1.5px solid #FCD34D; }
.pcc-loser   { background: #F3F4F6; border: 1.5px solid #D1D5DB; }


.pcc-result-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.pcc-result-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: .3px;
}

.pcc-valid   .pcc-result-title { color: #065F46; }
.pcc-invalid .pcc-result-title { color: #991B1B; }
.pcc-error   .pcc-result-title { color: #92400E; }
.pcc-loser   .pcc-result-title { color: #374151; }


.pcc-result-body {
    font-size: .9rem;
    color: var(--pcc-mid);
    line-height: 1.5;
}

/*  Category badge  */
.pcc-category-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 14px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    background-color: var(--pcc-brand);
}

/*  Code applied note  */
.pcc-code-applied {
    margin-top: 8px;
    font-size: .8rem;
    color: #6B7280;
}

.pcc-code-applied span {
    font-weight: 700;
    color: var(--pcc-dark);
    letter-spacing: 1px;
}

/*  Shop button  */
.pcc-shop-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 22px;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none !important;
    transition: opacity .2s;
    background-color: var(--pcc-brand);
}

.pcc-shop-btn:hover {
    opacity: .88;
}

/*  Loading spinner  */
.pcc-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pccSpin .6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes pccSpin {
    to { transform: rotate(360deg); }
}

/*  Responsive  */
@media (max-width: 480px) {
    .pcc-card-body,
    .pcc-card-header,
    .pcc-card-footer {
        padding: 24px 20px;
    }

    .pcc-input-row {
        flex-direction: column;
    }

    .pcc-btn-check {
        width: 100%;
    }
}