@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #050505;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Atmosphere */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 204, 51, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.feed-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header with Glassmorphism */
.feed-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    position: sticky;
    top: 10px;
    z-index: 100;
}

.back-btn {
    text-decoration: none;
    color: #ffcc33;
    font-size: 18px;
    margin-right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 204, 51, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #ffcc33;
    color: #000;
}

.header-title {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Feed List */
.feed-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 30px;
}

/* Post Card Modern Tech */
.post-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transition: all 0.4s ease;
}

.post-card:hover {
    border-color: rgba(255, 204, 51, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.pinned-indicator {
    font-family: 'Outfit', sans-serif;
    font-size: 9px;
    color: #ffcc33;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255, 204, 51, 0.05);
    border-bottom: 1px solid rgba(255, 204, 51, 0.1);
}

.pinned-indicator i {
    font-size: 11px;
    filter: drop-shadow(0 0 5px rgba(255, 204, 51, 0.5));
}

.post-header {
    display: flex;
    align-items: center;
    padding: 15px;
}

.post-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffcc33;
    margin-right: 12px;
    background: #000;
    padding: 2px;
    box-shadow: 0 0 10px rgba(255, 204, 51, 0.3);
}

.post-info {
    flex-grow: 1;
}

.post-author {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.verified-badge {
    color: #4da6ff;
    font-size: 11px;
    animation: glowBlue 2s infinite;
}

@keyframes glowBlue {

    0%,
    100% {
        filter: drop-shadow(0 0 2px rgba(77, 166, 255, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 8px rgba(77, 166, 255, 0.8));
    }
}

.post-time {
    font-size: 10px;
    color: #666;
    display: block;
    margin-top: 2px;
}

.post-content {
    width: 100%;
}

.post-image {
    width: 100%;
    display: block;
    object-fit: cover;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.post-actions {
    padding: 12px 15px;
    display: flex;
    gap: 18px;
}

.action-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover,
.action-btn.active {
    color: #ffcc33;
    transform: scale(1.1);
}

.save-btn {
    margin-left: auto;
}

/* Share Prompt CSS */
.share-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.share-prompt {
    position: absolute;
    left: 45px;
    white-space: nowrap;
    background: #ffcc33;
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 204, 51, 0.4);
    opacity: 0;
    transform: translateX(-10px);
    pointer-events: none;
    animation: promptPulse 4s infinite alternate;
    z-index: 10;
}

/* Arrow for the prompt */
.share-prompt::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #ffcc33;
}

@keyframes promptPulse {
    0% {
        opacity: 0;
        transform: translateX(-15px);
    }

    15% {
        opacity: 1;
        transform: translateX(0);
    }

    85% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(5px);
    }
}

.post-likes {
    padding: 0 15px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    display: block;
}

.post-caption {
    padding: 0 15px 15px 15px;
    font-size: 12px;
    line-height: 1.5;
    color: #aaa;
}

.username {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #ffcc33;
    margin-right: 6px;
    font-size: 11px;
}

/* Post Type: Text Only (Banner Style) */
.text-post {
    padding: 40px 20px;
    background: linear-gradient(135deg, #ffcc33, #b38600);
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.text-post::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: scanLine 4s infinite linear;
}

@keyframes scanLine {
    from {
        transform: rotate(45deg) translateY(-100%);
    }

    to {
        transform: rotate(45deg) translateY(100%);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered load */
.post-card:nth-child(1) {
    animation-delay: 0.1s;
}

.post-card:nth-child(2) {
    animation-delay: 0.3s;
}

.post-card:nth-child(3) {
    animation-delay: 0.5s;
}

/* Credits */
.developer-credits {
    text-align: center;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.2);
    padding-bottom: 25px;
    letter-spacing: 1.5px;
}