/* CreatorManch Frontend Styles */

.creatormanch-tools-grid,
.creatormanch-prompts-grid,
.creatormanch-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

.creatormanch-tool-card,
.creatormanch-prompt-card,
.creatormanch-product-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.creatormanch-tool-card:hover,
.creatormanch-prompt-card:hover,
.creatormanch-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.creatormanch-card-image {
	width: 100%;
	height: 180px;
	overflow: hidden;
	background: #f5f5f5;
}

.creatormanch-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.creatormanch-card-content {
	padding: 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.creatormanch-card-content h3 {
	margin: 0 0 10px 0;
	font-size: 16px;
	line-height: 1.4;
}

.creatormanch-card-content h3 a {
	color: #0073aa;
	text-decoration: none;
}

.creatormanch-card-content h3 a:hover {
	color: #005a87;
	text-decoration: underline;
}

.creatormanch-card-description {
	font-size: 13px;
	color: #666;
	margin: 0 0 12px 0;
	line-height: 1.5;
	flex: 1;
}

.creatormanch-card-meta {
	display: flex;
	gap: 8px;
	margin: 12px 0;
	flex-wrap: wrap;
	font-size: 12px;
}

.creatormanch-pricing,
.creatormanch-rating,
.creatormanch-status,
.creatormanch-price {
	display: inline-block;
	padding: 4px 8px;
	background: #f0f0f0;
	border-radius: 3px;
	color: #666;
}

.creatormanch-status.free {
	background: #e8f5e9;
	color: #2e7d32;
}

.creatormanch-status.paid {
	background: #fff3e0;
	color: #e65100;
}

.creatormanch-btn {
	display: inline-block;
	padding: 8px 16px;
	background: #0073aa;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	text-align: center;
	transition: background 0.3s ease;
	border: none;
	cursor: pointer;
	margin-top: auto;
}

.creatormanch-btn:hover {
	background: #005a87;
	color: #fff;
	text-decoration: none;
}

.creatormanch-pagination {
	display: flex;
	justify-content: center;
	gap: 4px;
	margin: 30px 0;
	align-items: center;
}

.creatormanch-pagination a,
.creatormanch-pagination span {
	padding: 8px 12px;
	border: 1px solid #ddd;
	background: #fff;
	color: #0073aa;
	text-decoration: none;
	border-radius: 3px;
	font-size: 13px;
}

.creatormanch-pagination a:hover {
	background: #0073aa;
	color: #fff;
}

.creatormanch-pagination .current {
	background: #0073aa;
	color: #fff;
	border-color: #0073aa;
}

@media (max-width: 768px) {
	.creatormanch-tools-grid,
	.creatormanch-prompts-grid,
	.creatormanch-products-grid {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		gap: 16px;
	}
}

@media (max-width: 480px) {
	.creatormanch-tools-grid,
	.creatormanch-prompts-grid,
	.creatormanch-products-grid {
		grid-template-columns: 1fr;
	}
}

/* =========================================
   CreatorManch Single Content
   ========================================= */

.creatormanch-single-content {
        margin-top: 30px;
        padding: 0;
}

.creatormanch-single-image {
        margin: 0 0 30px;
        text-align: center;
}

.creatormanch-single-image img {
        display: block;
        width: 100%;
        max-width: 420px;
        height: auto;
        margin: 0 auto;
        border-radius: 12px;
}

.creatormanch-detail-section {
        margin: 0 0 28px;
        padding: 24px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.creatormanch-detail-section h2 {
        margin: 0 0 12px;
        font-size: 24px;
        line-height: 1.3;
}

.creatormanch-detail-section p {
        margin: 0;
        font-size: 16px;
        line-height: 1.7;
        color: #555;
}

.creatormanch-detail-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin: 0 0 28px;
}

.creatormanch-detail-item {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 18px 20px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.creatormanch-detail-item strong {
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #666;
}

.creatormanch-detail-item span {
        font-size: 16px;
        font-weight: 600;
        color: #111827;
}

.creatormanch-tool-links {
        display: flex;
        align-items: center;
        gap: 12px;
}

.creatormanch-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 10px 20px;
        background: #0073aa;
        color: #fff !important;
        text-decoration: none !important;
        border-radius: 7px;
        font-size: 14px;
        font-weight: 600;
        transition: background 0.2s ease, transform 0.2s ease;
}

.creatormanch-button:hover {
        background: #005a87;
        color: #fff !important;
        text-decoration: none !important;
        transform: translateY(-1px);
}

.creatormanch-single-ai-tool .creatormanch-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 768px) {
        .creatormanch-detail-grid {
                grid-template-columns: 1fr;
        }

        .creatormanch-detail-section {
                padding: 20px;
        }

        .creatormanch-detail-section h2 {
                font-size: 21px;
        }

        .creatormanch-single-image img {
                max-width: 100%;
        }
}

@media (max-width: 480px) {
        .creatormanch-single-content {
                margin-top: 20px;
        }

        .creatormanch-detail-section {
                padding: 16px;
        }

        .creatormanch-detail-item {
                padding: 15px;
        }

        .creatormanch-button {
                width: 100%;
        }
}


/* CreatorManch AI Tools - Premium Card UI */
.creatormanch-tools-grid {
        gap: 24px;
        margin: 28px 0;
}

.creatormanch-tools-grid .creatormanch-tool-card {
        background: #ffffff;
        border: 1px solid #e8e8ee;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 18px rgba(20, 20, 40, 0.07);
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.creatormanch-tools-grid .creatormanch-tool-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(20, 20, 40, 0.12);
        border-color: #d9d9e5;
}

.creatormanch-tools-grid .creatormanch-card-image {
        height: 190px;
        background: #f7f7fa;
}

