/* ===================================================================
   CONTENT CARD — Content Intelligence Hub
   =================================================================== */

.cc-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    max-width: 700px;
    margin: 0 auto;
}

/* Top section: thumbnail + info */
.cc-card-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.cc-thumbnail-wrap {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
}

.cc-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.cc-author {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cc-platform-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: #6366f1;
    color: white;
    white-space: nowrap;
}

.cc-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* Sections: caption + hashtags */
.cc-section {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.cc-section:last-of-type {
    border-bottom: none;
}

.cc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cc-section-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cc-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cc-copy-btn:hover {
    background: #e5e7eb;
    color: #111827;
}

.cc-copy-btn:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.cc-copy-btn svg {
    flex-shrink: 0;
}

.cc-caption-text {
    font-size: 14px;
    line-height: 1.6;
    color: #1f2937;
    word-break: break-word;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}

.cc-caption-empty {
    font-size: 13px;
    color: #9ca3af;
    font-style: italic;
}

/* Hashtag chips */
.cc-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cc-hashtag-chip {
    display: inline-block;
    padding: 4px 10px;
    background: #eef2ff;
    color: #4338ca;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* CTA buttons */
.cc-ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.cc-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
}

.cc-cta-btn svg {
    flex-shrink: 0;
}

.cc-cta-btn:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Copy all button */
.cc-cta-copy {
    background: #111827;
    color: #ffffff;
}

.cc-cta-copy:hover {
    background: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.2);
}

/* DesignerBox CTA */
.cc-cta-designerbox {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #ffffff;
}

.cc-cta-designerbox:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    color: #ffffff;
}

/* PostNext CTA */
.cc-cta-postnext {
    background: #ffffff;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.cc-cta-postnext:hover {
    background: #eef2ff;
    transform: translateY(-1px);
    color: #6366f1;
}

/* Toast notification */
.cc-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.cc-toast-hide {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
}

/* ===================================================================
   PROMO TOOLS GRID — DesignerBox + PostNext
   =================================================================== */

.cc-promo-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 20px;
    margin-top: 40px;
}

.cc-promo-header {
    text-align: center;
    margin-bottom: 40px;
}

.cc-promo-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.cc-promo-title span {
    color: #6366f1;
}

.cc-promo-subtitle {
    font-size: 1.1rem;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.cc-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.cc-tool-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    border: 2px solid transparent;
}

.cc-tool-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.cc-tool-card-designerbox {
    border-color: rgba(124, 58, 237, 0.1);
}

.cc-tool-card-designerbox:hover {
    border-color: rgba(124, 58, 237, 0.3);
}

.cc-tool-card-postnext {
    border-color: rgba(99, 102, 241, 0.1);
}

.cc-tool-card-postnext:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.services img.cc-tool-card-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center center;
    display: block;
    background: #f3f4f6;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    max-height: none;
    transform: none;
}

.cc-tool-card-body {
    padding: 14px 16px;
}

.cc-tool-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.cc-tool-card-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 8px;
}

.cc-tool-card-link {
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.cc-tool-card-designerbox .cc-tool-card-link {
    color: #7c3aed;
}

.cc-tool-card-postnext .cc-tool-card-link {
    color: #6366f1;
}

.cc-promo-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cc-promo-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

a.cc-promo-cta-designerbox,
a.cc-promo-cta-designerbox:visited {
    background: #7c3aed;
    color: #ffffff;
}

a.cc-promo-cta-designerbox:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3);
    color: #ffffff;
}

a.cc-promo-cta-postnext,
a.cc-promo-cta-postnext:visited {
    background: #6366f1;
    color: #ffffff;
}

a.cc-promo-cta-postnext:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
    color: #ffffff;
}

/* ===================================================================
   CROSS-PLATFORM NAVIGATION
   =================================================================== */

.cc-cross-nav {
    padding: 40px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cc-cross-nav-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
}

.cc-cross-nav-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
    justify-content: center;
    flex-wrap: wrap;
    -webkit-overflow-scrolling: touch;
}

.cc-cross-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.cc-cross-nav-item:hover {
    background: #eef2ff;
    color: #4338ca;
    border-color: #c7d2fe;
}

.cc-cross-nav-item:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.cc-cross-nav-item.cc-nav-active {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

/* ===================================================================
   EMAIL CAPTURE
   =================================================================== */

.cc-email-capture {
    padding: 50px 20px;
    text-align: center;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.cc-email-capture-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.cc-email-capture-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
}

.cc-email-form {
    display: flex;
    gap: 0;
    max-width: 460px;
    margin: 0 auto;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.cc-email-form:focus-within {
    border-color: #6366f1;
}

.cc-email-form input[type="email"].cc-email-input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    border-radius: 0;
    font-size: 15px;
    outline: none;
    background: transparent;
    color: #111827;
    height: auto;
    margin: 0;
    width: auto;
    display: inline-block;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-style: none;
}

.cc-email-form input[type="email"].cc-email-input:focus {
    border: none;
    background: transparent;
    box-shadow: none;
}

.cc-email-form input[type="email"].cc-email-input::placeholder {
    color: #9ca3af;
}

.cc-email-form button.cc-email-submit {
    padding: 14px 28px;
    background: #6366f1;
    color: #ffffff;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    margin: 0;
    box-shadow: none;
    line-height: normal;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.cc-email-form button.cc-email-submit:hover,
.cc-email-form button.cc-email-submit:focus {
    background: #4f46e5;
    color: #ffffff;
}

.cc-email-form button.cc-email-submit:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -2px;
    box-shadow: 0 0 0 4px #6366f1;
}

.cc-email-form button.cc-email-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #6366f1;
}

.cc-email-success {
    color: #10b981;
    font-weight: 600;
    font-size: 14px;
    margin-top: 12px;
}

.cc-email-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 10px;
}

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

@media (max-width: 768px) {
    .cc-card-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cc-thumbnail-wrap {
        width: 100%;
        height: 180px;
    }

    .cc-author {
        justify-content: center;
    }

    .cc-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .cc-promo-title {
        font-size: 1.8rem;
    }

    .cc-email-form {
        flex-direction: column;
        border-radius: 12px;
    }

    .cc-email-form button.cc-email-submit {
        border-radius: 0;
    }

    .cc-cross-nav-scroll {
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
}

@media (max-width: 480px) {
    .cc-card {
        border-radius: 12px;
    }

    .cc-section {
        padding: 12px 16px;
    }

    .cc-ctas {
        padding: 16px;
    }

    .cc-cta-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .cc-tools-grid {
        grid-template-columns: 1fr;
    }

    .cc-promo-title {
        font-size: 1.5rem;
    }

    .cc-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
