/*
Theme Name: AnimFX Creator
Theme URI: https://animfx.in/
Author: AnimFX
Description: App-ready creator community theme for AnimFX with Elementor support, responsive navigation and light/dark/system appearance.
Version: 1.3.8
Text Domain: animfx-creator
*/
:root,html[data-animfx-theme="dark"]{--afx-bg:#070b1c;--afx-card:#11172d;--afx-card2:#171d35;--afx-input:#0b1022;--afx-text:#f7f8ff;--afx-muted:#aeb8d0;--afx-border:#252c48;--afx-accent:#6c4dff;--afx-header:rgba(7,11,28,.94);--afx-link:#a996ff}html[data-animfx-theme="light"]{--afx-bg:#f6f7fb;--afx-card:#fff;--afx-card2:#f1f3f9;--afx-input:#fff;--afx-text:#15182a;--afx-muted:#667085;--afx-border:#dfe3ec;--afx-accent:#6c4dff;--afx-header:rgba(255,255,255,.94);--afx-link:#5b3ee8}*{box-sizing:border-box}body{margin:0;background:var(--afx-bg);color:var(--afx-text);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;line-height:1.6}a{color:inherit}.afx-wrap{width:min(1180px,calc(100% - 32px));margin:auto}.afx-header{position:sticky;top:0;z-index:1000;background:var(--afx-header);backdrop-filter:blur(14px);border-bottom:1px solid var(--afx-border)}.afx-header-inner{min-height:72px;display:flex;align-items:center;gap:24px}.afx-brand{font-size:24px;font-weight:800;text-decoration:none;color:var(--afx-text)}.afx-brand span{color:var(--afx-accent)}.afx-nav{margin-left:auto}.afx-nav ul{display:flex;gap:22px;align-items:center;list-style:none;margin:0;padding:0}.afx-nav a{text-decoration:none;font-weight:600;font-size:14px}.afx-actions{display:flex;align-items:center;gap:10px}.afx-btn,.afx-icon-btn{border:1px solid var(--afx-border);background:var(--afx-card);color:var(--afx-text);border-radius:10px;padding:9px 14px;text-decoration:none;cursor:pointer}.afx-primary{background:var(--afx-accent);color:#fff;border-color:var(--afx-accent)}.afx-main{min-height:70vh;padding:34px 0}.afx-footer{border-top:1px solid var(--afx-border);padding:34px 0;color:var(--afx-muted)}.afx-mobile-toggle{display:none}.afx-mobile-bar{display:none}.animfx-card,.animfx-profile,.animfx-project-card{background:var(--afx-card)!important;color:var(--afx-text)!important;border-color:var(--afx-border)!important}.animfx-card p,.animfx-profile p{color:var(--afx-muted)}@media(max-width:900px){.afx-mobile-toggle{display:inline-flex}.afx-nav{display:none;position:absolute;left:16px;right:16px;top:68px;background:var(--afx-card);padding:16px;border:1px solid var(--afx-border);border-radius:14px}.afx-nav.open{display:block}.afx-nav ul{display:block}.afx-nav li{padding:8px}.afx-actions .afx-login{display:none}.afx-mobile-bar{display:flex;position:fixed;z-index:999;bottom:0;left:0;right:0;background:var(--afx-header);border-top:1px solid var(--afx-border);justify-content:space-around;padding:9px 4px}.afx-mobile-bar a{text-decoration:none;font-size:12px;text-align:center}.afx-main{padding-bottom:80px}}

/* v1.1.1 active navigation + page-title cleanup */
.afx-nav .current-menu-item>a,.afx-nav .current_page_item>a,.afx-nav .current-menu-ancestor>a{background:var(--afx-accent);color:#fff!important;border-radius:10px;padding:9px 12px}
.afx-nav a{padding:9px 8px;border-radius:10px;transition:background .18s ease,color .18s ease}
.afx-nav a:hover{background:var(--afx-card2)}
.afx-main article.page>h1.entry-title,.afx-main article.page>h1{display:none}
/* v1.2.0 creator account dropdown */
.afx-user-menu{position:relative}.afx-avatar-button{width:42px;height:42px;border:1px solid var(--afx-border);padding:0;border-radius:50%;overflow:hidden;background:var(--afx-card);cursor:pointer}.afx-avatar-button img{width:100%;height:100%;object-fit:cover;border-radius:50%}.afx-user-dropdown{display:none;position:absolute;right:0;top:52px;width:240px;background:var(--afx-card);border:1px solid var(--afx-border);border-radius:14px;padding:9px;box-shadow:0 18px 45px rgba(0,0,0,.28);z-index:1200}.afx-user-dropdown.open{display:block}.afx-user-dropdown>a{display:block;padding:10px 11px;border-radius:9px;text-decoration:none;color:var(--afx-text);font-size:14px}.afx-user-dropdown>a:hover{background:var(--afx-card2)}.afx-user-summary{display:flex;align-items:center;gap:10px;padding:8px 8px 12px;border-bottom:1px solid var(--afx-border);margin-bottom:5px}.afx-user-summary img{width:46px;height:46px;border-radius:50%;object-fit:cover}.afx-user-summary span{display:grid}.afx-user-summary small{color:var(--afx-muted)}

/* v1.2.1 community grid + light mode polish */
.animfx-masonry-feed{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;column-count:unset!important;column-gap:unset!important;align-items:start}.animfx-masonry-feed .animfx-post-card{display:block!important;width:auto!important;margin:0!important;break-inside:auto!important}.animfx-single-post-shell{max-width:820px!important}.animfx-single-post-shell .animfx-post-card{padding:22px}.animfx-single-nav{margin-bottom:16px}.animfx-tags span{background:var(--afx-card2,#171d35)!important;color:var(--afx-text,#f7f8ff)!important;border-color:var(--afx-border,#303957)!important}.animfx-profile-contact{display:grid;grid-template-columns:1fr 1fr;gap:14px}.animfx-profile-contact label:last-child{grid-column:1/-1}@media(max-width:900px){.animfx-masonry-feed{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:600px){.animfx-masonry-feed{grid-template-columns:1fr!important}.animfx-profile-contact{grid-template-columns:1fr}}

.afx-nav .afx-courses-menu>a{background:linear-gradient(135deg,#6c4dff,#8b5cf6)!important;color:#fff!important;border-radius:10px;padding:10px 15px!important;box-shadow:0 5px 18px rgba(108,77,255,.24)}.afx-nav .afx-courses-menu>a:hover{transform:translateY(-1px)}.afx-nav .afx-jobs-menu.current-menu-item>a,.afx-nav .afx-jobs-menu.current_page_item>a{background:var(--afx-card2);border-radius:9px}.afx-coming-soon{padding:50px 0;min-height:360px}

/* v1.3 search */
.afx-nav .afx-search-menu>a{font-size:0;width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--afx-border);background:var(--afx-card)}.afx-nav .afx-search-menu>a:before{content:"⌕";font-size:23px;line-height:1}.afx-nav .afx-search-menu>a:hover{background:var(--afx-card2)}
/* v1.3.1 compact page start + icon polish */
.afx-main{padding-top:14px}.animfx-community-shell,.animfx-creators-directory,.animfx-auth-wrap,.animfx-onboarding,.animfx-dashboard{margin-top:12px!important}html[data-animfx-theme="light"] .animfx-tags span{background:#eee9ff!important;color:#5538d8!important;border-color:#cfc4ff!important}

/* v1.3.2 compact masonry + aligned creator cards */
.animfx-masonry-feed{display:block!important;column-count:3!important;column-gap:10px!important}
.animfx-masonry-feed .animfx-post-card{display:inline-block!important;width:100%!important;margin:0 0 10px!important;break-inside:avoid!important;vertical-align:top!important}
.animfx-creator-card{display:grid!important;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr)!important;align-items:center!important}
.animfx-creator-side{display:grid!important;grid-template-rows:auto auto auto;align-content:center;min-height:130px}
.animfx-creator-stats{align-items:start}.animfx-creator-card-actions{align-items:center;min-height:44px}
.animfx-learning-page{max-width:1180px;margin:0 auto}.animfx-learning-filters{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 24px}.animfx-learning-filters a{padding:8px 12px;border:1px solid var(--afx-border);border-radius:999px;text-decoration:none;background:var(--afx-card);color:var(--afx-text)}.animfx-learning-filters a.is-active{background:var(--afx-accent);color:#fff}.animfx-learning-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.animfx-learning-card{background:var(--afx-card);border:1px solid var(--afx-border);border-radius:16px;overflow:hidden}.animfx-learning-card>img{width:100%;aspect-ratio:16/9;object-fit:cover}.animfx-learning-card>div{padding:16px}
@media(max-width:900px){.animfx-masonry-feed{column-count:2!important}.animfx-creator-card{grid-template-columns:1fr!important}.animfx-learning-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.animfx-masonry-feed{column-count:1!important}.animfx-learning-grid{grid-template-columns:1fr}}
/* v1.3.4 navigation polish */
.afx-nav ul{gap:18px!important}.afx-nav li,.afx-nav a{white-space:nowrap}.afx-nav a{display:inline-flex;align-items:center;justify-content:center}
.afx-exam-menu a:before{content:none!important;display:none!important}
html[data-animfx-theme="light"] .afx-nav a:hover{background:#5b3ee8!important;color:#fff!important}
html[data-animfx-theme="light"] .afx-nav .current-menu-item>a,html[data-animfx-theme="light"] .afx-nav .current_page_item>a{background:#6c4dff!important;color:#fff!important}
.animfx-creator-side{grid-template-rows:54px 28px 46px!important}.animfx-creator-stats{min-height:54px!important;align-items:center!important}.animfx-experience{margin:0!important;min-height:28px!important}.animfx-creator-card-actions{display:grid!important;grid-template-columns:repeat(2,minmax(112px,1fr));gap:8px!important;margin:0!important;min-height:46px!important}.animfx-creator-card-actions .animfx-btn,.animfx-creator-card-actions .animfx-follow-btn{width:100%!important;min-height:42px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0!important}
@media(max-width:900px){.afx-nav ul{gap:0!important}.animfx-creator-card-actions{grid-template-columns:repeat(2,minmax(110px,180px))}}


/* v1.3.5 production mobile navigation */
@media(max-width:900px){
 .afx-header-inner{gap:8px;min-height:64px}.afx-brand{margin-right:auto}.afx-mobile-toggle{display:none!important}
 .afx-nav{display:none!important}
 .afx-mobile-top-links{display:flex!important;align-items:center;gap:7px}
 .afx-mobile-top-links a{display:inline-flex;align-items:center;justify-content:center;height:38px;border:1px solid var(--afx-border);border-radius:9px;text-decoration:none;font-size:12px;font-weight:700;padding:0 10px}
 .afx-mobile-top-links .afx-mobile-courses{background:var(--afx-accent);border-color:var(--afx-accent);color:#fff}
 .afx-actions{gap:7px}.afx-actions #afx-theme-toggle{display:none}
 .afx-mobile-bar{justify-content:flex-start!important;gap:0;overflow-x:auto;scrollbar-width:none;padding:7px 4px calc(7px + env(safe-area-inset-bottom));}
 .afx-mobile-bar::-webkit-scrollbar{display:none}.afx-mobile-bar a{flex:0 0 72px;min-width:72px;padding:3px 2px;font-size:11px;line-height:1.25;white-space:nowrap}.afx-mobile-bar a span{display:block;font-size:18px;line-height:20px;margin-bottom:2px}
}
@media(min-width:901px){.afx-mobile-top-links{display:none!important}}

/* v1.3.6 dark/light stability + header XP */
html[data-animfx-theme="dark"] body,html[data-animfx-theme="dark"] .afx-main{background:#070b1c!important;color:#f7f8ff!important}html[data-animfx-theme="light"] body,html[data-animfx-theme="light"] .afx-main{background:#f5f7fb!important;color:#151a2b!important}html[data-animfx-theme="light"] .animfx-post-card,html[data-animfx-theme="light"] .animfx-card,html[data-animfx-theme="light"] .animfx-creator-card{background:#fff!important;border:1px solid #d9deea!important;box-shadow:0 4px 14px rgba(20,30,55,.06)}.afx-xp-chip{--p:0;display:flex;align-items:center;gap:6px;text-decoration:none;color:inherit;font-size:12px;font-weight:800}.afx-xp-ring{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#ffbd2e calc(var(--p)*1%),var(--afx-border,#303957) 0);position:relative}.afx-xp-ring:after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--afx-card,#11172d)}.afx-xp-ring b{position:relative;z-index:1;font-size:16px}.afx-xp-number{white-space:nowrap}@media(max-width:760px){.afx-xp-number{display:none}.afx-xp-ring{width:32px;height:32px}}

/* v1.3.7 dark community canvas + row-first feed compatibility */
html[data-animfx-theme="dark"] .afx-main,
html[data-animfx-theme="dark"] .afx-main article.page,
html[data-animfx-theme="dark"] .afx-main .entry-content,
html[data-animfx-theme="dark"] .afx-main .animfx-community-shell{
 background:#070b1c!important;
 color:#f7f8ff!important;
}
html[data-animfx-theme="dark"] .afx-main article.page{
 min-height:70vh;
}
.animfx-masonry-feed{
 display:grid!important;
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:12px!important;
 column-count:unset!important;
 column-gap:unset!important;
 align-items:start!important;
}
.animfx-masonry-feed .animfx-post-card{display:block!important;width:auto!important;margin:0!important;break-inside:auto!important;align-self:start!important}
@media(max-width:900px){.animfx-masonry-feed{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){.animfx-masonry-feed{grid-template-columns:1fr!important}}
