/**
 * RLSBB Link Shortener - Intermediate Page Styles
 * Standalone shortener page design
 */

:root {
    --rlsbb-bg: #f5f3ef;
    --rlsbb-card: #ffffff;
    --rlsbb-border: #e8e5df;
    --rlsbb-text: #1a1a1a;
    --rlsbb-muted: #6b6560;
    --rlsbb-primary: #ff6b35;
    --rlsbb-primary-dark: #e55a2b;
}

/* Reset for standalone page */
body.rlsbb-shortener-page {
    background: var(--rlsbb-bg);
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    color: var(--rlsbb-text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

body.rlsbb-shortener-page .site-wrap,
body.rlsbb-shortener-page .site-header,
body.rlsbb-shortener-page .site-footer,
body.rlsbb-shortener-page .sidebar,
body.rlsbb-shortener-page #wpadminbar {
    display: none !important;
}

/* Container */
.shortener-wrap {
    width: 100%;
    max-width: 480px;
}

/* Logo */
.shortener-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.shortener-logo a {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--rlsbb-text);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.shortener-logo i {
    color: var(--rlsbb-primary);
    margin-right: 4px;
}

/* Cards */
.shortener-card {
    background: var(--rlsbb-card);
    border: 1px solid var(--rlsbb-border);
    padding: 1.75rem;
    margin-bottom: 0.75rem;
}

.shortener-timer-card {
    background: var(--rlsbb-card);
    border: 1px solid var(--rlsbb-border);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 0.75rem;
}

/* File Icon */
.shortener-icon-wrap {
    text-align: center;
    margin-bottom: 1rem;
}

.shortener-icon-circle {
    width: 60px;
    height: 60px;
    background: #fff5f0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--rlsbb-primary);
}

/* Filename */
.shortener-filename {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--rlsbb-text);
    text-align: center;
    word-break: break-all;
    line-height: 1.4;
    margin: 0 0 0.75rem;
}

/* Meta Badges */
.shortener-meta {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--rlsbb-border);
}

.shortener-meta-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fafaf7;
    border: 1px solid #eee;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #555;
}

.shortener-meta-badge i {
    color: var(--rlsbb-primary);
    font-size: 0.6rem;
}

/* Ad Space */
.shortener-ad {
    margin-bottom: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.shortener-ad-label {
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ccc;
    text-align: center;
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
}

.shortener-ad-box {
    background: #fdfcf9;
    border: 2px dashed #e8e5df;
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    font-size: 0.6rem;
    font-family: 'SF Mono', 'Consolas', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Center any script-injected content */
.shortener-ad > * {
    margin-left: auto;
    margin-right: auto;
}

.shortener-ad iframe,
.shortener-ad ins,
.shortener-ad script {
    display: block;
    margin: 0 auto;
    text-align: center;
}

/* Timer */
.shortener-timer-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff5f0;
    border: 3px solid var(--rlsbb-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.shortener-timer-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--rlsbb-primary);
    font-family: 'SF Mono', 'Consolas', monospace;
    line-height: 1;
}

.shortener-timer-label {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.shortener-waiting {
    font-size: 0.75rem;
    color: #bbb;
    margin: 0;
}

/* Download Button */
.shortener-dl-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--rlsbb-primary);
    color: #fff;
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: background 0.15s;
}

.shortener-dl-btn:hover {
    background: var(--rlsbb-primary-dark);
    color: #fff;
}

.shortener-dl-btn i {
    margin-right: 8px;
}

/* Security Badge */
.shortener-security {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.6rem;
    color: #ccc;
}

.shortener-security i {
    color: #22c55e;
    margin-right: 4px;
}

.shortener-security span {
    margin: 0 6px;
    color: #ddd;
}

/* Footer */
.shortener-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.65rem;
    color: #ccc;
}

.shortener-footer a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.15s;
}

.shortener-footer a:hover {
    color: var(--rlsbb-primary);
}

/* 404 State */
.shortener-404 {
    text-align: center;
}

.shortener-404 h2 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
}

.shortener-404 p {
    color: var(--rlsbb-muted);
    font-size: 0.85rem;
    margin: 0 0 1rem;
}

.shortener-home-btn {
    display: inline-block;
    background: var(--rlsbb-primary);
    color: #fff;
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.15s;
}

.shortener-home-btn:hover {
    background: var(--rlsbb-primary-dark);
    color: #fff;
}

.shortener-home-btn i {
    margin-right: 6px;
}