/*
Theme Name: Hello Theme Child DEV ( New )
Theme URI: https://rethinktrends.com
Author: Rethink Trends
Description: Development version of the dashboard
Version: 2.0
Template: hello-elementor
Text Domain: hello-theme-child-dev
*/

/* Add your custom styles here */

/* ── TYPOGRAPHY ───────────────────────────────────────────────────────────── */

/* User Profile css on website  */
	
	.rt-user-menu{
    position:relative;
    display:inline-block;
}

.rt-user-icon{
    width:42px;
    height:42px;
    border-radius:50%;
    background:#5B21B6;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;

}

.rt-user-dropdown{
    display:none;
    position:absolute;
    top:43px;
    right:0;
    min-width:180px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 10px 30px rgba(0,0,0,.15);
    overflow:hidden;
    z-index:999999;
}

.rt-user-menu:hover .rt-user-dropdown{
    display:block;
}

.rt-user-dropdown a{
    display:block;
    padding:12px 15px;
    text-decoration:none;
    color:#333;
    border-bottom:1px solid #eee;
}

.rt-user-dropdown a:last-child{
    border-bottom:none;
}

.rt-user-dropdown a:hover{
    background:#f5f5f5;
}


/*  End here Profile css */
.auth-wrapper,
.profile-container{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px 20px;
    background:#f7f8fa;
}

.auth-card,
.profile-card{
    width:100%;
    max-width:550px;
    background:#fff;
    padding:40px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.auth-card h1,
.profile-card h1{
    margin-bottom:10px;
}

.form-group{
    margin-bottom:20px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
}

.form-group input,
.form-group textarea{
    width:100%;
    border:1px solid #ddd;
    border-radius:10px;
    padding:12px 15px;
}

.auth-btn{
    width:100%;
    border:none;
    padding:15px;
    border-radius:10px;
    background:#4f46e5;
    color:#fff;
    font-weight:600;
    cursor:pointer;
}

.dashboard-container{
    max-width:1200px;
    margin:auto;
    padding:60px 20px;
}

.dashboard-header{
    margin-bottom:40px;
}

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

.dashboard-card{
    background:#fff;
    padding:30px;
    border-radius:16px;
    text-decoration:none;
    color:#111;
    box-shadow:0 5px 15px rgba(0,0,0,.06);
    transition:.3s;
}

.dashboard-card:hover{
    transform:translateY(-5px);
}

.alert{
    max-width:600px;
    margin:20px auto;
    padding:15px;
    border-radius:10px;
    text-align:center;
}

.success{
    background:#dcfce7;
    color:#166534;
}

.error{
    background:#fee2e2;
    color:#991b1b;
}

/*  Write and my article page  */

.write-container,
.articles-container{
    max-width:1000px;
    margin:auto;
    padding:50px 20px;
}

.write-container h1,
.articles-container h1{
    margin-bottom:30px;
}

.button-group{
    display:flex;
    gap:15px;
    margin-top:20px;
}

.publish-btn,
.draft-btn{
    border:none;
    padding:14px 25px;
    border-radius:10px;
    cursor:pointer;
}

.publish-btn{
    background:#4f46e5;
    color:#fff;
}

.draft-btn{
    background:#ddd;
}

.article-card{
    background:#fff;
    border-radius:15px;
    padding:25px;
    margin-bottom:20px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.edit-btn{
    display:inline-block;
    margin-top:10px;
    background:#4f46e5;
    color:#fff;
    padding:10px 20px;
    border-radius:8px;
    text-decoration:none;
}

.success-box{
    background:#dcfce7;
    color:#166534;
    padding:15px;
    border-radius:10px;
    margin:20px auto;
    max-width:1000px;
}


/* ============= single.php css =============== */



/* ============================================================= */

/* ── CARD INTERACTIONS ────────────────────────────────────────────────────── */
.rt-card-interactions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0 0;
    margin-top: 12px;
    border-top: 1px solid #f0f0f0;
}

/* Engagement bar under the post title (hero) */
.rt-hero-interactions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rt-clap-btn,
.rt-comment-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    text-decoration: none;
    transition: color .15s;
    font-family: 'Poppins', sans-serif;
}

