/* ===== Platform Preview Mockups ===== */

.platform-mock {
    border-radius: var(--radius-lg);
    font-family: var(--font-sans);
}

/* ==================
   Twitter / X Mockup
   ================== */
.twitter-mock {
    background: #000;
    border: 1px solid #2f3336;
    border-radius: var(--radius-lg);
}

.tweet-card {
    padding: 12px 16px;
    border-bottom: 1px solid #2f3336;
    position: relative;
}

.tweet-card:last-child {
    border-bottom: none;
}

.tweet-reply {
    padding-top: 4px;
}

.tweet-thread-line {
    position: absolute;
    top: 0;
    left: 36px;
    width: 2px;
    height: 12px;
    background: #333639;
}

.tweet-layout {
    display: flex;
    gap: 12px;
}

.tweet-avatar-col {
    flex-shrink: 0;
}

.tweet-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.tweet-content-col {
    flex: 1;
    min-width: 0;
}

.tweet-header {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.tweet-name {
    font-weight: 700;
    font-size: 15px;
    color: #e7e9ea;
}

.tweet-verified {
    flex-shrink: 0;
}

.tweet-handle,
.tweet-dot,
.tweet-time {
    color: #71767b;
    font-size: 15px;
}

.tweet-thread-badge {
    font-size: 11px;
    background: rgba(29, 155, 240, 0.15);
    color: #1d9bf0;
    padding: 1px 8px;
    border-radius: 99px;
    margin-left: 4px;
    font-weight: 600;
}

.tweet-text {
    font-size: 15px;
    line-height: 1.5;
    color: #e7e9ea;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.tweet-hashtag {
    color: #1d9bf0;
}

.tweet-mention {
    color: #1d9bf0;
}

.tweet-link {
    color: #1d9bf0;
}

.tweet-divider {
    border-top: 1px solid #2f3336;
    margin: 10px 0;
}

.tweet-bullet {
    padding-left: 4px;
    margin: 2px 0;
}

.tweet-image {
    margin-top: 12px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #2f3336;
}

.tweet-image img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
}

.tweet-actions {
    display: flex;
    justify-content: space-between;
    max-width: 400px;
    margin-top: 12px;
}

.tweet-action {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #71767b;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.15s;
    padding: 4px;
}

.tweet-action:hover {
    color: #1d9bf0;
}

.tweet-action.retweet:hover {
    color: #00ba7c;
}

.tweet-action.like:hover {
    color: #f91880;
}

.tweet-action span {
    font-size: 13px;
}

/* ==================
   LinkedIn Mockup
   ================== */
.linkedin-mock {
    background: #1b1f23;
    border: 1px solid #38434f;
    border-radius: var(--radius-lg);
}

.li-card {
    padding: 0;
}

.li-header {
    display: flex;
    gap: 10px;
    padding: 14px 16px 0;
    align-items: flex-start;
}

.li-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0077b5, #00a0dc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.li-author-info {
    flex: 1;
    min-width: 0;
}

.li-name {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    display: block;
}

.li-headline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.li-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    display: block;
}

.li-more {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    letter-spacing: 2px;
    cursor: pointer;
}

.li-body {
    padding: 10px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
}

.li-image {
    border-top: 1px solid #38434f;
    border-bottom: 1px solid #38434f;
}

.li-image img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.li-stats {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.li-divider {
    height: 1px;
    background: #38434f;
    margin: 0 16px;
}

.li-actions {
    display: flex;
    justify-content: space-around;
    padding: 4px 8px;
}

.li-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s;
}

.li-action:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
}

/* ==================
   Reddit Mockup
   ================== */
.reddit-mock {
    background: #1a1a1b;
    border: 1px solid #343536;
    border-radius: var(--radius-lg);
}

.reddit-card {
    display: flex;
    gap: 0;
}

.reddit-vote-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.02);
    gap: 4px;
    flex-shrink: 0;
}

.reddit-vote {
    background: none;
    border: none;
    color: #818384;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s;
    font-family: inherit;
}

.reddit-vote.up:hover {
    color: #ff4500;
}

.reddit-vote.down:hover {
    color: #7193ff;
}

.reddit-score {
    font-size: 12px;
    font-weight: 700;
    color: #d7dadc;
}

.reddit-content-col {
    flex: 1;
    padding: 12px 16px 12px 0;
    min-width: 0;
}

.reddit-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #818384;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.reddit-sub {
    font-weight: 700;
    color: #d7dadc;
}

.reddit-dot {
    margin: 0 2px;
}

.reddit-title {
    font-size: 18px;
    font-weight: 600;
    color: #d7dadc;
    margin-bottom: 10px;
    line-height: 1.3;
}

.reddit-image {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.reddit-image img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
}

.reddit-body {
    font-size: 14px;
    line-height: 1.6;
    color: #d7dadc;
    max-height: 250px;
    overflow-y: auto;
}

.reddit-body p {
    margin-bottom: 12px;
}

.reddit-body ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.reddit-body li {
    margin-bottom: 4px;
}

.reddit-link {
    color: #4fbcff;
}

.reddit-actions {
    display: flex;
    gap: 4px;
    margin-top: 12px;
}

.reddit-action {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #818384;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background 0.15s;
}

.reddit-action:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ==================
   WordPress Mockup
   ================== */
.wordpress-mock {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.wp-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #f6f6f6;
    border-bottom: 1px solid #e5e7eb;
}

.wp-dots {
    display: flex;
    gap: 6px;
}

.wp-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.wp-dots span:nth-child(1) {
    background: #ff5f57;
}

.wp-dots span:nth-child(2) {
    background: #febc2e;
}

.wp-dots span:nth-child(3) {
    background: #28c840;
}

.wp-url {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: #666;
    background: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.wp-hero-image img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

.wp-content {
    padding: 24px 28px;
    max-height: 350px;
    overflow-y: auto;
}

.wp-breadcrumb {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}

.wp-title {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.wp-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.wp-author-badge {
    font-weight: 600;
    color: #4F46E5;
}

.wp-body {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.wp-body h1 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 20px 0 8px;
}

.wp-body h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 18px 0 8px;
}

.wp-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin: 14px 0 6px;
}

.wp-body p {
    margin-bottom: 12px;
}

.wp-body strong {
    color: #111;
}

.wp-body ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.wp-body li {
    margin-bottom: 4px;
}

.wp-link {
    color: #4F46E5;
    text-decoration: underline;
}

/* ==================
   Post Detail Integration
   ================== */
.post-content-body {
    padding: var(--space-4);
    overflow: visible;
}

/* ==================
   Post Detail Layout
   ================== */
.post-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
    align-items: start;
}

.post-detail-card {
    transform: none !important;
    box-shadow: var(--shadow-xs) !important;
}

.post-detail-card:hover {
    transform: none !important;
    box-shadow: var(--shadow-xs) !important;
}

@media (max-width: 900px) {
    .post-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================
   Responsive
   ================== */
@media (max-width: 600px) {
    .tweet-avatar {
        width: 32px;
        height: 32px;
    }

    .tweet-text {
        font-size: 14px;
    }

    .li-avatar {
        width: 40px;
        height: 40px;
    }

    .reddit-title {
        font-size: 16px;
    }

    .wp-content {
        padding: 16px;
    }

    .wp-title {
        font-size: 20px;
    }
}