/* --- Enhanced Comment Styling --- */
.comments {
    margin-top: 12px;
    border-radius: 10px;
    background: #f8fafd;
    box-shadow: 0 2px 8px rgba(91, 134, 229, 0.07);
    padding: 8px 10px 4px 10px;
}

.comment {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0 8px 0;
    border-bottom: 1px solid #e3e8f0;
    font-size: 1.04rem;
    line-height: 1.5;
    position: relative;
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0eaff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #5b86e5;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    color: #888;
    font-size: 0.92em;
    margin-left: 8px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .comments {
        padding: 4px 2px 2px 2px;
        font-size: 0.98rem;
    }

    .comment {
        gap: 7px;
        padding: 8px 0 6px 0;
    }

    .comment-avatar {
        width: 26px;
        height: 26px;
        font-size: 0.98rem;
    }
}

/* Modal background and content for mobile */
.modal-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.25);
    z-index: 999;
}

.modal-content {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.13);
    padding: 2rem 1.5rem;
    max-width: 350px;
    width: 90vw;
}

@media (max-width: 600px) {

    .header,
    header {
        flex-direction: column;
        align-items: flex-start !important;
        padding: 0.7rem 0.2rem 0.7rem 0.2rem !important;
    }

    .logo {
        font-size: 1.1rem !important;
    }

    .anon-link {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem !important;
        padding: 0.7rem 0.5rem;
    }

    .anon-link input {
        width: 100% !important;
        text-align: left !important;
    }

    .modal-content {
        padding: 1.2rem 0.7rem;
        max-width: 98vw;
    }

    .fab {
        right: 1rem;
        bottom: 1.2rem;
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .glass-card,
    .anon-link-box,
    .gist-box {
        padding: 1.2rem 0.7rem 1.1rem 0.7rem;
        border-radius: 1rem;
    }

    .gist-user-pic {
        width: 32px;
        height: 32px;
    }
}

/* Mobile-friendly and homepage hero styles */
.anon-link-box,
.gist-box,
.glass-card {
    border-radius: 1.2rem;
    box-shadow: var(--shadow);
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    margin-bottom: 1.5rem;
    padding: 1.5rem 1.2rem 1.2rem 1.2rem;
    position: relative;
    overflow: hidden;
}

.anon-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #ffe0e3 0%, #e0f7fa 100%);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    font-size: 1.08rem;
    margin-bottom: 0.8rem;
    word-break: break-all;
    box-shadow: 0 2px 8px rgba(255, 94, 98, 0.07);
    font-weight: 600;
}

.share-btn,
.fab {
    background: var(--gradient-btn);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.7rem 1.7rem;
    font-size: 1.08rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 94, 98, 0.13);
    transition: background 0.2s, transform 0.15s;
}

.share-btn:hover,
.fab:hover {
    background: linear-gradient(90deg, #ff9966 0%, #ff5e62 100%);
    transform: scale(1.04);
}

.fab {
    position: fixed;
    right: 1.5rem;
    bottom: 2.2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.13);
    padding: 0;
}

.gist-card {
    margin-bottom: 2.2rem;
    border-radius: 1.2rem;
    border: 1.5px solid var(--glass-border);
    background: var(--glass-bg);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    position: relative;
    overflow: hidden;
    padding: 1.2rem 1rem 1rem 1rem;
}

.gist-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.gist-user-pic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 2.5px solid var(--primary);
    background: #ffe3e3;
    box-shadow: 0 2px 8px rgba(255, 94, 98, 0.13);
}

.gist-actions button {
    min-width: 44px;
    min-height: 44px;
    font-size: 1.1rem;
    border-radius: 10px;
    margin-right: 0.5rem;
    margin-bottom: 0.3rem;
    padding: 0.5rem 1.1rem;
    border: none;
    background: #f5f5f5;
    color: var(--text);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(31, 38, 135, 0.07);
    transition: background 0.2s, color 0.2s;
}

.gist-actions button:active {
    background: var(--gradient-gossip);
    color: #fff;
}

