/* ============================================================
   Platinum Advertisement Auction – Frontend Styles
   ============================================================ */

/* Hide the WordPress page title when the shortcode is present.
   The plugin renders its own title; the theme h1 would duplicate it.
   Targets the Rulocus Sage theme's page.blade.php structure as well as
   common WordPress title selectors. */
.paa-page h1:first-of-type,
.paa-page .entry-title,
.paa-page h1.page-title,
.paa-page h1.post-title,
.paa-page .page-header .page-title {
    display: none;
}

.paa-wrap {
    max-width: 860px;
    margin: 0 auto;
    font-family: inherit;
    color: inherit;
}

/* ---- Badges ---- */
.paa-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.paa-status-scheduled { background: #f0ad4e; color: #fff; }
.paa-status-active    { background: #27ae60; color: #fff; }
.paa-status-ended     { background: #7f8c8d; color: #fff; }
.paa-status-cancelled { background: #e74c3c; color: #fff; }

/* ---- Header ---- */
.paa-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.paa-title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
}

/* ---- Notice ---- */
.paa-notice {
    background: #1a1a1a;
    border-left: 4px solid #3a3a3a;
    padding: 12px 16px;
    border-radius: 4px;
    color: #99a1af;
}
.paa-notice-cancelled { border-color: #e74c3c; background: #1a0808; color: #e87c6d; }

/* ---- Scheduled ---- */
.paa-scheduled .paa-header { display: none; }
.paa-scheduled-info {
    text-align: center;
    margin: 32px 0 24px;
}
.paa-start-label {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin: 0 !important;
}
.paa-start-date {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

/* ---- Countdown ---- */
.paa-countdown-wrapper,
.paa-timer-section {
    text-align: center;
    margin: 28px 0;
}
.paa-timer-waiting-msg {
    font-size: 14px;
    color: #888;
    letter-spacing: 0.3px;
    margin: 0;
}
.paa-countdown-label,
.paa-timer-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin: 0 0 12px;
}
.paa-countdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.paa-cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
    background: #ff8904;
    color: #fff;
    border-radius: 8px;
    padding: 10px 8px 8px;
}
.paa-cd-value {
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
}
.paa-cd-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-top: 4px;
}
.paa-cd-sep {
    font-size: 32px;
    font-weight: 900;
    color: #1a1a2e;
    line-height: 1;
    margin-bottom: 18px;
}
.paa-timer-note {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

/* ---- About box ---- */
.paa-about {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 20px 24px;
    margin-top: 28px;
    color: #99a1af;
}
.paa-about h3 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #99a1af;
}
.paa-about p {
    margin: 0 0 0.9em;
    font-size: 14px;
}
.paa-about p:last-child {
    margin-bottom: 0;
}
.paa-about ul {
    margin: 0;
    padding-left: 20px;
}
.paa-about li {
    margin-bottom: 6px;
    font-size: 14px;
}

/* ---- Hero (active) ---- */
.paa-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    border-radius: 12px;
    text-align: center;
    padding: 36px 24px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.paa-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,137,4,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.paa-hero-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    animation: paa-pulse 2s ease-in-out infinite;
}
@keyframes paa-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.7; }
}
.paa-hero-amount {
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    color: #ff8904;
    text-shadow: 0 0 20px rgba(255,137,4,0.3);
}
.paa-hero-amount.paa-hero-no-bids {
    font-size: 32px;
    color: rgba(255,255,255,0.6);
}
.paa-hero-unit {
    font-size: 20px;
    color: rgba(255,137,4,0.7);
}
.paa-hero-total {
    font-size: 15px;
    margin: 10px 0 8px;
    color: rgba(255,255,255,0.8);
}
.paa-hero-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.paa-hidden-name {
    color: rgba(255,255,255,0.4);
}
.paa-hero-mine {
    background: linear-gradient(135deg, #052e16 0%, #14532d 50%, #166534 100%);
}
.paa-hero-mine::before {
    background: radial-gradient(circle, rgba(34,197,94,0.08) 0%, transparent 60%);
}
.paa-hero-mine .paa-hero-badge {
    background: #16a34a;
}
.paa-hero-mine .paa-hero-amount {
    color: #22c55e;
    text-shadow: 0 0 20px rgba(34,197,94,0.3);
}
.paa-hero-mine .paa-hero-unit {
    color: rgba(34,197,94,0.7);
}

/* ---- Section titles ---- */
.paa-section-title {
    font-size: 20px;
    font-weight: 700;
    border-bottom: 2px solid #2a2a2a;
    padding-bottom: 8px;
    margin: 0 0 20px;
    color: #e0e0e0;
}

/* ---- Bid section ---- */
.paa-bid-section {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 32px;
    color: #99a1af;
}
.paa-eligibility-msg {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 0;
}
.paa-msg-error {
    background: #1a0808;
    border-left: 4px solid #e74c3c;
    color: #e87c6d;
}
.paa-msg-success {
    background: #081a0c;
    border-left: 4px solid #27ae60;
    color: #5cb85c;
}

/* ---- ToS toggle link ---- */
.paa-tos-toggle {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    color: #ff8904;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}
.paa-tos-toggle:hover {
    color: #ffaa44;
}

/* ---- ToS box ---- */
.paa-tos-box {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 14px 18px;
    margin-top: 14px;
    margin-bottom: 0;
    font-size: 13px;
}
.paa-tos-box ul {
    margin: 0;
    padding-left: 18px;
}
.paa-tos-box li {
    margin-bottom: 4px;
}

/* ---- Bid stats row ---- */
.paa-bid-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.paa-bid-stat {
    flex: 1;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.paa-bid-stat-featured {
    border-color: rgba(255,137,4,0.25);
}
.paa-bid-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #666;
}
.paa-bid-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: #e0e0e0;
    line-height: 1;
}
.paa-minimum-bid {
    color: #ff8904;
}
.paa-bid-stat-mine {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.4);
}
.paa-bid-stat-mine .paa-bid-stat-value {
    color: #fff;
}
.paa-bid-stat-mine .paa-bid-stat-label {
    color: rgba(34, 197, 94, 0.8);
}