.rt-clap-btn .rt-svg-icon,
.rt-comment-btn .rt-svg-icon{
    width: 17px;
    height: 17px;
}

.rt-clap-btn:hover,
.rt-comment-btn:hover { color: #111827; }
.rt-clap-btn.clapped { color: #111827; }

.rt-clap-btn.maxed  { opacity: .5; cursor: not-allowed; }

/* ==========================
SAVE + REPOST
========================== */

.rt-save-btn,
.rt-repost-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: color .15s;
}

.rt-save-btn .rt-svg-icon,
.rt-repost-btn .rt-svg-icon{
    width: 17px;
    height: 17px;
}

.rt-save-btn:hover,
.rt-repost-btn:hover { color: #111827; }

.rt-save-btn.saved,
.rt-repost-btn.reposted { color: #111827; font-weight: 600; }

/* ==========================
TOOLTIPS (data-tooltip attribute) — clap, comment, save, repost buttons
========================== */

[data-tooltip]{
    position: relative;
}

[data-tooltip]::after{
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #fff;
    font-size: 11.5px;
    font-weight: 500;
    padding: 4px 9px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
    z-index: 20;
}

[data-tooltip]:hover::after{
    opacity: 1;
}

@media (hover: none){
    /* Touch devices have no hover state — don't leave a dead tooltip trigger */
    [data-tooltip]::after{
        display: none;
    }
}

/* The icon's own fill-opacity attribute only reflects state at first page
   load; this CSS rule is what makes the AJAX toggle actually visible. */
.rt-save-btn.saved .rt-icon-bookmark path{
    fill-opacity: 1 !important;
}

.rt-repost-btn.reposted .rt-svg-icon path{
    stroke-width: 2.2;
}

/* Clap animation */
@keyframes clapPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}
.rt-clap-btn.clap-animate .rt-clap-icon { animation: clapPop .4s ease; }
.rt-clap-icon.clapped { filter: grayscale(0); }

/* ===========================================================  */
	.custom-blog-single{
    max-width:1200px;
    margin:0 auto;
    padding:60px 20px;
	font-family: 'poppins'
}

.blog-hero{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 0px;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}
	
	.custom-blog-single a {
		color: #0f2db8;
		text-decoration: underline;
	}

.blog-left{
    flex:1;
}

.blog-right{
    flex:1;
}

.blog-right img{
    width:100%;
    height:auto;
    border-radius:10px;
}

.post-meta{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:20px;
    flex-wrap:wrap;
}
	.post-meta span {
		font-size: 14px;
		font-weight: 500;
	}

.category-badge{
    border:1px solid #1b40c9;
    color:#1b40c9;
    padding:8px 15px;
    border-radius:20px;
    font-size:14px;
    font-weight:600;
}

.blog-title{
    font-size:2.5rem;
    line-height:1.1;
    font-weight:700;
    color:#0f2db8;
    margin: 25px 0px;
}

.blog-intro p{
    font-size:20px;
    line-height:1.8;
}
	.wp-caption {
		margin: 20px 20px 20px 0px ;
	}

.hero-divider{
    border:none;
    border-top:1px dashed #000;
    margin:60px 0;
}

.blog-content {
    width:100%;
    max-width:100%;
    margin:0;
}
	
	.blog-content h2 {
		color: #1a1a2e;
		border-bottom: 2px solid #0f2db8;
		margin-top: 2.25em;
		margin-bottom: .75em;
		padding-bottom: .5rem;
		scroll-margin-top: 6rem;
		font-size: max(1.5rem, min(2.4vw, 2rem));
		font-weight: 500;
	}
	
	.blog-content h3 {
		font-size: 20px;
		border-left: 2px solid #0f2db8;
		padding: 10px;
		
	}
	
	.blog-content ul {
    margin-bottom: 20px;
	line-height:30px
}
	
	.blog-content p{
    text-align: justify;
    line-height: 1.8;
    hyphens: auto;
}

.blog-content img{
    max-width:100%;
    height:auto;
}

.post-navigation-wrap{
    display:flex;
    justify-content:space-between;
    margin:70px auto;
}

.post-navigation-wrap a{
    background:#0629a1;
    color:#fff;
    text-decoration:none;
    padding:12px 30px;
    border-radius:10px;
    font-weight:600;
	font-size: 14px;
}

.blog-categories{
    border-top:1px dashed #999;
    padding-top:40px;
    display:flex;
    flex-wrap:wrap;
    gap:15px;
	
}
	
	.blog-categories a {
	text-decoration: none !important;
	}

.cat-pill{
    border:1px solid #1238c8;
    color:#1238c8;
    padding:10px 18px;
    border-radius:10px;
    text-decoration:none;
    font-weight:600;
}

.blog-tags{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    padding-top:20px;
}

.tag-pill{
    background:#f3f4f6;
    color:#374151;
    padding:6px 14px;
    border-radius:20px;
    text-decoration:none !important;
    font-size:13px;
    font-weight:500;
}

.tag-pill:hover{
    background:#e5e7eb;
    color:#111827;
}

.author-box{
    display:flex;
    align-items:center;
    gap:30px;
    padding:50px 0;
    border-bottom:1px dashed #000;
}

.author-image img{
    border-radius:50%;
}

.author-label{
    display:block;
    margin-bottom:10px;
    color:#666;
	font-size: 0.8rem;
}

.author-content h3{
    margin-bottom:10px;
	font-size: 1.3rem;
}
	.author-content p{
	color:#666;
	font-size: 0.9rem;
	}

.related-posts{
    padding:50px 0;
}

.related-posts h2{
    margin-bottom:30px;
    font-size:42px;
	font-family: 'stardust'
}

.related-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.related-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.related-card a{
    text-decoration:none;
    color:#111;
}

.related-card h3{
    font-size:1.3rem;
    line-height:1.2;
    margin-top:15px;
}

.related-date{
    display:block;
    margin-top:12px;
    color:#666;
    font-size:14px;
}

@media(max-width:768px){

    .blog-hero{
        flex-direction:column;
		padding: 0 10px;
		gap: 20px;
    }

    .blog-title{
        font-size:26px;
    }
	
	.hero-divider {
		margin: 20px 0px;
	}

    .post-navigation-wrap{
        
        gap:15px;
		width: 100% !important;
    }

    .author-box{
        flex-direction:column;
        text-align:center;
    }

    .related-grid{
        grid-template-columns:1fr;
    }
	
	.blog-key-takeaways {
		width: 100% !important;
	}
	
	.blog-content p {
		text-align: left;
		line-height: 1.4;
    	hyphens: auto;
	}
	
	.category-sidebar {
		width: 220px !important;
	}
}
	
	@media(max-width:568px){ 
		 .post-navigation-wrap{
        flex-direction:column;
        gap:35px;
		
    }
		
		.blog-layout {
			display: block !important;
		}
		
		.category-sidebar {
			width: 100% !important;
		}

	}

/* Keys Takeaways */

.kt-wrap {
    margin: 0 auto 2rem;
    font-family: inherit;
}
.kt-header {
    display: flex;
    align-items: center;
    margin-bottom: -15px;
    position: relative;
    z-index: 1;
}
.kt-line-l {
    width: 12px;
    height: 2px;
    background: #6c2bd9;
    flex-shrink: 0;
}
.kt-line-r {
    flex: 1;
    height: 2px;
    background: #6c2bd9;
}
.kt-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    flex-shrink: 0;
    background: #fff;
    margin-left: 20px;
}
.kt-box {
    border: 2px solid #6c2bd9;
    border-radius: 14px 14px 14px 14px;
    background: #fff;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding-top: 15px;
}
.kt-top-row {
    display: flex;
    justify-content: flex-end;
    padding: 10px 14px 0;
}
.kt-btn {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    color: #6c2bd9;
    font-size: 1.3rem;
    padding: 0;
    line-height: 1;
}
.kt-body {
    padding: 2px 24px 0;
    width: 100%;
}
.kt-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}
.kt-item {
    padding: 9px 0 9px 20px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #1f1f1f;
}
.kt-item::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: 9px;
    font-size: 1.1rem;
    color: #1f1f1f;
}
.kt-footer {
    border-top: 1px solid #e0e0e0;
    padding: 10px 0 14px;
}
.kt-note {
    font-size: 0.75rem !important;
    color: #aaa !important;
    margin: 0;
}

