* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'VT323', monospace;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    font-size: 24px;
    letter-spacing: 0.5px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
}

/* Header */
header {
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.header-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 12px;
}

.header-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: center;
    white-space: nowrap;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
    backdrop-filter: blur(8px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    flex-shrink: 0;
    font-family: 'VT323', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Filter Controls */
.filter-controls {
    margin-bottom: 30px;
}

/* Search Bar */
.search-container {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-family: 'VT323', monospace;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #333;
    border-radius: 25px;
    color: #fff;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #c77dff;
    box-shadow: 0 0 15px rgba(199, 125, 255, 0.3);
}

.search-input:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #555;
}

.filter-section {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
}

.filter-section h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 400;
    font-family: 'VT323', monospace;
    letter-spacing: 1px;
}

.range-slider-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.9rem;
}

.range-labels span {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.range-inputs {
    display: flex;
    gap: 20px;
    align-items: center;
}

.range-slider {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* Checkbox Styles */
.checkbox-container {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #c77dff;
}

.checkbox-label {
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-label:hover {
    color: #c77dff;
}

/* Loading State */
.loading {
    text-align: center;
    color: #ffffff;
    font-size: 1.1rem;
    padding: 60px 20px;
}

.error {
    background: rgba(255, 0, 110, 0.1);
    color: #ff006e;
    padding: 20px;
    border: 1px solid rgba(255, 0, 110, 0.3);
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.no-data {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    padding: 60px 20px;
}

/* Feed Container */
.feed-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Feed Posts */
.feed-post {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feed-post:hover {
    background: #222222;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Post Header */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 15px;
}

.header-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    order: 1;
    min-width: 0;
}

.title-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.token-title {
    color: #ffffff;
    font-size: 2.1rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'VT323', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.token-title:hover {
    color: #ffffff;
    text-decoration: underline;
    opacity: 0.9;
}

.ape-scores-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.ape-score {
    color: #fff;
    font-size: 1.1rem;
    padding: 6px 12px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(199, 125, 255, 0.2), rgba(199, 125, 255, 0.1));
    border: 1px solid #c77dff;
    font-family: 'VT323', monospace;
}

.avg-ape-score {
    color: #ffd700;
    font-size: 1.1rem;
    padding: 6px 12px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border: 1px solid #ffd700;
    font-family: 'VT323', monospace;
}

.organic-score {
    color: #4ade80;
    font-size: 1.1rem;
    padding: 6px 12px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(74, 222, 128, 0.2), rgba(74, 222, 128, 0.1));
    border: 1px solid #4ade80;
    font-family: 'VT323', monospace;
}

.avg-organic-score {
    color: #22c55e;
    font-size: 1.1rem;
    padding: 6px 12px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    border: 1px solid #22c55e;
    font-family: 'VT323', monospace;
}

.timestamp {
    color: #666;
    font-size: 0.85rem;
}

/* Token Image */
.token-image-link {
    display: block;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    order: 2;
}

.token-image-link:hover {
    transform: scale(1.05);
}

.token-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #1a1a1a;
}

/* Post Content */
.post-content {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 400;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'VT323', monospace;
}

.show-more-btn {
    display: inline-block;
    margin-top: 10px;
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Post Footer */
.post-footer {
    display: flex;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 10px;
    flex-wrap: wrap;
}

.address-label {
    color: #666;
    font-size: 0.85rem;
}

.token-address {
    color: #888;
    font-family: monospace;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 400px;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ffffff;
    color: #000;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
    animation: slideUp 0.3s ease;
    z-index: 1000;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Previous Posts Section */
.previous-posts-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.previous-posts-toggle {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.previous-posts-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.previous-posts-toggle.expanded {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.previous-posts-container {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.previous-post {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.previous-post:hover {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.15);
}

.previous-post-header {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.previous-post-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.update-label {
    color: #ffffff;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.previous-post-timestamp {
    color: #666;
    font-size: 0.8rem;
}

.previous-post-ape-score {
    color: #c77dff;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid rgba(199, 125, 255, 0.3);
}

.previous-post-organic-score {
    color: #4ade80;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.previous-post-content {
    color: #ffffff;
    line-height: 1.5;
    font-size: 1.1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Pagination */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    padding: 20px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.pagination-btn {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.pagination-btn:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    color: #666;
    border-color: rgba(255, 255, 255, 0.1);
}

.page-info {
    color: #888;
    font-size: 0.9rem;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

/* Mobile Responsive */
@media (max-width: 700px) {
    .header-image {
        max-width: 100%;
    }

    .header-nav {
        bottom: 10px;
        gap: 8px;
        padding: 0 10px;
    }

    .nav-link {
        font-size: 0.7rem;
        padding: 5px 8px;
    }

    .token-image {
        width: 60px;
        height: 60px;
    }

    .token-image-link {
        order: 2;
        margin-left: 10px;
    }

    .header-left {
        order: 1;
        flex: 1;
        min-width: 0;
    }

    .token-title {
        font-size: 1.6rem;
    }

    .title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .post-header {
        flex-direction: row;
        gap: 15px;
    }

    .token-address {
        max-width: 200px;
        font-size: 0.75rem;
        flex-shrink: 1;
    }

    .post-footer {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .address-label {
        flex-shrink: 0;
    }

    .copy-btn {
        flex-shrink: 0;
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .pagination-controls {
        flex-direction: column;
        gap: 15px;
    }

    .filter-section {
        padding: 20px;
    }

    .ape-scores-wrapper {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
    }

    .ape-score,
    .avg-ape-score,
    .organic-score,
    .avg-organic-score {
        font-size: 1rem;
        padding: 5px 10px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .search-input {
        font-size: 1rem;
        padding: 10px 16px;
    }
}