/* ========================================================= */
/* LinkedIn Post Formatter - REDESIGNED UI/UX */
/* Clear sections with solid borders, better visual hierarchy */
/* ========================================================= */

/* VARIABLES */
:root {
    --linkedin-blue: #0077B5;
    --linkedin-blue-hover: #006097;
    --whatsapp-green: #25D366;
    --section-bg: #ffffff;
    --border-solid: #d1d5db;
    --border-accent: #0077B5;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --gradient-header: linear-gradient(135deg, #0077B5 0%, #00a0dc 100%);
}

/* ========================================================= */
/* LAYOUT */
/* ========================================================= */

.linkedin-main {
    min-height: 100vh;
    padding-top: 80px;
    background: #f9fafb;
}

/* BREADCRUMBS */
.linkedin-breadcrumbs {
    padding: 1.5rem 0;
    background: white;
    border-bottom: 2px solid #e5e7eb;
}

.linkedin-breadcrumbs nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.linkedin-breadcrumbs a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.linkedin-breadcrumbs a:hover {
    color: var(--linkedin-blue);
}

.linkedin-breadcrumbs span:last-child {
    color: #111827;
    font-weight: 600;
}

/* HERO SECTION */
.linkedin-hero {
    padding: 3rem 0 2rem;
    background: var(--gradient-header);
    color: white;
    text-align: center;
    border-bottom: 4px solid #006097;
}

.linkedin-hero h1 {
    font-size: clamp(28px, 5vw, 40px);
    margin-bottom: 1.25rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.linkedin-intro {
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

/* AEO SECTION */
.linkedin-aeo-section {
    padding: 2.5rem 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.linkedin-aeo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.linkedin-aeo-card {
    padding: 2rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-left: 4px solid var(--linkedin-blue);
    border-radius: 8px;
    transition: all 0.3s;
}

.linkedin-aeo-card:hover {
    border-color: var(--linkedin-blue);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.linkedin-aeo-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #111827;
    font-weight: 700;
}

.linkedin-aeo-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

/* ========================================================= */
/* TOOL SECTION - REDESIGNED */
/* ========================================================= */

.linkedin-tool-section {
    padding: 3rem 0 4rem;
    background: #f9fafb;
}

/* PRIVACY CARD - More Prominent */
.linkedin-privacy-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.75rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid #10b981;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.linkedin-privacy-card svg {
    flex-shrink: 0;
    color: #059669;
    width: 24px;
    height: 24px;
}

.linkedin-privacy-card strong {
    color: #065f46;
    font-size: 1.05rem;
}

/* PRESETS - Solid Design */
.linkedin-presets {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: white;
    border: 2px solid var(--border-solid);
    border-radius: 10px;
    box-shadow: var(--shadow-card);
}

.linkedin-presets h3 {
    font-size: 1.0625rem;
    margin: 0;
    color: #111827;
    font-weight: 700;
}

.linkedin-preset-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border: 2px solid var(--linkedin-blue);
    border-radius: 8px;
    background: white;
    color: var(--linkedin-blue);
    cursor: pointer;
    transition: all 0.2s;
}

.linkedin-preset-btn:hover {
    background: var(--linkedin-blue);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 119, 181, 0.3);
}

.linkedin-preset-btn.active {
    background: var(--linkedin-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.4);
}

/* MAIN LAYOUT - Clear Separation */
.linkedin-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 960px) {
    .linkedin-layout {
        grid-template-columns: 1fr;
    }
}

/* ========================================================= */
/* LEFT PANEL - INPUT SECTION */
/* ========================================================= */

.linkedin-panel-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* SECTION HEADING */
.linkedin-section-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--linkedin-blue);
}

/* COUNTERS - Solid Cards */
.linkedin-counters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .linkedin-counters {
        grid-template-columns: repeat(2, 1fr);
    }
}

.linkedin-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    transition: all 0.2s;
}

.linkedin-counter:hover {
    border-color: var(--linkedin-blue);
    transform: translateY(-2px);
}

.linkedin-counter-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--linkedin-blue);
    margin-bottom: 0.25rem;
}

.linkedin-counter-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    font-weight: 600;
}