.blog-key-takeaways {
    width: 900px;
    margin: auto;
    margin-bottom: 40px;
}
	
	.blog-categories{
    display:flex;
    justify-content:left;
    flex-wrap:wrap;
    gap:20px;
    padding:40px 0;
    border-top:1px dashed #000;
    margin-top:40px;
}

.cat-pill{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 24px;
    border:1.5px solid #0033cc;
    border-radius:12px;
    color:#0033cc;
    text-decoration:none;
    font-weight:600;
    font-size:14px;
    transition:all .3s ease;
}

/* Sidebar Css */
	
	
	.blog-layout{
    display:flex;
    gap:50px;
    align-items:flex-start;
}

.blog-main{
    flex:1;
    min-width:0;
}

.category-sidebar{
    width:320px;
    flex-shrink:0;
    position:relative;
    margin-top:40px;
}

.category-widget{
    position:relative;
    background:#fff;
    border-radius:20px;
    padding:25px;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
    margin-bottom:18px;
}
	
	.category-widget h3 {
		font-size: 1.2rem;
	}
	
	.category-widget a h4 {
		font-size: 1rem;
		color: #000 !important;
		text-decoration: none;
	}
	
	.category-widget a {
		text-decoration: none !important;
	}
	
	/* Medium-style author meta */
