/* ============================================
   StallionUSSY - Premium Equine Genetics Exchange
   Luxury auction house / Bloomberg terminal dark
   ============================================ */

/* === RESET & BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Georgia', 'Palatino Linotype', 'Book Antiqua', serif;
    font-size: 13px;
    background: #0a0e14;
    color: #c4c8d0;
    min-height: 100vh;
    line-height: 1.7;
}

/* === SKIP LINK === */
.skip-link {
    position: absolute;
    top: -100%;
    left: 4px;
    background: #12161e;
    color: #c8a840;
    padding: 6px 14px;
    border: 2px solid #c8a840;
    font-size: 12px;
    z-index: 1000;
    text-decoration: none;
}
.skip-link:focus { top: 4px; }

/* === FOCUS VISIBLE === */
:focus-visible {
    outline: 2px solid #c8a840;
    outline-offset: 2px;
    box-shadow: 0 0 8px rgba(200,168,64,0.3);
}

.page-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 12px;
}

/* === KEYFRAMES === */
@keyframes ticker-scroll {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

@keyframes gold-shimmer {
    0%   { border-color: #8a7030; }
    50%  { border-color: #c8a840; }
    100% { border-color: #8a7030; }
}

/* === HEADER === */
.site-header {
    border-bottom: 2px solid #c8a840;
    margin-bottom: 0;
    overflow: hidden;
}

.ticker-bar {
    background: #0c1018;
    color: #40c060;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    padding: 4px 0;
    white-space: nowrap;
    overflow: hidden;
    border-bottom: 1px solid #1a2030;
    letter-spacing: 1px;
}

.ticker-bar {
    animation: ticker-scroll 30s linear infinite;
}

.header-inner {
    text-align: center;
    padding: 28px 20px;
    background: linear-gradient(180deg, #10141c 0%, #0a0e14 50%, #10141c 100%);
}

.logo-icon {
    font-size: 32px;
    color: #c8a840;
    margin-bottom: 6px;
}

.site-header h1 {
    font-family: 'Palatino Linotype', 'Book Antiqua', 'Georgia', serif;
    font-size: 32px;
    color: #c8a840;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 #3a3010;
}

.tagline {
    font-size: 13px;
    color: #8a8a9a;
    font-style: italic;
    letter-spacing: 3px;
    margin-top: 4px;
}

.sub-tagline {
    font-size: 9px;
    color: #50546a;
    letter-spacing: 2px;
    margin-top: 8px;
}

/* === NAV === */
.site-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    background: #0c1018;
    border-bottom: 1px solid #1a2030;
    padding: 8px 10px;
}

.site-nav a {
    color: #8a8a9a;
    text-decoration: none;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 4px 12px;
    transition: color 0.2s, text-shadow 0.2s;
    border-right: 1px solid #1a2030;
}

.site-nav a:last-child { border-right: none; }

.site-nav a:hover {
    color: #c8a840;
    text-shadow: 0 0 6px rgba(200,168,64,0.3);
}

/* === PANEL (base component) === */
.panel {
    margin: 14px 0;
    border: 1px solid #1a2030;
    background: #0c1018;
    animation: gold-shimmer 15s ease-in-out infinite;
}

.panel:nth-child(2n) { animation-delay: -4s; }
.panel:nth-child(3n) { animation-delay: -8s; }

.section-header {
    background: linear-gradient(180deg, #141a24 0%, #0e1218 100%);
    color: #c8a840;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 18px;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-bottom: 1px solid #1a2030;
    text-align: center;
}

.panel-body {
    padding: 20px;
}

.panel-body p { margin-bottom: 10px; }

.panel-body a { color: #c8a840; text-decoration: underline; text-underline-offset: 2px; }
.panel-body a:hover { color: #e8c860; text-shadow: 0 0 4px rgba(200,168,64,0.3); }

.panel-intro {
    font-style: italic;
    color: #6a6e7a;
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1a2030;
}

.dropcap::first-letter {
    font-size: 42px;
    float: left;
    line-height: 0.8;
    margin-right: 6px;
    margin-top: 4px;
    color: #c8a840;
    font-weight: bold;
}

.auctioneer-sig {
    text-align: right;
    color: #6a6e7a;
    font-style: italic;
    margin-top: 14px;
    border-top: 1px solid #1a2030;
    padding-top: 10px;
}

/* === LOTS === */
.lots-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lot-card {
    border: 1px solid #1a2030;
    background: linear-gradient(180deg, #10141c 0%, #0c1018 100%);
    padding: 16px 18px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.lot-card:hover {
    border-color: #3a4050;
    box-shadow: 0 0 12px rgba(200,168,64,0.05);
}

.lot-card-flagged {
    border-color: #6a2020;
    background: linear-gradient(180deg, #1a0c0c 0%, #120808 100%);
}

.lot-card-flagged:hover { border-color: #8a3030; }

.lot-number {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #6a6e7a;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.flag-badge {
    background: #6a2020;
    color: #e08080;
    padding: 1px 6px;
    font-size: 9px;
    letter-spacing: 1px;
    margin-left: 6px;
}

.lot-name {
    font-size: 18px;
    color: #c8a840;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.lot-breed {
    font-size: 11px;
    color: #6a6e7a;
    font-style: italic;
    margin-bottom: 10px;
}

.lot-notes {
    font-size: 13px;
    line-height: 1.8;
    padding: 10px 14px;
    border-left: 2px solid #c8a840;
    background: rgba(200,168,64,0.02);
    margin-bottom: 10px;
}

.notes-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #c8a840;
    font-weight: bold;
}

.lot-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    padding: 6px 0;
    border-top: 1px solid #1a2030;
    border-bottom: 1px solid #1a2030;
}

.lot-price {
    color: #40c060;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: bold;
}

.lot-cert {
    color: #8a8a9a;
    font-size: 11px;
    font-style: italic;
}

.lot-ai {
    font-size: 11px;
    color: #7070a0;
    font-style: italic;
    padding: 8px 12px;
    border-left: 2px solid #4040708a;
    background: rgba(64,64,112,0.04);
}

/* === MARKET TABLE === */
.panel-terminal {
    background: #080c10;
    font-family: 'Courier New', monospace;
}

.terminal-label {
    font-family: 'Courier New', monospace;
    color: #40c060;
    font-size: 12px;
    margin-bottom: 12px;
}

.terminal-note {
    font-family: 'Courier New', monospace;
    color: #4a4e5a;
    font-size: 10px;
    margin-top: 10px;
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #40c060;
    border-radius: 50%;
    margin: 0 6px;
    vertical-align: middle;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.market-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

.market-table th {
    background: #10141c;
    color: #6a6e7a;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 10px;
    padding: 8px 10px;
    text-align: left;
    border-bottom: 2px solid #1a2030;
}

.market-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #141820;
    color: #c4c8d0;
}

.market-table tr:hover td {
    background: rgba(200,168,64,0.03);
}

.ticker {
    color: #c8a840;
    font-weight: bold;
}

.change-up { color: #40c060; }
.change-down { color: #e04040; }
.change-err { color: #e04040; animation: pulse-dot 2s ease-in-out infinite; }

.row-flagged td {
    color: #e08080;
    background: rgba(106,32,32,0.06);
}

/* === CERTIFICATIONS === */
.cert-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cert-card {
    border: 1px solid #1a2030;
    padding: 14px 16px;
    background: #10141c;
}

.cert-card p { font-size: 12px; color: #8a8e9a; line-height: 1.7; margin-bottom: 0; }

.cert-status {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.cert-pass .cert-status { color: #40c060; }
.cert-flagged .cert-status { color: #e08040; }
.cert-flagged { border-color: #4a3020; }

.cert-name {
    font-size: 13px;
    color: #c8a840;
    font-weight: bold;
    margin-bottom: 8px;
}

/* === TESTIMONIALS === */
.testimonial {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-left: 3px solid #c8a840;
    background: linear-gradient(90deg, rgba(200,168,64,0.03) 0%, transparent 100%);
}

.testimonial:last-child { margin-bottom: 0; }

.testimonial-text {
    font-size: 13px;
    font-style: italic;
    line-height: 1.8;
    color: #b0b4c0;
}

.testimonial-author {
    font-size: 11px;
    color: #6a6e7a;
    margin-top: 8px;
    text-align: right;
}

/* === FAQ === */
.faq-item {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #141820;
}

.faq-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.faq-q {
    font-size: 13px;
    color: #c8a840;
    font-weight: bold;
    margin-bottom: 6px;
}

.faq-a {
    font-size: 13px;
    color: #9a9eb0;
    line-height: 1.8;
    padding-left: 16px;
    border-left: 2px solid #1a2030;
}

/* === GUESTBOOK === */
.gb-entry {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #141820;
    background: #0e1218;
}

.gb-entry:last-child { margin-bottom: 0; }

.gb-meta {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #50546a;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.gb-entry p {
    font-size: 12px;
    color: #9a9eb0;
    line-height: 1.7;
    margin-bottom: 0;
}

/* === WEBRING === */
#webring {
    margin: 14px 0;
}

/* === FOOTER === */
.site-footer {
    text-align: center;
    padding: 24px 16px;
    margin-top: 10px;
    border-top: 2px solid #c8a840;
    background: linear-gradient(180deg, #10141c 0%, #0a0e14 100%);
}

.footer-name {
    color: #c8a840;
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.site-footer p {
    color: #50546a;
    font-size: 11px;
    margin-bottom: 4px;
}

.footer-links a {
    color: #6a6e7a;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #c8a840;
}

.footer-disclaimer {
    font-size: 9px !important;
    color: #30344a !important;
    margin-top: 10px;
    line-height: 1.6;
}

/* === RESPONSIVE === */
@media (max-width: 700px) {
    .site-header h1 {
        font-size: 22px;
        letter-spacing: 3px;
    }

    .tagline { font-size: 11px; letter-spacing: 1px; }
    .sub-tagline { font-size: 8px; }

    .site-nav {
        flex-wrap: wrap;
        gap: 2px;
    }

    .site-nav a {
        border-right: none;
        padding: 4px 8px;
        font-size: 9px;
    }

    .page-wrap { padding: 0 8px; }
    .panel-body { padding: 14px; }

    .lot-meta { flex-direction: column; gap: 4px; }

    .market-table th,
    .market-table td {
        padding: 6px 6px;
        font-size: 10px;
    }

    .dropcap::first-letter { font-size: 32px; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .ticker-bar { animation: none; overflow: hidden; }
}
