/*
Theme Name: Skool Enterprise Pro
Theme URI: https://adechiosystem.online/skool-enterprise-pro
Author: Adechio Systems Global
Author URI: https://adechiosystem.online
Description: Enterprise-grade all-in-one community, gamified classroom, event calendar & leaderboard platform for WordPress, designed to clone and outperform Skool.com with cryptographic domain locking and zero monthly fees.
Version: 1.0.0
License: Proprietary / Commercial
Text Domain: skool-enterprise-pro
*/

:root {
    --sk-bg: #f8fafc;
    --sk-card-bg: #ffffff;
    --sk-border: #e2e8f0;
    --sk-text: #0f172a;
    --sk-text-muted: #64748b;
    --sk-primary: #10b981;
    --sk-primary-hover: #059669;
    --sk-accent: #6366f1;
    --sk-gold: #f59e0b;
    --sk-radius: 14px;
    --sk-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--sk-bg);
    color: var(--sk-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* TOP NAVBAR */
.sk-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--sk-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.sk-nav-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sk-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 18px;
    color: #0f172a;
    cursor: pointer;
}

.sk-logo-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
}

.sk-nav-tabs {
    display: flex;
    gap: 8px;
}

.sk-tab-btn {
    padding: 8px 18px;
    background: none;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--sk-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sk-tab-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.sk-tab-btn.active {
    background: #e6fcf5;
    color: #059669;
}

.sk-user-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sk-points-pill {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sk-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #6366f1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* MAIN LAYOUT CONTAINER */
.sk-main-container {
    max-width: 1200px;
    width: 100%;
    margin: 28px auto;
    padding: 0 20px;
    flex: 1;
}

/* COMMUNITY TAB: 2-COLUMN FEED */
.sk-community-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
}

.sk-feed-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* POST COMPOSER (SKOOL STYLE) */
.sk-post-composer {
    background: #fff;
    border: 1px solid var(--sk-border);
    border-radius: var(--sk-radius);
    padding: 20px;
    box-shadow: var(--sk-shadow);
}

.sk-composer-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.sk-composer-input {
    width: 100%;
    border: 1px solid var(--sk-border);
    border-radius: 12px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    resize: vertical;
    transition: all 0.2s;
    background: #f8fafc;
}

.sk-composer-input:focus {
    background: #fff;
    border-color: var(--sk-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.sk-composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.sk-category-select {
    padding: 8px 12px;
    border: 1px solid var(--sk-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    outline: none;
    cursor: pointer;
}

.sk-btn-publish {
    background: var(--sk-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.sk-btn-publish:hover {
    background: var(--sk-primary-hover);
    transform: translateY(-1px);
}

/* POST FEED CARDS */
.sk-post-card {
    background: #fff;
    border: 1px solid var(--sk-border);
    border-radius: var(--sk-radius);
    padding: 22px;
    box-shadow: var(--sk-shadow);
    transition: all 0.2s;
}

.sk-post-card:hover {
    border-color: #cbd5e1;
}

.sk-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.sk-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sk-author-name {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
}

.sk-post-date {
    font-size: 12px;
    color: var(--sk-text-muted);
}

.sk-category-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.sk-post-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.4;
}

.sk-post-body {
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 18px;
    white-space: pre-line;
}

.sk-post-footer {
    display: flex;
    gap: 16px;
    align-items: center;
    border-top: 1px solid #f8fafc;
    padding-top: 14px;
}

.sk-like-btn, .sk-comment-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.sk-like-btn:hover {
    background: #e6fcf5;
    border-color: #a7f3d0;
    color: #059669;
}

.sk-like-btn.liked {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

/* SIDEBAR: COMMUNITY STATS & LEADERBOARD SNIPPET */
.sk-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sk-widget-card {
    background: #fff;
    border: 1px solid var(--sk-border);
    border-radius: var(--sk-radius);
    padding: 20px;
    box-shadow: var(--sk-shadow);
}

.sk-widget-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: #475569;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sk-leader-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 13px;
}

.sk-leader-rank {
    font-weight: 800;
    color: var(--sk-text-muted);
    width: 22px;
}

.sk-leader-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #1e293b;
    flex: 1;
}

.sk-level-badge {
    background: #e0e7ff;
    color: #4338ca;
    padding: 2px 7px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 800;
}

/* CLASSROOM TAB */
.sk-classroom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.sk-course-card {
    background: #fff;
    border: 1px solid var(--sk-border);
    border-radius: var(--sk-radius);
    overflow: hidden;
    box-shadow: var(--sk-shadow);
    transition: all 0.25s;
    cursor: pointer;
    position: relative;
}

.sk-course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.sk-course-cover {
    height: 160px;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
    position: relative;
}

.sk-course-lock {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #fde047;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sk-course-content {
    padding: 20px;
}

.sk-course-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.sk-course-desc {
    font-size: 13px;
    color: var(--sk-text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.sk-progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.sk-progress-fill {
    height: 100%;
    background: var(--sk-primary);
    border-radius: 9999px;
    transition: width 0.3s;
}

.sk-progress-text {
    font-size: 11px;
    color: var(--sk-text-muted);
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}

/* CALENDAR TAB */
.sk-events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.sk-event-card {
    background: #fff;
    border: 1px solid var(--sk-border);
    border-radius: var(--sk-radius);
    padding: 22px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: var(--sk-shadow);
}

.sk-event-date-box {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    width: 64px;
    height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #059669;
    text-align: center;
}

.sk-event-month {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.sk-event-day {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.sk-event-info {
    flex: 1;
}

.sk-event-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.sk-event-meta {
    font-size: 13px;
    color: var(--sk-text-muted);
    display: flex;
    gap: 16px;
}

.sk-btn-join {
    background: #4f46e5;
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
}

.sk-btn-join:hover {
    background: #4338ca;
}

/* LEADERBOARD FULL TAB */
.sk-leaderboard-container {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--sk-border);
    border-radius: var(--sk-radius);
    padding: 28px;
    box-shadow: var(--sk-shadow);
}

.sk-leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
}

.sk-leader-row {
    display: flex;
    align-items: center;
    padding: 14px 12px;
    border-radius: 10px;
    transition: all 0.15s;
}

.sk-leader-row:nth-child(even) {
    background: #f8fafc;
}

.sk-leader-row:hover {
    background: #f1f5f9;
}

/* RESPONSIVE */
@media (max-width: 860px) {
    .sk-community-grid {
        grid-template-columns: 1fr;
    }
    .sk-sidebar {
        order: -1;
    }
    .sk-nav-tabs span {
        display: none;
    }
}