.rt-author-meta {
/*     display: flex; */
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}
.rt-author-meta img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}
.rt-author-meta-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rt-author-meta-info .author-name {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}
.rt-author-meta-info .post-date {
    font-size: 13px;
    color: #888;
}

/* Divider lines around interactions */
.rt-hero-divider-line {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 14px 0;
}
	
	/* Social Share Bar */
/* Share bar layout */
.rt-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px dashed #ddd;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
    flex-wrap: wrap;
    gap: 14px;
}
.rt-share-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rt-share-right {
    display: flex;
    align-items: center;
}

.rt-share-dropdown{
    position:relative;
}

.rt-share-trigger{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:36px;
    height:36px;
    border-radius:50%;
    background:none;
    border:1px solid #e5e7eb;
    color:#111827;
    cursor:pointer;
}

.rt-share-trigger svg{
    width:17px;
    height:17px;
}

.rt-share-trigger:hover{
    background:#f3f4f6;
}

.rt-share-menu{
    display:none;
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:10px;
    box-shadow:0 10px 30px rgba(0,0,0,.1);
    padding:6px;
    min-width:200px;
    z-index:40;
}

.rt-share-dropdown.open .rt-share-menu,
.rt-share-dropdown:hover .rt-share-menu{
    display:block;
}

.rt-share-item{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    background:none;
    border:none;
    text-align:left;
    padding:9px 10px;
    border-radius:6px;
    font-size:13.5px;
    font-weight:500;
    color:#111827;
    text-decoration:none;
    cursor:pointer;
    font-family:inherit;
}

.rt-share-item:hover{
    background:#f3f4f6;
    color:#111827;
}

.rt-share-item-ic{
    display:flex;
    align-items:center;
    justify-content:center;
    width:18px;
    height:18px;
    flex-shrink:0;
    color:#374151;
}

.rt-share-item-ic svg{
    width:100%;
    height:100%;
}

@media (max-width: 600px) {
    .rt-share-bar { justify-content: center; }
    .rt-share-menu{
        right:auto;
        left:50%;
        transform:translateX(-50%);
    }
}

.rt-clap-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f5f5f5;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    font-family: 'Poppins', sans-serif;
}
	
.rt-comment-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f5f5f5;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    font-family: 'Poppins', sans-serif;
}

