/* ============================================================
   HARBOR OF HOPE - Public Community Pages
   ============================================================ */

/* Page background */
.public-page {
    background: #050505;
    background-image:
        linear-gradient(rgba(255, 106, 0, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 106, 0, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Scan beam (reused from login) */
.public-page .scanbeam {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.public-page .scanbeam::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 106, 0, 0.02) 30%,
        rgba(255, 106, 0, 0.05) 50%,
        rgba(255, 106, 0, 0.02) 70%,
        transparent 100%
    );
    animation: scanMove 8s ease-in-out infinite;
}

@keyframes scanMove {
    0% { top: -150px; }
    50% { top: 100vh; }
    100% { top: -150px; }
}

/* Navigation */
.pub-navbar {
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 106, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

.pub-brand-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #ff6a00;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 0 0 15px rgba(255, 106, 0, 0.3);
}

.pub-brand-sub {
    display: block;
    font-size: 0.55rem;
    font-weight: 600;
    color: rgba(255, 106, 0, 0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.pub-brand i {
    color: #ff6a00;
    filter: drop-shadow(0 0 8px rgba(255, 106, 0, 0.5));
}

.pub-nav-link {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0.85rem;
    border-radius: 3px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pub-nav-link:hover {
    color: #fff;
    background: rgba(255, 106, 0, 0.1);
}

.pub-nav-link.active {
    color: #ff6a00;
    background: rgba(255, 106, 0, 0.1);
    border-bottom: 2px solid #ff6a00;
}

.pub-nav-admin {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    transition: color 0.2s;
}

.pub-nav-admin:hover {
    color: #ff6a00;
}

/* Hero Section */
.pub-hero {
    padding: 5rem 0 4rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.pub-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(255, 106, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.pub-hero-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 106, 0, 0.6);
    border: 1px solid rgba(255, 106, 0, 0.2);
    padding: 0.4rem 1.2rem;
    margin-bottom: 1.5rem;
}

.pub-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 8px;
    text-transform: uppercase;
    text-shadow: 0 0 40px rgba(255, 106, 0, 0.2);
    margin-bottom: 0.75rem;
}

.pub-hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 500px;
    margin: 0 auto;
}

/* Hero stats */
.pub-hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.pub-stat-box {
    background: rgba(15, 15, 20, 0.8);
    border: 1px solid rgba(255, 106, 0, 0.15);
    padding: 1rem 2rem;
    min-width: 140px;
    position: relative;
}

.pub-stat-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 12px;
    height: 12px;
    border-top: 2px solid #ff6a00;
    border-left: 2px solid #ff6a00;
}

.pub-stat-box::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid #ff6a00;
    border-right: 2px solid #ff6a00;
}

.pub-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.pub-stat-label {
    font-size: 0.65rem;
    color: rgba(255, 106, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Sections */
.pub-section {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.pub-section-alt {
    background: rgba(255, 106, 0, 0.02);
    border-top: 1px solid rgba(255, 106, 0, 0.06);
    border-bottom: 1px solid rgba(255, 106, 0, 0.06);
}

.pub-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.pub-section-title i {
    color: #ff6a00;
    filter: drop-shadow(0 0 6px rgba(255, 106, 0, 0.4));
}

/* Feature cards */
.pub-feature-card {
    background: rgba(15, 15, 20, 0.8);
    border: 1px solid rgba(255, 106, 0, 0.1);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.pub-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff6a00, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.pub-feature-card:hover {
    border-color: rgba(255, 106, 0, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.pub-feature-card:hover::before {
    opacity: 1;
}

.pub-feature-icon {
    font-size: 2rem;
    color: #ff6a00;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px rgba(255, 106, 0, 0.4));
}

.pub-feature-card h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pub-feature-card p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Steps */
.pub-step {
    text-align: center;
    padding: 1.5rem;
}

.pub-step-num {
    font-size: 2rem;
    font-weight: 900;
    color: #ff6a00;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.6;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 15px rgba(255, 106, 0, 0.3);
}

.pub-step h6 {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Rules */
.pub-rules-card {
    background: rgba(15, 15, 20, 0.8);
    border: 1px solid rgba(255, 106, 0, 0.1);
    padding: 0;
    overflow: hidden;
}

.pub-rule {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 106, 0, 0.06);
    transition: background 0.2s;
}

.pub-rule:last-child {
    border-bottom: none;
}

.pub-rule:hover {
    background: rgba(255, 106, 0, 0.03);
}

.pub-rule-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ff6a00;
    min-width: 30px;
    opacity: 0.7;
}

.pub-rule h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pub-rule p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
    margin-bottom: 0;
}

/* Form labels */
.pub-form-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Footer */
.pub-footer {
    margin-top: auto;
    background: rgba(5, 5, 5, 0.95);
    border-top: 1px solid rgba(255, 106, 0, 0.1);
    position: relative;
    z-index: 1;
}

.pub-footer-brand {
    font-size: 0.85rem;
    font-weight: 800;
    color: rgba(255, 106, 0, 0.4);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.pub-footer-sub {
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
}

.pub-footer-link {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.pub-footer-link:hover {
    color: #ff6a00;
}

/* News cards */
.pub-news-card {
    background: rgba(15, 15, 20, 0.8);
    border: 1px solid rgba(255, 106, 0, 0.1);
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.pub-news-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 14px;
    height: 14px;
    border-top: 2px solid #ff6a00;
    border-left: 2px solid #ff6a00;
    transition: all 0.3s;
}

.pub-news-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    border-bottom: 2px solid #ff6a00;
    border-right: 2px solid #ff6a00;
    transition: all 0.3s;
}

.pub-news-card:hover {
    border-color: rgba(255, 106, 0, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.pub-news-card:hover::before,
.pub-news-card:hover::after {
    width: 20px;
    height: 20px;
}

.pub-news-title {
    color: #fff;
    font-weight: 700;
    margin: 0.75rem 0 0.5rem;
}

.pub-news-excerpt {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.pub-news-read {
    color: #ff6a00;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pub-post-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.3px;
}

.pub-post-meta i {
    color: rgba(255, 106, 0, 0.4);
}

.pub-post-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0.5rem 0 0;
}

.pub-post-content {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 0.95rem;
}

.pub-post-content h1, .pub-post-content h2, .pub-post-content h3 {
    color: #fff;
    margin-top: 1.5rem;
}

.pub-post-content a {
    color: #ff6a00;
}

.pub-post-content img {
    max-width: 100%;
    border-radius: 4px;
    border: 1px solid rgba(255, 106, 0, 0.1);
}

/* Main content area */
.pub-main {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .pub-hero-title {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .pub-hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .pub-nav {
        display: none !important;
    }

    .pub-stat-box {
        min-width: 200px;
    }
}