.creatormanch-tools-grid .creatormanch-card-image img {
        transition: transform 0.35s ease;
}

.creatormanch-tools-grid .creatormanch-tool-card:hover .creatormanch-card-image img {
        transform: scale(1.04);
}

.creatormanch-tools-grid .creatormanch-card-content {
        padding: 20px;
}

.creatormanch-tools-grid .creatormanch-card-content h3 {
        margin: 0 0 9px;
        font-size: 19px;
        font-weight: 700;
        line-height: 1.35;
}

.creatormanch-tools-grid .creatormanch-card-content h3 a {
        color: #17171c;
        text-decoration: none;
}

.creatormanch-tools-grid .creatormanch-card-content h3 a:hover {
        color: #0073aa;
        text-decoration: none;
}

.creatormanch-tools-grid .creatormanch-card-description {
        color: #666873;
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 14px;
}

.creatormanch-tools-grid .creatormanch-card-meta {
        gap: 8px;
        margin: 4px 0 18px;
}

.creatormanch-tools-grid .creatormanch-pricing,
.creatormanch-tools-grid .creatormanch-rating {
        padding: 6px 10px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 600;
}

.creatormanch-tools-grid .creatormanch-pricing {
        background: #eef8f1;
        color: #24733b;
}

.creatormanch-tools-grid .creatormanch-rating {
        background: #fff7e6;
        color: #9a6500;
}

.creatormanch-tools-grid .creatormanch-btn {
        width: 100%;
        box-sizing: border-box;
        padding: 11px 16px;
        border-radius: 9px;
        background: #0073aa;
        font-size: 14px;
        font-weight: 600;
}

.creatormanch-tools-grid .creatormanch-btn:hover {
        background: #005a87;
}

@media (max-width: 480px) {
        .creatormanch-tools-grid {
                gap: 16px;
                margin: 20px 0;
        }

        .creatormanch-tools-grid .creatormanch-card-image {
                height: 170px;
        }

        .creatormanch-tools-grid .creatormanch-card-content {
                padding: 17px;
        }
}


/* CreatorManch AI Tools - Kadence Archive Cards */
#archive-container.cm_ai_tool-archive {
        gap: 24px;
        margin-top: 28px;
}

#archive-container.cm_ai_tool-archive > .entry-list-item {
        margin-bottom: 0;
}

#archive-container.cm_ai_tool-archive article.loop-entry {
        height: 100%;
        background: #ffffff;
        border: 1px solid #e8e8ee;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 18px rgba(20, 20, 40, 0.07);
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#archive-container.cm_ai_tool-archive article.loop-entry:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(20, 20, 40, 0.12);
        border-color: #d9d9e5;
}

#archive-container.cm_ai_tool-archive .entry-content-wrap {
        min-height: 190px;
        padding: 24px;
        display: flex;
        flex-direction: column;
}

#archive-container.cm_ai_tool-archive .entry-header {
        margin: 0;
}

#archive-container.cm_ai_tool-archive .entry-title {
        margin: 0;
        font-size: 21px;
        line-height: 1.35;
        font-weight: 700;
}

#archive-container.cm_ai_tool-archive .entry-title a {
        color: #17171c;
        text-decoration: none;
}

#archive-container.cm_ai_tool-archive .entry-title a:hover {
        color: #0073aa;
}

#archive-container.cm_ai_tool-archive .entry-summary {
        flex: 1;
}

#archive-container.cm_ai_tool-archive .entry-footer {
        margin-top: 24px;
        padding: 0;
        border: 0;
}

#archive-container.cm_ai_tool-archive .entry-actions {
        margin: 0;
}

#archive-container.cm_ai_tool-archive .more-link-wrap {
        margin: 0;
}

#archive-container.cm_ai_tool-archive .post-more-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
        padding: 11px 16px;
        border-radius: 9px;
        background: #0073aa;
        color: #ffffff;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        transition: background 0.25s ease, transform 0.25s ease;
}

#archive-container.cm_ai_tool-archive .post-more-link:hover {
        background: #005a87;
        color: #ffffff;
        text-decoration: none;
}

#archive-container.cm_ai_tool-archive .post-more-link .kadence-svg-iconset {
        margin-left: 7px;
}

@media (max-width: 767px) {
        #archive-container.cm_ai_tool-archive {
                gap: 16px;
        }

        #archive-container.cm_ai_tool-archive .entry-content-wrap {
                min-height: 170px;
                padding: 18px;
        }
}


/* AI Tools Archive - Metadata Pills */
#archive-container.cm_ai_tool-archive .entry-summary p {
        line-height: 1.65;
}

#archive-container.cm_ai_tool-archive .creatormanch-archive-tool-pricing,
#archive-container.cm_ai_tool-archive .creatormanch-archive-tool-rating {
        display: inline-block;
        margin-left: 6px;
        padding: 5px 9px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
        vertical-align: middle;
}

#archive-container.cm_ai_tool-archive .creatormanch-archive-tool-pricing {
        background: #eef8f1;
        color: #24733b;
}

#archive-container.cm_ai_tool-archive .creatormanch-archive-tool-rating {
        background: #fff7e6;
        color: #9a6500;
}


/* AI Tools Archive - Ensure excerpt content is visible */
#archive-container.cm_ai_tool-archive .entry-summary {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        color: #4a4a55 !important;
}

#archive-container.cm_ai_tool-archive .entry-summary p {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 14px 0 0 !important;
        color: #4a4a55 !important;
        font-size: 14px !important;
        line-height: 1.65 !important;
}

#archive-container.cm_ai_tool-archive .creatormanch-archive-tool-pricing,
#archive-container.cm_ai_tool-archive .creatormanch-archive-tool-rating {
        visibility: visible !important;
        opacity: 1 !important;
}

