/*
Theme Name: Planner Theme
Theme URI: https://example.com/planner-theme
Author: Your Name
Author URI: https://example.com
Description: A comprehensive planning and strategy management theme with FLEXIBLE hierarchical post types. Supports full 8-tier structure for large organizations, or simplified 3-5 tier structure for startups and personal projects. Organize strategies, objectives, initiatives, and tasks your way!
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: planner-theme
Tags: planning, productivity, okr, strategy, custom-post-types, flexible, hierarchical
*/

/* ============================================
   GLOBAL RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   POST TYPE SPECIFIC STYLES
   ============================================ */

/* Post Type Badges */
.post-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-strategy { background: #667eea; color: white; }
.badge-objective { background: #f093fb; color: white; }
.badge-key-result { background: #4facfe; color: white; }
.badge-initiative { background: #43e97b; color: white; }
.badge-monthly-goal { background: #fa709a; color: white; }
.badge-weekly-plan { background: #fee140; color: #333; }
.badge-daily-task { background: #30cfd0; color: white; }
.badge-milestone { background: #a8edea; color: #333; }

/* Hierarchy Display */
.hierarchy-container {
    margin: 30px 0;
}

.hierarchy-item {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hierarchy-level-0 { margin-left: 0; }
.hierarchy-level-1 { margin-left: 30px; border-left: 3px solid #667eea; padding-left: 15px; }
.hierarchy-level-2 { margin-left: 60px; border-left: 3px solid #4facfe; padding-left: 15px; }
.hierarchy-level-3 { margin-left: 90px; border-left: 3px solid #43e97b; padding-left: 15px; }
.hierarchy-level-4 { margin-left: 120px; border-left: 3px solid #fa709a; padding-left: 15px; }
.hierarchy-level-5 { margin-left: 150px; border-left: 3px solid #fee140; padding-left: 15px; }

.children-list {
    margin-top: 20px;
}

.child-item {
    background: #f8f9fa;
    padding: 15px;
    margin: 10px 0;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

/* Progress Bar */
.progress-container {
    margin: 15px 0;
}

.progress-label {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s;
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-not-started { background: #95a5a6; }
.status-in-progress { background: #f39c12; }
.status-completed { background: #27ae60; }
.status-on-hold { background: #e74c3c; }

/* Task Checklist */
.task-checklist {
    list-style: none;
    margin: 15px 0;
}

.task-checklist li {
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.task-checklist input[type="checkbox"] {
    margin-right: 10px;
}

/* Date Display */
.date-display {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.date-icon {
    color: #667eea;
}

/* ============================================
   LEGACY TEMPLATE PARTS
   ============================================ */

/* Single Post Cards */
.post-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.post-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
}

.post-title a:hover {
    color: #667eea;
}

.post-meta {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Archive Pages */
.site-content {
    padding: 40px 0;
    min-height: 70vh;
}

/* Responsive for old templates */
@media (max-width: 768px) {
    .hierarchy-level-1,
    .hierarchy-level-2,
    .hierarchy-level-3,
    .hierarchy-level-4,
    .hierarchy-level-5 {
        margin-left: 15px;
    }
    
    .post-card {
        padding: 15px;
    }
}
