/**
 * Custom Editor Content Styles v2.0
 * Clean, scoped styles for all content elements
 */

/* Image Styles */
.ce-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

.ce-image-link {
    text-decoration: none;
    border: none;
    display: inline-block;
}

.ce-image-link:hover {
    opacity: 0.9;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* Timeline Styles */
.ce-timeline {
    margin: 20px 0;
    max-width: 100%;
}

.ce-timeline-title {
    margin-bottom: 30px;
    text-align: left;
    font-weight: bold;
    color: #007bff;
    font-size: 20px;
}

.ce-timeline-day {
    margin-bottom: 40px;
}

.ce-timeline-day-container {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ce-timeline-date-section {
    flex: 0 0 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-right: 3px solid #007bff;
}

.ce-timeline-day-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.ce-timeline-day-number span {
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.ce-timeline-day-title {
    margin: 0 0 8px 0;
    color: #007bff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ce-timeline-date {
    margin: 0;
    color: #666;
    font-size: 12px;
    text-align: center;
    background: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.ce-timeline-activities {
    flex: 1;
    padding: 25px;
    background: white;
}

.ce-timeline-activity {
    margin-bottom: 12px;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ce-timeline-activity-time {
    color: #007bff;
    font-weight: bold;
    min-width: 80px;
    flex-shrink: 0;
}

.ce-timeline-activity-content {
    flex: 1;
    line-height: 1.5;
}

.ce-timeline-separator {
    height: 2px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 30px 0;
}

.ce-timeline-no-activities {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Table Styles */
.ce-table {
    margin: 20px 0;
    max-width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ce-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.ce-table th,
.ce-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.ce-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.ce-table tr:hover {
    background: #f8f9fa;
}

.ce-table tr:last-child td {
    border-bottom: none;
}

/* Quote Styles */
.ce-quote {
    margin: 20px 0;
    padding: 20px 25px;
    border-left: 4px solid var(--quote-color, #007bff);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #495057;
    position: relative;
}

.ce-quote::before {
    content: '"';
    font-size: 48px;
    color: var(--quote-color, #007bff);
    position: absolute;
    top: 10px;
    left: 15px;
    opacity: 0.3;
    font-family: serif;
}

.ce-quote p {
    margin: 0;
    padding-left: 30px;
}

/* Divider Styles */
.ce-divider {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 30px 0;
    border-radius: 1px;
}

/* Image Styles */
.ce-image {
    margin: 20px 0;
    text-align: center;
}

.ce-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ce-image-caption {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Link Styles */
.ce-link {
    color: #007bff;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.ce-link:hover {
    color: #0056b3;
}

/* List Styles */
.ce-list {
    margin: 15px 0;
    padding-left: 20px;
}

.ce-list li {
    margin: 6px 0;
    line-height: 1.5;
}

/* Code Styles */
.ce-code {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

.ce-code-block {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ce-timeline-date-section {
        flex: 0 0 120px;
        padding: 20px 12px;
    }
    
    .ce-timeline-day-number {
        width: 35px;
        height: 35px;
    }
    
    .ce-timeline-day-number span {
        font-size: 16px;
    }
    
    .ce-timeline-activities {
        padding: 20px;
    }
    
    .ce-timeline-activity {
        flex-direction: column;
        gap: 4px;
    }
    
    .ce-timeline-activity-time {
        min-width: auto;
    }
    
    .ce-table {
        font-size: 14px;
    }
    
    .ce-table th,
    .ce-table td {
        padding: 8px 12px;
    }
}

/* Print Styles */
@media print {
    .ce-timeline-day-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .ce-table {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .ce-quote {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