@media (max-width: 600px) {
    .container {
        padding: 0 0.2rem 2.5rem 0.2rem;
    }

    .glass-card,
    .anon-link-box,
    .gist-box {
        padding: 1.2rem 0.7rem 1.1rem 0.7rem;
        border-radius: 1rem;
    }

    .profile-pic {
        width: 38px;
        height: 38px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .gist-user-pic {
        width: 32px;
        height: 32px;
    }
}

:root {
    --primary: #ff5e62;
    --secondary: #36d1c4;
    --accent: #5b86e5;
    --bg-gradient: linear-gradient(135deg, #f9f6ff 0%, #fbeee6 100%);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.25);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.13);
    --text: #222;
    --muted: #888;
    --gradient-btn: linear-gradient(90deg, #ff5e62 0%, #ff9966 100%);
    --gradient-gossip: linear-gradient(90deg, #36d1c4 0%, #5b86e5 100%);
    --like: #ff5e62;
    --comment: #5b86e5;
    --gossip: #36d1c4;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', Arial, sans-serif;
    background: var(--bg-gradient);
    color: var(--text);
    min-height: 100vh;
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: radial-gradient(circle at 80% 10%, #ff5e62 0%, transparent 60%),
        radial-gradient(circle at 10% 90%, #36d1c4 0%, transparent 60%),
        var(--bg-gradient);
    opacity: 0.25;
    pointer-events: none;
}

header {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.2rem 2rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom-left-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
}

.logo {
    font-weight: 900;
    font-size: 1.7rem;
    background: linear-gradient(90deg, #ff5e62 0%, #36d1c4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(255, 94, 98, 0.08);
}

.profile-pic {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    background: #ffe3e3;
    box-shadow: 0 2px 8px rgba(255, 94, 98, 0.13);
}

.container {
    max-width: 600px;
    margin: 2.5rem auto 0 auto;
    padding: 0 1.2rem 2.5rem 1.2rem;
    position: relative;
    z-index: 1;
}

.glass-card {
    background: var(--glass-bg);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    border: 1.5px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 2rem;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.7s cubic-bezier(.39, .575, .565, 1) both;
}

.anon-link-box h2 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.anon-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #ffe0e3 0%, #e0f7fa 100%);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    font-size: 1.08rem;
    margin-bottom: 0.8rem;
    word-break: break-all;
    box-shadow: 0 2px 8px rgba(255, 94, 98, 0.07);
    font-weight: 600;
}

.share-btn {
    background: var(--gradient-btn);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.4rem;
    font-size: 1.08rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 94, 98, 0.13);
    transition: background 0.2s, transform 0.15s;
}

.share-btn:hover {
    background: linear-gradient(90deg, #ff9966 0%, #ff5e62 100%);
    transform: scale(1.04);
}

.share-btn.wide {
    width: 100%;
    margin-bottom: 0.7rem;
    background: var(--gradient-gossip);
}

.share-btn.wide:hover {
    background: linear-gradient(90deg, #5b86e5 0%, #36d1c4 100%);
}

.muted {
    color: var(--muted);
    font-size: 1.01rem;
    margin: 0;
}

.feed {
    margin-top: 1.2rem;
}

.gist-card {
    padding: 1.5rem 1.2rem 1.2rem 1.2rem;
    margin-bottom: 2.2rem;
    border-radius: 1.5rem;
    border: 1.5px solid var(--glass-border);
    background: var(--glass-bg);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    position: relative;
    overflow: hidden;
}

.gist-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.gist-user-pic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 2.5px solid var(--primary);
    background: #ffe3e3;
    box-shadow: 0 2px 8px rgba(255, 94, 98, 0.13);
}

.gist-username {
    font-weight: 800;
    font-size: 1.13rem;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.gist-content {
    margin-bottom: 1rem;
    font-size: 1.18rem;
    color: var(--text);
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.gist-img {
    width: 100%;
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(54, 209, 196, 0.09);
    position: relative;
    z-index: 1;
    object-fit: cover;
    max-height: 260px;
}

.gist-actions {
    display: flex;
    gap: 1.7rem;
    font-size: 1.13rem;
    margin-bottom: 0.2rem;
    position: relative;
    z-index: 1;
}

.gist-actions button {
    background: none;
    border: none;
    font-weight: 700;
    cursor: pointer;
    padding: 0.3rem 0.9rem;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    font-size: 1.13rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.like-btn {
    color: var(--like);
}

.like-btn:hover {
    background: #ffe0e3;
    color: #ff5e62;
}

.comment-btn {
    color: var(--comment);
}

.comment-btn:hover {
    background: #e0eaff;
    color: #5b86e5;
}

.gossip-btn {
    color: var(--gossip);
    background: #e0f7fa;
}

.gossip-btn:hover {
    background: #d1f3ee;
    color: #5b86e5;
}

.fab {
    position: fixed;
    bottom: 2.2rem;
    right: 2.2rem;
    background: var(--gradient-btn);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    font-size: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(255, 94, 98, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: background 0.2s, transform 0.15s;
}

.fab:hover {
    background: linear-gradient(90deg, #ff9966 0%, #ff5e62 100%);
    transform: scale(1.08);
}

@media (max-width: 900px) {
    .container {
        max-width: 98vw;
        padding: 0 0.5rem 2.5rem 0.5rem;
    }

    header {
        padding: 1.2rem 1rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 0.2rem 2.5rem 0.2rem;
    }

    .glass-card,
    .gist-card {
        padding: 1.2rem 0.7rem 1rem 0.7rem;
    }

    .fab {
        width: 54px;
        height: 54px;
        font-size: 2rem;
        bottom: 1.2rem;
        right: 1.2rem;
    }

    header {
        padding: 1rem 0.7rem;
    }

    .profile-pic {
        width: 38px;
        height: 38px;
    }

    .gist-user-pic {
        width: 34px;
        height: 34px;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}