/**
 * Editor Styles for ChronoCards Ruchir Theme
 * 
 * This file provides styles for the WordPress block editor (Gutenberg)
 */

/* Editor Container */
.editor-styles-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Typography */
.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.editor-styles-wrapper h1 {
    font-size: 2.5rem;
}

.editor-styles-wrapper h2 {
    font-size: 2rem;
}

.editor-styles-wrapper h3 {
    font-size: 1.5rem;
}

.editor-styles-wrapper h4 {
    font-size: 1.25rem;
}

.editor-styles-wrapper h5 {
    font-size: 1.1rem;
}

.editor-styles-wrapper h6 {
    font-size: 1rem;
}

.editor-styles-wrapper p {
    margin-bottom: 1rem;
}

.editor-styles-wrapper a {
    color: #3498db;
    text-decoration: none;
}

.editor-styles-wrapper a:hover {
    text-decoration: underline;
}

/* Lists */
.editor-styles-wrapper ul,
.editor-styles-wrapper ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.editor-styles-wrapper li {
    margin-bottom: 0.5rem;
}

/* Block Elements */
.editor-styles-wrapper .wp-block-quote {
    border-left: 4px solid #3498db;
    padding-left: 1rem;
    margin: 2rem 0;
    font-style: italic;
    color: #7f8c8d;
}

.editor-styles-wrapper .wp-block-code {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    margin: 1rem 0;
}

.editor-styles-wrapper .wp-block-preformatted {
    background: #ecf0f1;
    padding: 1rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    margin: 1rem 0;
}

/* Tables */
.editor-styles-wrapper .wp-block-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.editor-styles-wrapper .wp-block-table th,
.editor-styles-wrapper .wp-block-table td {
    border: 1px solid #bdc3c7;
    padding: 0.5rem;
    text-align: left;
}

.editor-styles-wrapper .wp-block-table th {
    background: #34495e;
    color: #ecf0f1;
    font-weight: 600;
}

/* Images */
.editor-styles-wrapper .wp-block-image {
    margin: 1rem 0;
}

.editor-styles-wrapper .wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.editor-styles-wrapper .wp-block-image figcaption {
    text-align: center;
    font-style: italic;
    color: #7f8c8d;
    margin-top: 0.5rem;
}

/* Galleries */
.editor-styles-wrapper .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.editor-styles-wrapper .wp-block-gallery .wp-block-image {
    margin: 0;
}

/* Buttons */
.editor-styles-wrapper .wp-block-button .wp-block-button__link {
    background: #3498db;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.editor-styles-wrapper .wp-block-button .wp-block-button__link:hover {
    background: #2980b9;
    text-decoration: none;
}

/* Columns */
.editor-styles-wrapper .wp-block-columns {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
}

.editor-styles-wrapper .wp-block-column {
    flex: 1;
}

/* Media & Text */
.editor-styles-wrapper .wp-block-media-text {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
}

.editor-styles-wrapper .wp-block-media-text .wp-block-media-text__media {
    flex: 1;
}

.editor-styles-wrapper .wp-block-media-text .wp-block-media-text__content {
    flex: 1;
    padding: 1rem;
}

/* Group Block */
.editor-styles-wrapper .wp-block-group {
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 1rem 0;
}

/* Cover Block */
.editor-styles-wrapper .wp-block-cover {
    border-radius: 10px;
    margin: 1rem 0;
}

/* Separator */
.editor-styles-wrapper .wp-block-separator {
    border: none;
    height: 2px;
    background: #bdc3c7;
    margin: 2rem 0;
}

/* Spacer */
.editor-styles-wrapper .wp-block-spacer {
    margin: 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .editor-styles-wrapper .wp-block-columns {
        flex-direction: column;
        gap: 1rem;
    }
    
    .editor-styles-wrapper .wp-block-media-text {
        flex-direction: column;
        gap: 1rem;
    }
    
    .editor-styles-wrapper h1 {
        font-size: 2rem;
    }
    
    .editor-styles-wrapper h2 {
        font-size: 1.75rem;
    }
    
    .editor-styles-wrapper h3 {
        font-size: 1.5rem;
    }
}

/* Focus Styles */
.editor-styles-wrapper *:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Selection Styles */
.editor-styles-wrapper ::selection {
    background: #3498db;
    color: #fff;
}

/* Custom Block Styles */
.editor-styles-wrapper .timeline-card-style {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 1rem 0;
    border-left: 4px solid #3498db;
}

.editor-styles-wrapper .milestone-style {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-align: center;
    font-weight: 600;
    margin: 1rem 0;
    display: inline-block;
}
