/* ===== PAGE-SPECIFIC STYLES ===== */

/* ===== PAGE HEADER ===== */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(48, 255, 80, 0.3);
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--pipboy-green);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== SMALL HEADER LOGO ===== */
.site-icon-small {
    width: 50px;
    height: 50px;
}

.site-title-small {
    font-size: 1.5rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ===== DISCORD INFO BOX ===== */
.discord-info {
    background:
        linear-gradient(135deg, rgba(48, 255, 80, 0.05) 0%, rgba(42, 42, 42, 0.9) 100%);
    border: 2px solid var(--pipboy-green);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.discord-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--pipboy-green), transparent);
}

.discord-info h2 {
    color: var(--pipboy-green);
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--pipboy-green-dim);
}

.discord-info ol {
    list-style-position: inside;
    color: var(--text-secondary);
    line-height: 2;
}

.discord-info li {
    margin-bottom: 10px;
}

.discord-info code {
    background: rgba(48, 255, 80, 0.1);
    padding: 3px 8px;
    border-radius: 3px;
    color: var(--pipboy-green);
    font-family: 'Courier New', monospace;
}

.discord-info a {
    color: var(--radiation-yellow);
    text-decoration: underline;
}

.discord-btn-small {
    display: inline-block;
    margin-top: 20px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1rem;
    border: 2px solid #7289da;
    transition: all 0.3s ease;
}

.discord-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

/* ===== FORM SECTION ===== */
.form-section {
    background:
        linear-gradient(135deg, rgba(42, 42, 42, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
    border: 2px solid var(--metal-gray);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
}

.form-section h2 {
    color: var(--text-primary);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--pipboy-green);
    margin-bottom: 8px;
    font-weight: bold;
    text-shadow: 0 0 5px var(--pipboy-green-dim);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--metal-gray);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pipboy-green);
    box-shadow: 0 0 10px rgba(48, 255, 80, 0.2);
}

.form-group small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 5px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--pipboy-green) 0%, var(--pipboy-green-dim) 100%);
    color: var(--pipboy-dark);
    border: none;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(48, 255, 80, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(48, 255, 80, 0.5);
}

/* ===== POSTS SECTION ===== */
.posts-section {
    margin-bottom: 40px;
}

.posts-section h2 {
    color: var(--text-primary);
    margin-bottom: 25px;
    font-size: 1.8rem;
}

/* ===== LOADING MESSAGE ===== */
.loading-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--pipboy-green);
    font-size: 1.1rem;
}

.loading-message p {
    margin: 10px 0;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.loading-message p:nth-child(1) { animation-delay: 0s; }
.loading-message p:nth-child(2) { animation-delay: 0.5s; }

/* ===== TRADING POSTS ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.trade-card {
    background:
        linear-gradient(135deg, rgba(42, 42, 42, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
    border: 2px solid var(--metal-gray);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.trade-card:hover {
    border-color: var(--pipboy-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(48, 255, 80, 0.2);
}

.trade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.trade-type {
    background: var(--pipboy-green);
    color: var(--pipboy-dark);
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.85rem;
}

.trade-type.WTS { background: var(--pipboy-green); }
.trade-type.WTB { background: #5865F2; }
.trade-type.WTT { background: var(--radiation-yellow); }

.trade-stars {
    font-size: 0.9rem;
}

.trade-item {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.trade-price {
    color: var(--radiation-yellow);
    font-size: 1rem;
    margin-bottom: 15px;
}

.trade-user {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-top: 10px;
    border-top: 1px solid var(--metal-gray);
}

/* ===== CAMP GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.camp-card {
    background:
        linear-gradient(135deg, rgba(42, 42, 42, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
    border: 2px solid var(--metal-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.camp-card:hover {
    border-color: var(--wasteland-rust);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.3);
}

.camp-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 2px solid var(--metal-gray);
}

.camp-content {
    padding: 20px;
}

.camp-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--pipboy-green);
    margin-bottom: 10px;
}

.camp-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.camp-location {
    color: var(--radiation-yellow);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.camp-user {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ===== STORIES FEED ===== */
.stories-feed {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.story-card {
    background:
        linear-gradient(135deg, rgba(42, 42, 42, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
    border: 2px solid var(--metal-gray);
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
}

.story-card:hover {
    border-color: var(--pipboy-green);
    box-shadow: 0 5px 20px rgba(48, 255, 80, 0.15);
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.story-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.story-type {
    background: var(--metal-gray);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.story-type.story { background: var(--pipboy-green); color: var(--pipboy-dark); }
.story-type.tip { background: #5865F2; color: white; }
.story-type.funny { background: var(--radiation-yellow); color: var(--metal-dark); }
.story-type.achievement { background: #FF6B6B; color: white; }

.story-content {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
    white-space: pre-wrap;
}

.story-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 2px solid var(--metal-gray);
}

.story-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--metal-gray);
}

.story-user {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.story-date {
    color: var(--pipboy-green-dim);
    font-size: 0.85rem;
}

/* ===== FILTER SECTION ===== */
.filter-section {
    background:
        linear-gradient(135deg, rgba(42, 42, 42, 0.7) 0%, rgba(26, 26, 26, 0.7) 100%);
    border: 2px solid var(--metal-gray);
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.filter-section h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--metal-gray);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--pipboy-green);
    border-color: var(--pipboy-green);
    color: var(--pipboy-dark);
    box-shadow: 0 0 10px rgba(48, 255, 80, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .posts-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: 20px;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}