/* INPUT EDITOR - Solid Box */
.linkedin-editor-container {
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.linkedin-editor {
    width: 100%;
    min-height: 400px;
    padding: 1rem;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
    color: #111827;
    resize: vertical;
    transition: all 0.2s;
}

.linkedin-editor:focus {
    outline: none;
    border-color: var(--linkedin-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.1);
}

.linkedin-editor::placeholder {
    color: #9ca3af;
}

.linkedin-editor-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* OPTIONS PANEL - Solid Section */
.linkedin-options-panel {
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.linkedin-options-panel summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #111827;
    background: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background 0.2s;
}

.linkedin-options-panel summary::-webkit-details-marker {
    display: none;
}

.linkedin-options-panel summary:hover {
    background: #f1f5f9;
}

.linkedin-options-panel[open] summary {
    background: #e0f2fe;
    color: var(--linkedin-blue);
}

.linkedin-options-panel summary svg {
    flex-shrink: 0;
    color: var(--linkedin-blue);
}

.linkedin-options-content {
    padding: 1.5rem;
}

.linkedin-options-content h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.linkedin-options-content h4:first-child {
    margin-top: 0;
}

.linkedin-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    font-size: 0.9375rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.linkedin-checkbox-label:hover {
    background: #f9fafb;
}

.linkedin-checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--linkedin-blue);
}

.linkedin-checkbox-label span {
    color: #374151;
    font-weight: 500;
}

.linkedin-checkbox-label small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 400;
}

.linkedin-input-group {
    margin-top: 1rem;
}

.linkedin-input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
}

.linkedin-input {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9375rem;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #111827;
    transition: all 0.2s;
}

.linkedin-input:focus {
    outline: none;
    border-color: var(--linkedin-blue);
    box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.1);
}

.linkedin-input-group small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.linkedin-hashtag-count {
    color: var(--linkedin-blue);
    font-weight: 700;
}

.linkedin-hashtag-count.warning {
    color: #f59e0b;
}

/* ========================================================= */
/* RIGHT PANEL - OUTPUT SECTION */
/* ========================================================= */

.linkedin-panel-right {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 960px) {
    .linkedin-panel-right {
        position: static;
    }
}

/* TABS - Solid Design */
.linkedin-tabs {
    display: flex;
    gap: 0;
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.linkedin-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    background: #f9fafb;
    border: none;
    border-right: 2px solid #e5e7eb;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.linkedin-tab:last-child {
    border-right: none;
}

.linkedin-tab:hover {
    background: #f3f4f6;
    color: #374151;
}

.linkedin-tab.active {
    background: var(--linkedin-blue);
    color: white;
}

.linkedin-tab svg {
    flex-shrink: 0;
}

/* TAB CONTENT - Solid Container */
.linkedin-tab-content {
    display: none;
    background: white;
    border: 2px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.linkedin-tab-content.active {
    display: block;
}

/* PREVIEW MODES */
.linkedin-preview-modes {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.linkedin-preview-mode-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.linkedin-preview-mode-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.linkedin-preview-mode-btn.active {
    background: var(--linkedin-blue);
    color: white;
    border-color: var(--linkedin-blue);
}

/* PREVIEW CONTAINER - Clear Border */
.linkedin-preview-container {
    min-height: 400px;
    padding: 2rem;
    background: #f3f4f6;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    overflow: auto;
}

.linkedin-preview {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.9);
    white-space: pre-wrap;
    word-wrap: break-word;
    transition: max-width 0.3s;
}

.linkedin-preview.desktop {
    max-width: 600px;
}

.linkedin-preview.mobile {
    max-width: 375px;
}

.linkedin-preview-content {
    margin-bottom: 1rem;
}

.linkedin-preview-seemore {
    color: #0073b1;
    font-weight: 600;
    cursor: pointer;
    padding-top: 0.75rem;
    border-top: 2px solid #e0e0e0;
    margin-top: 1rem;
}

/* ========================================================= */
/* REALISTIC LINKEDIN POST PREVIEW - PREMIUM */
/* ==========================================================*/

/* POST HEADER */
.linkedin-post-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.linkedin-post-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.linkedin-post-avatar svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.linkedin-post-author {
    flex: 1;
}

.linkedin-post-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.9);
    margin-bottom: 2px;
}

.linkedin-post-meta {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 4px;
}

.linkedin-globe-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.linkedin-logo {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
}

/* POST CONTENT */
.linkedin-post-content {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.9);
    margin-bottom: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* POST ENGAGEMENT */
