/* Vetanique Platform — Plugin Styles
   Loaded on all frontend pages */

/* =========================================================
   FILTER BAR
========================================================= */

.vt-species-filter-bar {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    margin-bottom: 1rem;
}
.vt-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: .35rem 1rem;
    border-radius: 9999px;
    font-size: .8125rem;
    font-weight: 600;
    border: 1.5px solid var(--vt-sand-light, #E8D5B0);
    background: var(--vt-white, #fff);
    color: var(--vt-muted, #7A6A55);
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
}
.vt-filter-pill:hover,
.vt-filter-pill.active {
    background: var(--vt-ink, #1A1410);
    color: var(--vt-white, #fff);
    border-color: var(--vt-ink, #1A1410);
}

/* =========================================================
   FORMS
========================================================= */

.vt-input,
.vt-payment-submit-form input[type="text"],
.vt-payment-submit-form input[type="tel"] {
    width: 100%;
    padding: .65rem 1rem;
    border: 1.5px solid var(--vt-sand-light, #E8D5B0);
    border-radius: 8px;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: .9rem;
    color: var(--vt-ink, #1A1410);
    background: var(--vt-white, #fff);
    transition: border-color .2s;
    outline: none;
}
.vt-input:focus {
    border-color: var(--vt-sand, #C9A96E);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, .15);
}
.vt-input-file {
    padding: .5rem;
    border: 1.5px dashed var(--vt-sand-light, #E8D5B0);
    border-radius: 8px;
    width: 100%;
    font-size: .875rem;
    cursor: pointer;
    background: var(--vt-cream, #FAF7F2);
}
.vt-label {
    display: block;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--vt-ink-2, #3D2E1E);
    margin-bottom: .4rem;
}
.vt-field-hint {
    font-size: .75rem;
    color: var(--vt-muted, #7A6A55);
    margin-top: .25rem;
}
.vt-form-group {
    margin-bottom: 1.1rem;
}
.vt-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 640px) { .vt-form-grid { grid-template-columns: 1fr; } }

/* Radio Pills */
.vt-radio-group {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.vt-radio-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.vt-radio-pill {
    cursor: pointer;
}
.vt-radio-pill input:checked + .vt-pay-pill {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px currentColor;
}

/* =========================================================
   NOTICES
========================================================= */

.vt-notice {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin: 1rem 0;
    font-size: .9rem;
    line-height: 1.6;
}
.vt-notice-success { background: var(--vt-success-bg, #E8F2E6); border: 1px solid rgba(45,90,39,.2); color: var(--vt-success, #2D5A27); }
.vt-notice-error   { background: var(--vt-danger-bg, #F5E8E8);  border: 1px solid rgba(139,32,32,.2); color: var(--vt-danger, #8B2020); }
.vt-notice-info    { background: var(--vt-info-bg, #E6EDF8);    border: 1px solid rgba(26,58,107,.2); color: var(--vt-info, #1A3A6B); }
.vt-empty-notice {
    background: var(--vt-cream-2, #F2EDE3);
    border: 1px solid var(--vt-sand-light, #E8D5B0);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    color: var(--vt-muted, #7A6A55);
    font-size: .9rem;
}

/* =========================================================
   CHECKOUT PAYMENT SECTION
========================================================= */

.vt-checkout-payment-section {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--vt-cream, #FAF7F2);
    border: 1.5px solid var(--vt-sand-light, #E8D5B0);
    border-radius: 12px;
}
.vt-checkout-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--vt-ink, #1A1410);
    margin-bottom: 1rem;
    font-family: var(--font-display, 'Playfair Display', serif);
}
.vt-payment-type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-bottom: 1.25rem;
}
.vt-payment-type-option {
    cursor: pointer;
}
.vt-payment-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}
.vt-payment-type-label {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem;
    border: 2px solid var(--vt-sand-light, #E8D5B0);
    border-radius: 10px;
    background: var(--vt-white, #fff);
    transition: all .2s;
    cursor: pointer;
}
.vt-payment-type-label:hover {
    border-color: var(--vt-sand, #C9A96E);
}
.vt-payment-type-option input:checked + .vt-payment-type-label {
    border-color: var(--vt-ink, #1A1410);
    background: var(--vt-cream, #FAF7F2);
}
.vt-payment-type-icon {
    font-size: 1.6rem;
    line-height: 1;
}
.vt-payment-type-label strong {
    display: block;
    font-size: .875rem;
    color: var(--vt-ink, #1A1410);
}
.vt-payment-type-label small {
    font-size: .75rem;
    color: var(--vt-muted, #7A6A55);
}

/* =========================================================
   MY ACCOUNT DASHBOARD
========================================================= */

.vt-dashboard-overview {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.vt-dash-welcome {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--vt-cream, #FAF7F2);
    border: 1px solid var(--vt-sand-light, #E8D5B0);
    border-radius: 12px;
}
.vt-dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}
.vt-dash-stat-card {
    background: var(--vt-white, #fff);
    border: 1px solid var(--vt-sand-light, #E8D5B0);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}
.vt-dash-section {
    background: var(--vt-white, #fff);
    border: 1px solid var(--vt-sand-light, #E8D5B0);
    border-radius: 12px;
    padding: 1.25rem;
}
.vt-dash-section-title {
    font-size: .8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--vt-sand-dark, #8B6B35);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--vt-sand-light, #E8D5B0);
    padding-bottom: .6rem;
}
.vt-order-list { display: flex; flex-direction: column; gap: .5rem; }
.vt-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .7rem .75rem;
    background: var(--vt-cream, #FAF7F2);
    border-radius: 8px;
    font-size: .8125rem;
    gap: .5rem;
    flex-wrap: wrap;
}
.vt-quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}
.vt-quick-link {
    display: block;
    padding: .65rem .9rem;
    background: var(--vt-cream, #FAF7F2);
    border: 1px solid var(--vt-sand-light, #E8D5B0);
    border-radius: 8px;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--vt-ink-2, #3D2E1E);
    text-decoration: none;
    transition: all .15s;
}
.vt-quick-link:hover {
    background: var(--vt-cream-2, #F2EDE3);
    border-color: var(--vt-sand, #C9A96E);
}

/* My Ebooks List */
.vt-my-ebooks { display: flex; flex-direction: column; gap: .5rem; }
.vt-ebook-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1rem;
    background: var(--vt-cream, #FAF7F2);
    border: 1px solid var(--vt-sand-light, #E8D5B0);
    border-radius: 8px;
    gap: 1rem;
    flex-wrap: wrap;
}
.vt-ebook-row-title { font-size: .875rem; font-weight: 600; color: var(--vt-ink, #1A1410); }
.vt-ebook-row-meta  { font-size: .75rem; color: var(--vt-muted, #7A6A55); margin-top: .15rem; }
.vt-ebook-row-status { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

/* Species Hub Sections */
.vt-species-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: .5rem;
}

/* Social Login */
.vt-social-login { margin-top: 1rem; }
.vt-social-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1rem 0;
    color: var(--vt-muted, #7A6A55);
    font-size: .8125rem;
}
.vt-social-divider::before,
.vt-social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--vt-sand-light, #E8D5B0);
}
.vt-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    padding: .7rem 1.25rem;
    background: var(--vt-white, #fff);
    border: 1.5px solid var(--vt-sand-light, #E8D5B0);
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--vt-ink, #1A1410);
    text-decoration: none;
    transition: all .2s;
}
.vt-btn-google:hover {
    border-color: #4285F4;
    box-shadow: 0 2px 8px rgba(66,133,244,.15);
}

/* Order items preview */
.vt-order-items-preview {
    background: var(--vt-white, #fff);
    border: 1px solid var(--vt-sand-light, #E8D5B0);
    border-radius: 8px;
    padding: .75rem 1rem;
    margin-bottom: 1.25rem;
}
.vt-order-item-row {
    display: flex;
    justify-content: space-between;
    font-size: .875rem;
    padding: .4rem 0;
    border-bottom: 1px solid var(--vt-cream-2, #F2EDE3);
    color: var(--vt-ink-2, #3D2E1E);
}
.vt-order-item-row:last-child { border-bottom: none; }

/* Payment detail box (status messages) */
.vt-payment-detail-box {
    background: var(--vt-cream, #FAF7F2);
    border: 1px solid var(--vt-sand-light, #E8D5B0);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1.25rem auto;
    max-width: 360px;
    text-align: left;
    font-size: .875rem;
    color: var(--vt-ink-2, #3D2E1E);
}
.vt-payment-detail-box p { margin: .3rem 0; }

/* Responsive */
@media (max-width: 640px) {
    .vt-dash-stats-grid   { grid-template-columns: 1fr 1fr; }
    .vt-payment-type-toggle { grid-template-columns: 1fr; }
    .vt-quick-links       { grid-template-columns: 1fr; }
}