/* ---- Form fields ---- */
.paa-form {
    max-width: 100%;
}
.paa-field {
    margin-bottom: 20px;
}
.paa-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #666;
    margin-bottom: 8px;
}
.paa-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #242424;
    color: #f0f0f0;
    -webkit-appearance: auto;
    appearance: auto;
}
.paa-field select:focus {
    outline: none;
    border-color: #ff8904;
    box-shadow: 0 0 0 3px rgba(255,137,4,0.12);
}

/* ---- Server chip ---- */
.paa-server-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #242424;
    border: 1px solid #444;
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #e0e0e0;
}
.paa-server-chip-dot {
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- Integrated input group ---- */
.paa-input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
    background: #242424;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.paa-input-group:focus-within {
    border-color: #ff8904;
    box-shadow: 0 0 0 3px rgba(255,137,4,0.12);
}
.paa-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    flex-shrink: 0;
    background: #1a1a1a;
    border: none;
    color: #888;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}
.paa-qty-btn:hover {
    background: #ff8904;
    color: #fff;
}
.paa-qty-btn:active {
    background: #d97300;
}
.paa-qty-minus {
    border-right: 1px solid #333;
}
.paa-qty-plus {
    border-left: 1px solid #333;
}
.paa-input-addon {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: #1a1a1a;
    color: #555;
    font-size: 16px;
    font-weight: 700;
    border-right: 1px solid #333;
    user-select: none;
    white-space: nowrap;
}
.paa-input-addon-right {
    border-right: none;
    border-left: 1px solid #333;
    font-size: 14px;
    font-weight: 400;
    color: #555;
}
.paa-input-main {
    flex: 1;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: #f0f0f0;
    font-size: 22px;
    font-weight: 700;
    outline: none;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}
.paa-input-main::-webkit-outer-spin-button,
.paa-input-main::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.paa-input-main[type=number] {
    -moz-appearance: textfield;
}
.paa-field-note {
    font-size: 13px;
    color: #555;
    margin: 8px 0 0;
}

/* ---- ToS checkbox ---- */
.paa-tos-check {
    margin-bottom: 20px;
}
.paa-tos-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #99a1af;
    line-height: 1.4;
}
.paa-tos-label input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #ff8904;
    cursor: pointer;
}

/* ---- Submit button ---- */
.paa-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.paa-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.paa-btn-primary {
    background: #0f3460;
    color: #fff;
}
.paa-btn-primary:hover:not(:disabled) {
    background: #16213e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15,52,96,0.3);
}
.paa-btn-block {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    letter-spacing: 0.4px;
    background: #ff8904;
    color: #fff;
    border-radius: 8px;
}
.paa-btn-block:hover:not(:disabled) {
    background: #ffe033;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,137,4,0.3);
}

/* ---- Form message ---- */
.paa-form-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 14px;
}