.linkedin-post-engagement {
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
}

.linkedin-engagement-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
}

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

.linkedin-reaction-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e0e0e0;
}

.linkedin-reaction-icon.like {
    background: #378fe9;
    border-color: #378fe9;
}

.linkedin-reaction-icon.love {
    background: #df704d;
    border-color: #df704d;
}

.linkedin-reaction-icon.celebrate {
    background: #6dae4f;
    border-color: #6dae4f;
}

.linkedin-reaction-count {
    margin-left: 4px;
    color: rgba(0, 0, 0, 0.6);
}

.linkedin-counts {
    display: flex;
    gap: 8px;
}

/* POST ACTIONS */
.linkedin-post-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0.5rem 0;
    border-top: 1px solid #e0e0e0;
}

.linkedin-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.625rem 0.5rem;
    background: transparent;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: all 0.2s;
}

.linkedin-action-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.linkedin-action-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Mobile adjustments */
@media (max-width: 375px) {
    .linkedin-post-actions {
        gap: 4px;
    }

    .linkedin-action-btn {
        padding: 0.5rem 0.25rem;
        font-size: 12px;
        flex-direction: column;
        gap: 2px;
    }

    .linkedin-action-btn svg {
        width: 18px;
        height: 18px;
    }
}


/* OUTPUT - Solid Box */
.linkedin-output {
    width: 100%;
    min-height: 400px;
    padding: 1.25rem;
    font-family: 'Manrope', monospace;
    font-size: 0.9375rem;
    line-height: 1.6;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: #fafafa;
    color: #111827;
    resize: vertical;
}

/* COPY BUTTONS - Solid Design */
.linkedin-copy-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}

@media (max-width: 640px) {
    .linkedin-copy-buttons {
        grid-template-columns: 1fr;
    }
}

.linkedin-btn-primary,
.linkedin-btn-secondary,
.linkedin-btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-weight: 700;
    border: 2px solid;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.linkedin-btn-primary {
    background: var(--linkedin-blue);
    border-color: var(--linkedin-blue);
    color: white;
}

