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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f3f2ef;
    color: #000000e6;
    line-height: 1.5;
    margin: 0;
    padding-top: 52px;
    /* Account for fixed nav */
}

/* LinkedIn-style Navigation */
.linkedin-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
    height: 52px;
}

.nav-container {
    max-width: 1128px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 24px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.linkedin-logo {
    display: flex;
    align-items: center;
}

.app-title {
    font-size: 24px;
    font-weight: 700;
    color: #0a66c2;
    margin: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-refresh-btn {
    background: #0a66c2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.nav-refresh-btn:hover {
    background: #004182;
}

.github-link {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.github-link:hover {
    background-color: #f3f2ef;
}

/* Main Layout */
.main-container {
    max-width: 1128px;
    margin: 0 auto;
    padding: 24px;
}

.linkedin-layout {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

.feed-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.refresh-btn {
    background: #0a66c2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.refresh-btn:hover {
    background: #004182;
}

.cringe-meter {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.stars {
    font-size: 1.2rem;
}

.linkedin-post {
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15), 0 2px 3px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.profile-section {
    display: flex;
    gap: 12px;
    flex: 1;
}

.profile-pic {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.name {
    font-weight: 600;
    font-size: 14px;
    color: #000000e6;
    margin-bottom: 2px;
}

.subtitle {
    font-size: 12px;
    color: #666666;
    line-height: 1.3;
    margin-bottom: 4px;
}

.post-time {
    font-size: 12px;
    color: #666666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.follow-btn {
    background: transparent;
    color: #0a66c2;
    border: 1px solid #0a66c2;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.follow-btn:hover {
    background: #0a66c2;
    color: white;
}

.post-content {
    padding: 16px;
}

.post-text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    white-space: pre-line;
}

.post-text h3 {
    color: #0a66c2;
    margin: 16px 0 8px 0;
    font-size: 15px;
}

.post-text ol,
.post-text ul {
    margin: 12px 0;
    padding-left: 20px;
}

.post-text li {
    margin: 8px 0;
    line-height: 1.4;
}

.post-text strong {
    font-weight: 600;
    color: #000;
}

.post-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.post-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 12px;
    color: #666666;
}

.reactions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.reaction-icons {
    font-size: 14px;
}

.engagement {
    display: flex;
    gap: 16px;
}

.post-actions {
    display: flex;
    padding: 8px 0;
}

.action-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px;
    font-size: 14px;
    color: #666666;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.action-btn:hover {
    background: #f3f2ef;
}

footer,
.app-footer {
    text-align: center;
    margin-top: 24px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15), 0 2px 3px rgba(0, 0, 0, 0.2);
    font-size: 12px;
    color: #666;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }

    .app-title {
        font-size: 20px;
    }

    .nav-refresh-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .main-container {
        padding: 16px;
    }
}

/* Hashtag styling */
.post-text .hashtag {
    color: #0a66c2;
    text-decoration: none;
}

.post-text .hashtag:hover {
    text-decoration: underline;
}

/* Emphasis for key phrases */
.post-text .emphasis {
    background: linear-gradient(90deg, #ffd700 0%, #ffd700 100%);
    background-size: 0% 40%;
    background-repeat: no-repeat;
    background-position: 0% 80%;
    animation: highlight 0.8s ease-in-out;
    padding: 2px 0;
}

@keyframes highlight {
    0% {
        background-size: 0% 40%;
    }

    100% {
        background-size: 100% 40%;
    }
}