/* ================= creator page css ======================== */


.creators-page {
    padding: 40px 20px;
    max-width: 1400px;
    margin: auto;
    font-family: 'Poppins', sans-serif;
}

.creators-header { margin-bottom: 24px; }
.creators-header h1 { font-size: 32px; font-weight: 600; color: #111; margin-bottom: 6px; }
.creators-header p  { font-size: 15px; color: #777; }

/* Filters */
.creators-filters {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.creators-filters form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.creators-filters input,
.creators-filters select {
    height: 40px;
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
    color: #333;
}
.creators-filters input { flex: 1; min-width: 180px; }
.creators-filters select { width: 160px; }
.creators-filters button {
    height: 40px;
    padding: 0 22px;
    background: #5B21B6;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: opacity .2s;
}
.creators-filters button:hover { opacity: .88; }

/* Meta row */
.creators-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

/* Grid */
.creators-grid {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax(215px, 1fr) );
    gap: 16px;
}

/* Card */
.creator-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #111;
    transition: border-color .2s, transform .2s;
}
.creator-card:hover {
    border-color: #5B21B6;
    transform: translateY(-3px);
}

/* Avatar */
.creator-avatar { margin-bottom: 4px; }
.creator-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.avatar-initials {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
}

.creator-name  { font-size: 15px; font-weight: 600; color: #111; text-align: center; }

.creator-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
}

.creator-divider {
    width: 100%;
    height: 1px;
    background: #f0f0f0;
    margin: 4px 0;
}

/* Stats */
.creator-stats {
    display: flex;
    gap: 20px;
}
.creator-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.stat-val { font-size: 16px; font-weight: 600; color: #111; }
.stat-lbl { font-size: 11px; color: #888; }

.creator-bio {
    font-size: 12px;
    color: #777;
    text-align: center;
    line-height: 1.5;
    margin-top: 2px;
}

.creator-link {
    font-size: 12px;
    color: #5B21B6;
    font-weight: 500;
    margin-top: 4px;
}

.no-results {
    font-size: 14px;
    color: #888;
    grid-column: 1 / -1;
    padding: 40px 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    .creators-filters form { flex-direction: column; }
    .creators-filters input,
    .creators-filters select,
    .creators-filters button { width: 100%; }
}


.pf-avatar {
	display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
	cursor: pointer;
}

span.rt-eng-badge {
    display: flex;
    gap: 6px;
	align-items: center;
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
}

span.rt-eng-badge .rt-svg-icon{
	width: 17px;
	height: 17px;
}

.rt-eng-badges {
	display: flex;
	gap: 18px;
}

/* 1. Global Modal Shell - HIDDEN BY DEFAULT */
.rt-signup-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none; /* JS will change this to flex via .active */
    align-items: center;
    justify-content: center;
}

.rt-signup-modal.active {
    display: flex !important;
}

.rt-signup-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 60, 0.7);
    backdrop-filter: blur(4px);
}

/* 2. The Card */
.auth-modal-card {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 420px;
    padding: 45px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border-top: 6px solid #4d1c89;
    z-index: 10;
    text-align: center;
    animation: rtPopIn 0.3s ease-out;
}

@keyframes rtPopIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* 3. View Management */
.rt-modal-view {
    display: none; /* JS will .show() the active view */
}