/* ---- Compact bid history ---- */
.paa-history-compact {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 28px;
}
.paa-history-compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #1e1e1e;
}
.paa-history-compact-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #666;
}
.paa-history-compact-privacy {
    font-size: 11px;
    color: #444;
}
.paa-bid-row {
    display: flex;
    align-items: center;
    padding: 9px 16px;
    border-bottom: 1px solid #1a1a1a;
    gap: 10px;
    transition: background 0.12s;
}
.paa-bid-row:last-child {
    border-bottom: none;
}
.paa-bid-row:hover {
    background: #161616;
}
.paa-bid-row-top {
    border-left: 3px solid #ff8904;
    background: rgba(255,137,4,0.04);
}
.paa-bid-row-top:hover {
    background: rgba(255,137,4,0.07);
}
.paa-bid-row-winner {
    border-left: 3px solid #27ae60;
    background: rgba(39,174,96,0.04);
}
.paa-bid-row-winner:hover {
    background: rgba(39,174,96,0.07);
}
.paa-bid-rank {
    font-size: 11px;
    font-weight: 700;
    color: #444;
    min-width: 24px;
}
.paa-bid-row-top .paa-bid-rank {
    color: #ff8904;
}
.paa-bid-server {
    flex: 1;
    font-size: 13px;
    color: #99a1af;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.paa-bid-server-hidden {
    overflow: visible;
}

/* ---- Tooltip ---- */
.paa-tip {
    display: inline-block;
    margin-left: 5px;
    font-size: 11px;
    color: #555;
    cursor: default;
    white-space: nowrap;
}
.paa-tip:hover {
    color: #99a1af;
}
.paa-tip-text { display: none; } /* content read by JS — not shown via CSS */
#paa-floating-tip {
    position: absolute;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #c0c8d4;
    font-size: 12px;
    line-height: 1.4;
    padding: 8px 12px;
    border-radius: 6px;
    width: 220px;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 8px));
}
.paa-bid-time {
    font-size: 11px;
    color: #444;
    white-space: nowrap;
}
.paa-bid-amount {
    font-size: 13px;
    font-weight: 700;
    color: #e0e0e0;
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}
.paa-bid-row-top .paa-bid-amount {
    color: #ff8904;
}
.paa-show-more-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: transparent;
    border: none;
    border-top: 1px solid #1e1e1e;
    color: #555;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.paa-show-more-btn:hover {
    background: #161616;
    color: #99a1af;
}

/* ---- History section (ended state) ---- */
.paa-history-section {
    margin-top: 36px;
}
.paa-privacy-note {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}
.paa-no-bids {
    color: #888;
    font-style: italic;
}

/* ---- Bids table ---- */
.paa-bids-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.paa-bids-table th {
    text-align: left;
    padding: 10px 12px;
    background: #1a1a2e;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.paa-bids-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #2a2a2a;
    color: #99a1af;
}
.paa-bids-table tr:hover td {
    background: #1f1f2f;
}
.paa-top-bid td {
    background: #1a1500;
    font-weight: 600;
    color: #e0e0e0;
}
.paa-winner-row td {
    background: #081a0c;
}
.paa-hidden-bid {
    color: #999;
    font-style: italic;
}

/* ---- Ended state ---- */
.paa-ended-notice {
    text-align: center;
    padding: 20px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    margin-bottom: 24px;
    color: #99a1af;
}
.paa-winner-announcement {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin-bottom: 32px;
}
.paa-winner-trophy {
    font-size: 56px;
    margin-bottom: 12px;
}
.paa-winner-announcement h3 {
    font-size: 24px;
    color: #ff8904;
    margin: 0 0 20px;
}
.paa-winner-details {
    display: inline-block;
    text-align: center;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 20px 28px;
    min-width: 280px;
}
.paa-winner-amount {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}
.paa-winner-amount-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
}
.paa-winner-amount-value {
    font-size: 32px;
    font-weight: 900;
    color: #ff8904;
}
.paa-winner-amount-unit {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255,255,255,0.3);
    margin-left: 2px;
}
.paa-winner-total,
.paa-winner-server {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
}
.paa-winner-mine {
    background: linear-gradient(135deg, #052e16 0%, #14532d 50%, #166534 100%);
}
.paa-winner-mine h3 {
    color: #22c55e;
}
.paa-winner-mine .paa-winner-amount-value {
    color: #22c55e;
}
.paa-winner-mine .paa-winner-amount-unit {
    color: rgba(34,197,94,0.4);
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .paa-hero-amount { font-size: 38px; }
    .paa-cd-value    { font-size: 26px; }
    .paa-cd-unit     { min-width: 50px; }
    .paa-bids-table  { font-size: 12px; }
    .paa-bids-table th,
    .paa-bids-table td { padding: 8px 6px; }
    .paa-bid-section { padding: 18px; }
    .paa-title { font-size: 20px; }
}
