/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0891b2;
    --primary-dark: #0e7490;
    --secondary: #06b6d4;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 16px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: block;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    letter-spacing: -0.02em;
}

.logo:hover {
    color: var(--primary-dark);
}

@media (max-width: 480px) {
    .logo-icon {
        width: 30px;
        height: 30px;
    }

    .logo-text {
        font-size: 21px;
    }
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Tools Section */
.tools-section {
    padding: 80px 0;
}

.tools-section h2 {
    font-size: 36px;
    margin-bottom: 48px;
    text-align: center;
    color: var(--text-primary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tool-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: block;
}

.tool-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tool-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.tool-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.tool-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.tool-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

/* About Section */
.about-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.about-section h2 {
    font-size: 36px;
    margin-bottom: 48px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature {
    text-align: center;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature p {
    color: var(--text-secondary);
}

.search-section,
.guides-section {
    padding: 64px 0;
}

.search-section {
    background: var(--bg-secondary);
}

.search-section h2,
.guides-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.search-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.search-list li a,
.guide-links a {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    background: #fff;
    transition: all 0.2s ease;
}

.search-list li a:hover,
.guide-links a:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.guides-section p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.guide-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

/* Tool Page Styles */
.tool-page {
    min-height: calc(100vh - 200px);
    padding: 60px 0;
}

.tool-header {
    text-align: center;
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tool-header h1 {
    font-size: 40px;
    margin-bottom: 16px;
}

.tool-header .description {
    font-size: 18px;
    color: var(--text-secondary);
}

.tool-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.input-group textarea,
.input-group input[type="text"] {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s ease;
    resize: vertical;
}

.input-group textarea {
    min-height: 150px;
}

.input-group textarea:focus,
.input-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
}

.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
}

.success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-top: 12px;
    display: none;
    font-weight: 500;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Character Counter */
.char-counter {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.char-counter.warning {
    color: var(--warning);
    font-weight: 600;
}

.char-counter.success {
    color: var(--success);
    font-weight: 600;
}

/* Info Section */
.info-section {
    max-width: 900px;
    margin: 60px auto 0;
}

.info-section h2 {
    font-size: 28px;
    margin-bottom: 24px;
    margin-top: 48px;
}

.info-section h3 {
    font-size: 20px;
    margin-bottom: 12px;
    margin-top: 24px;
}

.info-section p,
.info-section li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.info-section ul,
.info-section ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.faq-item {
    margin-bottom: 32px;
}

.faq-item h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Footer */
footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 24px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 16px;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .tool-header h1 {
        font-size: 32px;
    }
    
    .tool-container {
        padding: 32px 24px;
    }
    
    .tools-section h2,
    .about-section h2 {
        font-size: 28px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .tool-sidebar-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar-ad {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Ad Containers */
.ad-container {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.ad-container .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.ad-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.sidebar-ad {
    position: sticky;
    top: 100px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.sidebar-ad .ad-label {
    margin-bottom: 12px;
}

.tool-sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 48px;
}

.in-content-ad {
    margin: 48px 0;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 20px 0 16px;
}

.advanced-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.advanced-panel h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.advanced-panel label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
}

.advanced-panel select,
.advanced-panel input[type="text"],
.advanced-panel input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.toggle-row input {
    margin-top: 1px;
}

.preview-card {
    margin-top: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    padding: 16px;
}

.preview-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 10px;
}

.social-preview {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    background: #fff;
}

.social-preview-header {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.social-preview-content {
    white-space: pre-wrap;
    line-height: 1.55;
    color: var(--text-primary);
}

.stat-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.stat-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    background: var(--bg-secondary);
}

.stat-card .value {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.stat-card .label {
    font-size: 12px;
    color: var(--text-secondary);
}

.insights-list {
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    padding: 12px 14px;
    color: var(--text-secondary);
}

.insights-list li {
    margin-left: 16px;
    margin-bottom: 6px;
}

.variant-list {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.variant-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.variant-item:hover {
    border-color: var(--primary);
}

.tiny-help {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.editor-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.editor-pane,
.preview-pane {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    background: #fff;
}

.pane-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 12px;
}

.linkedin-card {
    border: 1px solid #d9dee3;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
}

.linkedin-card-header {
    display: flex;
    gap: 10px;
    padding: 12px;
}

.linkedin-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0a66c2;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

.linkedin-meta {
    font-size: 12px;
    color: #536471;
    line-height: 1.35;
}

.linkedin-meta strong {
    color: #1d2226;
    font-size: 14px;
}

.linkedin-preview-body {
    padding: 0 12px 12px;
    color: #1d2226;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.linkedin-see-more {
    border: 0;
    background: transparent;
    color: #536471;
    font-weight: 600;
    cursor: pointer;
    padding: 0 12px 10px;
}

.linkedin-actions {
    border-top: 1px solid #e7e9eb;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    color: #536471;
    font-size: 13px;
}

.linkedin-actions span {
    text-align: center;
    padding: 10px 6px;
    font-weight: 600;
}

.platform-linkedin .linkedin-avatar {
    background: #0a66c2;
}

.platform-linkedin .linkedin-meta {
    font-size: 12px;
    line-height: 1.35;
}

.platform-linkedin .linkedin-meta strong {
    font-size: 14px;
    font-weight: 700;
}

.platform-linkedin .linkedin-preview-body {
    font-size: 14px;
    line-height: 1.45;
}

.platform-linkedin .linkedin-actions {
    font-size: 13px;
}

.platform-instagram .linkedin-avatar {
    background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af);
}

.platform-instagram .linkedin-card {
    border-color: #e8e8e8;
}

.platform-instagram .linkedin-preview-body {
    font-size: 13px;
    line-height: 1.5;
}

.platform-instagram .linkedin-meta {
    font-size: 11px;
    line-height: 1.3;
}

.platform-instagram .linkedin-meta strong {
    font-size: 13px;
}

.platform-youtube .linkedin-avatar {
    background: #ff0033;
}

.platform-youtube .linkedin-meta {
    font-size: 11px;
    line-height: 1.25;
}

.platform-youtube .linkedin-meta strong {
    font-size: 13px;
}

.platform-youtube .linkedin-preview-body {
    font-size: 13px;
    line-height: 1.35;
}

.platform-youtube .social-preview-content {
    font-size: 14px;
    line-height: 1.35;
}

.preview-pane .char-counter {
    font-size: 13px;
}

.studio-shell {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #f7f7f8;
}

.studio-topbar {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    background: #f1f3f5;
}

.toolbar-group {
    display: inline-flex;
    gap: 6px;
}

.toolbar-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #d8dce1;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #3d4a57;
}

.toolbar-btn:hover {
    background: #f8fafc;
}

.studio-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    min-height: 360px;
}

.studio-editor {
    border-right: 1px solid var(--border);
    background: #fff;
    display: flex;
    flex-direction: column;
}

.studio-textarea {
    width: 100%;
    min-height: 280px;
    border: 0;
    padding: 16px 14px;
    resize: vertical;
    font-family: inherit;
    font-size: 20px;
    line-height: 1.75;
    outline: none;
    background: #fff;
}

.studio-footer-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border-top: 1px solid var(--border);
    background: #fff;
}

.btn-warning {
    background: #f97316;
    color: #fff;
}

.btn-warning:hover {
    background: #ea580c;
}

.studio-preview-panel {
    background: #efefee;
    display: flex;
    flex-direction: column;
}

.studio-preview-header {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: #f9fafb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
}

.preview-counter {
    font-size: 12px;
    color: #667085;
    font-weight: 600;
}

.studio-preview-body {
    padding: 18px;
}

.native-linkedin-card {
    border-color: #d7dce1;
    border-radius: 8px;
    box-shadow: none;
}

.native-header {
    display: flex;
    gap: 10px;
    padding: 12px 14px 8px;
}

.native-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(180deg, #38bdf8, #0ea5e9);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.native-meta {
    font-size: 12px;
    line-height: 1.35;
    color: #6b7280;
}

.native-meta strong {
    font-size: 15px;
    color: #111827;
    font-weight: 700;
}

.native-content {
    padding: 0 14px 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #111827;
    white-space: pre-wrap;
}

.native-see-more {
    padding-left: 14px;
    padding-right: 14px;
    color: #4b5563;
}

.native-engagement {
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 14px;
    font-size: 12px;
    color: #4b5563;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.native-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    font-size: 13px;
    color: #4b5563;
}

.native-actions span {
    text-align: center;
    padding: 10px 6px;
    font-weight: 600;
}

@media (min-width: 981px) {
    .platform-linkedin .linkedin-preview-body {
        font-size: 14px;
        line-height: 1.45;
    }

    .platform-instagram .linkedin-preview-body {
        font-size: 13px;
        line-height: 1.5;
    }

    .platform-youtube .social-preview-content {
        font-size: 14px;
        line-height: 1.35;
    }
}

@media (max-width: 980px) {
    .platform-linkedin .linkedin-preview-body {
        font-size: 15px;
        line-height: 1.5;
    }

    .platform-linkedin .linkedin-meta {
        font-size: 12px;
    }

    .platform-instagram .linkedin-preview-body {
        font-size: 14px;
        line-height: 1.55;
    }

    .platform-instagram .linkedin-meta {
        font-size: 12px;
    }

    .platform-youtube .social-preview-content {
        font-size: 15px;
        line-height: 1.4;
    }

    .platform-youtube .linkedin-meta {
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .platform-linkedin .linkedin-actions,
    .platform-instagram .linkedin-actions,
    .platform-youtube .linkedin-actions {
        font-size: 12px;
    }

    .platform-linkedin .linkedin-actions span,
    .platform-instagram .linkedin-actions span,
    .platform-youtube .linkedin-actions span {
        padding: 9px 4px;
    }

    .preview-pane .char-counter {
        font-size: 12px;
    }
}

@media (max-width: 980px) {
    .studio-grid {
        grid-template-columns: 1fr;
    }

    .studio-editor {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .studio-textarea {
        font-size: 18px;
        line-height: 1.65;
    }

    .native-meta strong {
        font-size: 15px;
    }

    .native-content {
        font-size: 14px;
        line-height: 1.52;
    }

    .editor-split {
        grid-template-columns: 1fr;
    }
}
