/**
 * TIMELINE STYLES - SEPARATE FILE (NO HEADER)
 * File: assets/css/timeline-styles.css
 * 
 * Contains timeline-specific styling EXCLUDING header (handled by single-header.php)
 * - Single timeline content layout
 * - Timeline archive pages  
 * - Timeline components
 */

/* ==========================================================================
   SINGLE TIMELINE PAGE LAYOUT (CONTENT ONLY)
   ========================================================================== */

.single-timeline {
    background: #f8f9fa !important;
    min-height: 100vh !important;
    display: block !important;
    grid-template-columns: none !important;
}

/* ==========================================================================
   TIMELINE CONTENT LAYOUT
   ========================================================================== */

.position-content {
    padding: 40px 0 80px !important;
    margin-top: 0 !important;
    position: relative !important;
    z-index: 3 !important;
}

.single-timeline .content-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 60px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.single-timeline .main-content-area {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    overflow: hidden !important;
}

.single-timeline .content-section {
    padding: 40px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.single-timeline .content-section:last-child {
    border-bottom: none !important;
}

.single-timeline .content-section h3 {
    font-size: 24px !important;
    color: #333 !important;
    margin: 0 0 20px 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #d97706 !important; /* Orange theme */
    display: inline-block !important;
}

.single-timeline .section-content {
    color: #555 !important;
    line-height: 1.7 !important;
}

/* ==========================================================================
   TIMELINE CONTENT COMPONENTS
   ========================================================================== */

.responsibilities-list,
.achievements-list,
.projects-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.responsibility-item,
.achievement-item,
.project-item {
    background: #f8f9fa !important;
    padding: 15px 20px !important;
    border-radius: 8px !important;
    border-left: 4px solid #d97706 !important; /* Orange theme */
    line-height: 1.6 !important;
    color: #555 !important;
    transition: all 0.3s ease;
}

.responsibility-item:hover,
.achievement-item:hover,
.project-item:hover {
    background: #f1f3f4 !important;
    transform: translateX(5px);
}

.achievement-item {
    border-left-color: #d97706 !important; /* Keep orange for consistency */
    color: #d97706 !important;
    font-weight: 500 !important;
}

.project-item {
    border-left-color: #10b981 !important;
}

/* ==========================================================================
   TIMELINE IMPACT METRICS
   ========================================================================== */

.impact-metrics {
    display: grid !important;
    gap: 15px !important;
    margin-top: 20px !important;
}

.single-timeline .metric-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%) !important; /* Orange theme */
    padding: 15px 20px !important;
    border-radius: 8px !important;
    border-left: 4px solid #d97706 !important; /* Orange theme */
    transition: all 0.3s ease;
}

.single-timeline .metric-item:hover {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.15) 0%, rgba(217, 119, 6, 0.08) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2) !important;
}

.single-timeline .metric-icon {
    font-size: 18px !important;
    color: #d97706 !important; /* Orange theme */
}

.single-timeline .metric-text {
    font-weight: 600 !important;
    color: #b45309 !important; /* Darker orange */
}

/* ==========================================================================
   TIMELINE SIDEBAR
   ========================================================================== */

.position-sidebar {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
}

.single-timeline .sidebar-section {
    background: white !important;
    border-radius: 12px !important;
    padding: 30px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    border: 1px solid #f0f0f0 !important;
    transition: all 0.3s ease;
}

.single-timeline .sidebar-section:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    transform: translateY(-2px);
}

.single-timeline .sidebar-section h4 {
    font-size: 20px !important;
    color: #333 !important;
    margin: 0 0 20px 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #d97706 !important; /* Orange theme */
}

/* ==========================================================================
   TIMELINE DETAILS
   ========================================================================== */

.position-details .detail-item {
    display: flex !important;
    justify-content: space-between !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    transition: all 0.3s ease;
}

.position-details .detail-item:hover {
    background: rgba(217, 119, 6, 0.05) !important; /* Orange theme */
    padding-left: 10px !important;
    padding-right: 10px !important;
    border-radius: 4px;
    margin: 0 -10px !important;
}

.position-details .detail-item:last-child {
    border-bottom: none !important;
}

.detail-label {
    font-weight: 600 !important;
    color: #666 !important;
}

.detail-value {
    color: #333 !important;
    font-weight: 500;
}

/* ==========================================================================
   TIMELINE TECHNOLOGY TAGS
   ========================================================================== */

.technologies-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 15px;
}

.single-timeline .tech-tag {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important; /* Orange theme */
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease;
    border: none !important;
}

.single-timeline .tech-tag:hover {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%) !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 8px rgba(217, 119, 6, 0.3) !important;
}