.linkedin-btn-primary:hover {
    background: var(--linkedin-blue-hover);
    border-color: var(--linkedin-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.linkedin-btn-secondary {
    background: white;
    border-color: #d1d5db;
    color: #374151;
}

.linkedin-btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.linkedin-btn-whatsapp {
    background: var(--whatsapp-green);
    border-color: var(--whatsapp-green);
    color: white;
    grid-column: 1 / -1;
}

.linkedin-btn-whatsapp:hover {
    background: #1ebe57;
    border-color: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* ========================================================= */
/* TOAST NOTIFICATIONS */
/* ========================================================= */

.linkedin-toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.linkedin-toast {
    min-width: 280px;
    padding: 1rem 1.25rem;
    background: white;
    border-left: 4px solid;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    font-size: 0.9375rem;
    font-weight: 600;
    animation: slideInRight 0.3s ease-out;
    transition: opacity 0.3s;
}

.linkedin-toast.success {
    border-left-color: #10b981;
    color: #065f46;
    background: linear-gradient(to right, #ecfdf5, white);
}

.linkedin-toast.error {
    border-left-color: #ef4444;
    color: #991b1b;
    background: linear-gradient(to right, #fef2f2, white);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================================================= */
/* CONTENT SECTION */
/* ========================================================= */

.linkedin-content-section {
    padding: 4rem 0;
    background: white;
    border-top: 2px solid #e5e7eb;
}

.linkedin-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
}

.linkedin-content h2 {
    font-size: 1.875rem;
    margin: 3rem 0 1.25rem;
    color: #111827;
    font-weight: 800;
    border-bottom: 3px solid var(--linkedin-blue);
    padding-bottom: 0.5rem;
}

.linkedin-content h2:first-child {
    margin-top: 0;
}

.linkedin-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #111827;
    font-weight: 700;
}

.linkedin-content p {
    margin-bottom: 1.25rem;
}

.linkedin-content ul,
.linkedin-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.linkedin-content li {
    margin-bottom: 0.5rem;
}

.linkedin-content strong {
    color: #111827;
    font-weight: 700;
}

.linkedin-content dl {
    margin: 1.5rem 0;
}

.linkedin-content dt {
    font-weight: 700;
    color: #111827;
    margin-top: 1rem;
}

.linkedin-content dd {
    margin: 0.5rem 0 0 1.5rem;
    color: #6b7280;
}

/* ========================================================= */
/* FAQ SECTION */
/* ========================================================= */

.linkedin-faq-section {
    padding: 4rem 0;
    background: #f9fafb;
    border-top: 2px solid #e5e7eb;
}

.linkedin-faq-section h2 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #111827;
    font-weight: 800;
}

.linkedin-faq-grid {
    display: grid;
    gap: 1.5rem;
}

.linkedin-faq-item {
    padding: 2rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-left: 4px solid var(--linkedin-blue);
    border-radius: 10px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
}

.linkedin-faq-item:hover {
    border-color: var(--linkedin-blue);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.linkedin-faq-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: #111827;
    font-weight: 700;
}

.linkedin-faq-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

/* ========================================================= */
/* DEVELOPER CREDITS */
/* ========================================================= */

.linkedin-credits {
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(0, 119, 181, 0.08), rgba(147, 51, 234, 0.08));
    border-top: 2px solid #d1d5db;
    border-bottom: 2px solid #d1d5db;
}

.linkedin-credits p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 1rem;
    color: #374151;
    font-weight: 600;
}

.linkedin-credits a {
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s;
}

.linkedin-credits a:hover {
    transform: scale(1.15);
}

.linkedin-credits svg {
    width: 20px;
    height: 20px;
}

/* ========================================================= */
/* RESPONSIVE */
/* ========================================================= */

@media (max-width: 640px) {
    .linkedin-hero h1 {
        font-size: 26px;
    }

    .linkedin-intro {
        font-size: 1rem;
    }

    .linkedin-aeo-grid {
        grid-template-columns: 1fr;
    }

    .linkedin-presets {
        flex-direction: column;
        align-items: stretch;
    }

    .linkedin-presets h3 {
        text-align: center;
    }

    .linkedin-preset-btn {
        width: 100%;
    }

    .linkedin-editor {
        min-height: 300px;
    }

    .linkedin-tab {
        flex-direction: column;
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }

    .linkedin-preview {
        padding: 1.25rem;
        font-size: 13px;
    }

    .linkedin-toast-container {
        left: 10px;
        right: 10px;
    }

    .linkedin-toast {
        min-width: unset;
    }
}
/* ========================================================= */
/* PHASE 1: IMAGE UPLOAD */
/* ========================================================= */

.linkedin-image-upload {
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-card);
}

.linkedin-image-upload h3 {
    font-size: 1.0625rem;
    margin: 0 0 1rem;
    color: #111827;
    font-weight: 700;
}

.linkedin-upload-area {
    margin-bottom: 1rem;
}

.linkedin-image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    background: #f9fafb;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background 0.2s;
}

.remove-image-btn:hover {
    background: rgba(220, 38, 38, 0.9);
}

/* ========================================================= */
/* PHASE 1: FORMAT BUTTON & TOGGLE */
/* ========================================================= */

.linkedin-format-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.linkedin-btn-format {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0077B5, #00a0dc);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 119, 181, 0.2);
}

.linkedin-btn-format:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.4);
}

.linkedin-btn-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    background: white;
    color: #374151;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.linkedin-btn-toggle:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* ========================================================= */
/* PHASE 1: IMAGE GRID LAYOUTS IN PREVIEW */
/* ========================================================= */

.linkedin-image-grid {
    display: grid;
    gap: 4px;
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.linkedin-image-grid.grid-1 {
    grid-template-columns: 1fr;
}

.linkedin-image-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.linkedin-image-grid.grid-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 1fr);
}

.linkedin-image-grid.grid-3 .linkedin-image-item:first-child {
    grid-row: span 2;
}

.linkedin-image-grid.grid-4,
.linkedin-image-grid.grid-5,
. linkedin-image-grid.grid-6,
.linkedin-image-grid.grid-7,
.linkedin-image-grid.grid-8,
.linkedin-image-grid.grid-9 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.linkedin-image-item {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f3f4f6;
}

.linkedin-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.linkedin-image-item.has-overlay .image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

@media (max-width: 640px) {
    .linkedin-format-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .linkedin-btn-format,
    .linkedin-btn-toggle {
        width: 100%;
    }

    .linkedin-image-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}