/* 4. Inputs & Buttons */
.auth-modal-card h2 { font-family: 'Stardust', sans-serif; color: #0629a1; font-size: 28px; margin-bottom: 10px; }
.auth-modal-card p { font-family: 'Poppins', sans-serif; font-size: 14px; color: #666; margin-bottom: 20px; }

.auth-modal-card input {
    width: 100%; height: 52px; border: 2px solid #eef1f8; border-radius: 12px;
    padding: 0 15px; margin-bottom: 15px; font-family: 'Poppins', sans-serif; box-sizing: border-box;
}

.main-action-btn {
    width: 100%; height: 52px; background: linear-gradient(135deg, #0629a1, #4d1c89);
    color: #fff; border: none; border-radius: 12px; font-weight: 600; font-size: 16px;
    cursor: pointer; transition: 0.2s;
}
.main-action-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(77, 28, 137, 0.3); }

.rt-signup-modal__x { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 30px; color: #ccc; cursor: pointer; }
.toggle-text { margin-top: 15px; font-size: 13px; }
.toggle-text a { color: #0629a1; font-weight: 600; text-decoration: none; }
/* =========================
   TOAST NOTIFICATION (replaces native confirm/alert for repost)
========================= */

.rt-toast{
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #111827;
    color: #fff;
    font-size: 13.5px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    z-index: 99999;
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
    max-width: calc(100vw - 32px);
}

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

.rt-toast-action{
    background: none;
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    font-family: inherit;
}

/* =========================
   UNIVERSAL [rt_interactions] SHORTCODE ROW
========================= */

.rt-interactions-row{
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

/* =========================
   TOPIC-BASED CREATOR BADGE
========================= */

.rt-topic-badge{
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .01em;
}

/* =========================
   TOP CREATOR REPOSTS WIDGET
========================= */

.rt-tcr-widget{
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.rt-tcr-heading{
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 14px;
}

.rt-tcr-row{
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.rt-tcr-row:last-child{
    border-bottom: none;
    padding-bottom: 0;
}

.rt-tcr-thumb{
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}

.rt-tcr-body{
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.rt-tcr-tag{
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
}

.rt-tcr-tag svg{
    width: 12px;
    height: 12px;
}

.rt-tcr-title{
    font-size: 13.5px;
    font-weight: 600;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rt-tcr-row:hover .rt-tcr-title{
    text-decoration: underline;
}

.rt-tcr-meta{
    font-size: 11.5px;
    color: #9ca3af;
}

.rt-tcr-empty-msg{
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
}

/* =========================
   FOLLOW BUTTON
========================= */

.rt-follow-btn{
    font-family: inherit;
    cursor: pointer;
    border-radius: 20px;
    font-weight: 600;
    transition: all .15s;
}

/* Full button — profile page, Creators page cards */
.rt-follow-btn.rt-follow-full{
    background: #111827;
    color: #fff;
    border: 1px solid #111827;
    font-size: 13px;
    padding: 3px 20px;
}
.rt-follow-btn.rt-follow-full:hover{
    background: #000;
}
.rt-follow-btn.rt-follow-full.following{
    background: #fff;
    color: #111827;
}
.rt-follow-btn.rt-follow-full.following:hover{
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

/* Inline text link — single post byline */
.rt-follow-btn.rt-follow-inline{
    background: none;
    border: none;
    color: #111827;
    font-size: 13px;
    padding: 0;
    text-decoration: underline;
    margin-left: 8px;
}
.rt-follow-btn.rt-follow-inline.following{
    color: #9ca3af;
}

/* Category pill-style follow button */
.rt-follow-btn.rt-follow-category{
    background: #fff;
    color: #111827;
    border: 1px solid #d1d5db;
    font-size: 12.5px;
    padding: 5px 14px;
}
.rt-follow-btn.rt-follow-category:hover{
    border-color: #9ca3af;
}
.rt-follow-btn.rt-follow-category.following{
    background: #f3f4f6;
    color: #6b7280;
}

.cnet-avatars-container {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cnet-author-avatar {
    position: relative;
    width: 60px !important;
    height: 60px !important;
    flex-shrink: 0;
    border-radius: 50% !important;
    cursor: pointer;
    box-sizing: border-box;
    border: 3px solid transparent;
    transition: border-color .2s, transform .2s;
    overflow: hidden !important;
}
.cnet-author-avatar:hover {
    transform: translateY(-2px);
}
.cnet-author-avatar.active {
    border-color: #5B21B6;
}
.cnet-author-avatar img,
.cnet-author-avatar img.attachment-full,
.cnet-author-avatar img[class*="wp-image"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    border-radius: 50% !important;
    transform: none !important;
    animation: none !important;
}

.rt-card-interactions [type=button]:hover, .rt-card-interactions [type=button]:focus {
	background-color: transparent !important;
}
