/* LinkedIn-authentic cringe styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f3f2ef;
    color: #000000e6;
    line-height: 1.5;
}

.header {
    background: linear-gradient(135deg, #0077b5, #00a0dc);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.header-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.logo {
    margin-bottom: 1rem;
}

.logo-in {
    display: inline-block;
    background: white;
    color: #0077b5;
    font-weight: bold;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tagline {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.95;
    font-style: italic;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

/* Authentic LinkedIn post card */
.linkedin-post {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.post-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

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

.profile-pic {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.name {
    font-weight: 600;
    font-size: 14px;
    color: #000000e6;
    cursor: pointer;
}

.name:hover {
    text-decoration: underline;
    color: #0073b1;
}

.title {
    font-size: 12px;
    color: #00000099;
    margin-top: 2px;
}

.post-time {
    font-size: 12px;
    color: #00000099;
    margin-top: 2px;
}

.more-options {
    color: #00000099;
    font-size: 20px;
    cursor: pointer;
    padding: 0 8px;
}

.post-content {
    padding: 0 16px 16px;
}

.opening-line {
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 500;
}

.story-section {
    margin: 16px 0;
}

.dramatic-line {
    font-size: 14px;
    margin: 8px 0;
    line-height: 1.6;
}

/* The annoying single line dramatic effect */
.dramatic-line:nth-child(3n) {
    margin: 16px 0;
    font-weight: 500;
}

.lesson-section {
    background: #f3f2ef;
    padding: 12px;
    border-radius: 4px;
    margin: 16px 0;
}

.lesson-header {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #000000e6;
}

.lesson-text {
    font-size: 14px;
    font-style: italic;
    color: #00000099;
}

.emoji-spam {
    font-size: 20px;
    margin: 16px 0;
    letter-spacing: 4px;
}

.cta-section {
    font-size: 14px;
    font-weight: 600;
    margin: 16px 0;
    color: #000000e6;
}

.hashtag-section {
    font-size: 13px;
    color: #0073b1;
    margin-top: 12px;
    line-height: 1.8;
    word-wrap: break-word;
}

.engagement-section {
    padding: 8px 16px;
    border-top: 1px solid #e9e5df;
    border-bottom: 1px solid #e9e5df;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #00000099;
}

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

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

.reaction-count {
    color: #00000099;
}

.comments-reposts {
    display: flex;
    gap: 8px;
}

.action-buttons {
    display: flex;
    padding: 4px 8px;
    justify-content: space-around;
}

.action-btn {
    background: none;
    border: none;
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #00000099;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.2s;
    flex: 1;
    justify-content: center;
}

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

.btn-icon {
    font-size: 20px;
}

/* Controls section */
.controls {
    margin-top: 2rem;
}

.generate-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    font-size: 14px;
    line-height: 1.6;
}

/* New styles for enhanced features */
.generation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 1rem;
}

.gen-btn, .ai-btn {
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.gen-btn:hover, .ai-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ai-section {
    display: flex;
    gap: 10px;
    margin: 1rem 0;
}

.api-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.api-input:focus {
    outline: none;
    border-color: #667eea;
}

.ai-btn {
    background: linear-gradient(135deg, #00a0dc, #0077b5);
}

/* Graph container */
.graph-container {
    padding: 16px;
    margin: 16px 0;
    background: #f8f9fa;
    border-radius: 8px;
}

.graph-caption {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin-top: 10px;
    font-style: italic;
}

/* Fake comments */
.fake-comments {
    padding: 16px;
    border-top: 1px solid #e9e5df;
}

.fake-comment {
    padding: 8px 0;
    font-size: 14px;
}

.fake-comment strong {
    color: #000;
    margin-right: 8px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #666;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

.typing-text {
    margin-left: 8px;
    color: #666;
    font-size: 12px;
    font-style: italic;
    width: auto;
    height: auto;
    background: none;
    animation: none;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.2;
    }
    30% {
        opacity: 1;
    }
}

/* Post content dynamic styles */
.post-content-dynamic {
    transition: opacity 0.3s;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.emphasis-line {
    font-size: 16px;
    font-weight: bold;
    margin: 16px 0;
    color: #000;
    text-transform: uppercase;
}

.cta-line {
    font-weight: 600;
    margin: 16px 0;
}

.post-line {
    margin: 8px 0;
    line-height: 1.6;
}

.line-break {
    height: 8px;
}

/* Floating reactions */
.floating-reaction {
    position: absolute;
    animation: float-up 1s ease-out forwards;
    font-size: 24px;
    pointer-events: none;
}

@keyframes float-up {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px) scale(1.2);
        opacity: 0;
    }
}

.reacted {
    background: #e1f5ff !important;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Keyboard shortcuts */
.keyboard-shortcuts {
    background: #e8f4f8;
    border: 1px solid #b3d9e6;
    color: #0077b5;
    padding: 12px;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 12px;
}

.keyboard-shortcuts code {
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.post-type {
    text-align: center;
    color: #666;
    font-size: 13px;
    font-style: italic;
}

.footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9e5df;
    color: #00000099;
    font-size: 14px;
}

.disclaimer {
    margin-top: 0.5rem;
    font-size: 12px;
    font-style: italic;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .action-buttons {
        padding: 4px;
    }
    
    .action-btn {
        font-size: 12px;
        padding: 8px;
    }
    
    .btn-icon {
        font-size: 16px;
    }
}