/* ==========================================================================
   TIMELINE AWARDS
   ========================================================================== */

.awards-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.award-item {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%) !important; /* Orange theme */
    padding: 12px 16px !important;
    border-radius: 8px !important;
    border-left: 3px solid #f59e0b !important;
    font-size: 14px !important;
    color: #333 !important;
    transition: all 0.3s ease;
}

.award-item:hover {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%) !important;
    transform: translateX(5px);
    border-left-color: #d97706 !important;
}

/* ==========================================================================
   TIMELINE NAVIGATION
   ========================================================================== */

.navigation-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.single-timeline .nav-link {
    display: block !important;
    padding: 12px 15px !important;
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    color: #495057 !important;
    transition: all 0.3s ease !important;
    font-weight: 500;
}

.single-timeline .nav-link:hover {
    background: #d97706 !important; /* Orange theme */
    color: white !important;
    border-color: #d97706 !important;
    text-decoration: none !important;
    transform: translateX(5px);
}

.single-timeline .back-btn {
    background: #d97706 !important; /* Orange theme */
    color: white !important;
    border-color: #d97706 !important;
}

.single-timeline .back-btn:hover {
    background: #b45309 !important;
    border-color: #b45309 !important;
    transform: translateX(5px) scale(1.02);
}

/* ==========================================================================
   TIMELINE RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .single-timeline .content-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .single-timeline .content-section {
        padding: 25px !important;
    }
    
    .single-timeline .content-section h3 {
        font-size: 20px !important;
    }
    
    .single-timeline .sidebar-section {
        padding: 20px !important;
    }
    
    .impact-metrics {
        grid-template-columns: 1fr !important;
    }
    
    .single-timeline .metric-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    .technologies-tags {
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .position-content {
        margin-top: -20px !important;
    }
    
    .single-timeline .content-section {
        padding: 20px !important;
    }
    
    .single-timeline .sidebar-section {
        padding: 15px !important;
    }
    
    .single-timeline .content-section h3 {
        font-size: 18px !important;
    }
    
    .responsibility-item,
    .achievement-item,
    .project-item {
        padding: 12px 15px !important;
        font-size: 14px !important;
    }
    
    .single-timeline .metric-item {
        padding: 12px 15px !important;
    }
    
    .single-timeline .tech-tag {
        font-size: 12px !important;
        padding: 5px 10px !important;
    }
}

/* ==========================================================================
   TIMELINE ARCHIVE PAGE STYLES (for page-timeline.php)
   ========================================================================== */

.timeline-archive {
    background: #f8f9fa;
    min-height: 100vh;
}

.timeline-grid {
    display: block;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 40px 20px;
}

.timeline-grid::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #d97706 0%, #f59e0b 100%); /* Orange theme */
    border-radius: 2px;
    z-index: 1;
}

.timeline-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(217, 119, 6, 0.1);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 60px;
    margin-left: 100px;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.timeline-item:hover {
    transform: translateY(-8px) translateX(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #d97706; /* Orange theme */
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -75px;
    top: 140px;
    width: 24px;
    height: 24px;
    background: #d97706; /* Orange theme */
    border: 6px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #d97706, 0 4px 15px rgba(217, 119, 6, 0.3);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px #d97706, 0 6px 20px rgba(217, 119, 6, 0.4);
}

.timeline-content-inner {
    padding: 40px;
}

.timeline-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
    color: #d97706 !important; /* Orange theme */
}

.timeline-title a {
    color: #d97706 !important; /* Orange theme */
    text-decoration: none;
    transition: all 0.3s ease;
}

.timeline-title a:hover {
    color: #b45309 !important;
    transform: translateX(5px);
    text-decoration: underline;
}

/* ==========================================================================
   TIMELINE MOBILE RESPONSIVE (ARCHIVE)
   ========================================================================== */

@media (max-width: 768px) {
    .timeline-grid::before {
        left: 30px;
    }
    
    .timeline-item {
        margin-left: 70px;
    }
    
    .timeline-item::before {
        left: -55px;
        top: 120px;
        width: 20px;
        height: 20px;
        border-width: 4px;
    }
    
    .timeline-content-inner {
        padding: 25px;
    }
    
    .timeline-title {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .timeline-grid::before {
        left: 20px;
    }
    
    .timeline-item {
        margin-left: 50px;
        margin-bottom: 40px;
    }
    
    .timeline-item::before {
        left: -45px;
        top: 100px;
        width: 16px;
        height: 16px;
        border-width: 3px;
    }
    
    .timeline-content-inner {
        padding: 20px;
    }
    
    .timeline-title {
        font-size: 22px;
    }
}