/* Content Layout Plugin - Main Styles */

/* Base plugin styles */
.clp-container {
    line-height: 1.6;
    color: #333;
}

.clp-container * {
    box-sizing: border-box;
}

/* Content Layout Specific Styles */
.clp-prose {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.clp-main-title {
    color: #111827;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.clp-main-content {
    font-size: 1.125rem;
    line-height: 1.7777778;
    color: #374151;
}

.clp-main-content p {
    margin-top: 1.3333333em;
    margin-bottom: 1.3333333em;
}

.clp-main-content strong {
    color: #111827;
    font-weight: 600;
}

/* Menu Container Styles */
.clp-menu-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.clp-menu-icon {
    flex-shrink: 0;
}

.clp-menu-icon svg {
    width: 24px;
    height: 24px;
    color: #0284c7;
}

.clp-menu-title {
    color: #111827;
    font-weight: 700;
    margin: 0;
}

.clp-menu-description {
    color: #6b7280;
    margin: 0;
    font-size: 0.875rem;
}

.clp-menu-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.clp-menu-item {
    display: flex;
    align-items: flex-start;
    padding: 0.5rem 0;
    text-decoration: none;
    color: #0000EE;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 0.375rem;
}

.clp-menu-item:hover {
    color: #0284c7;
    background-color: rgba(2, 132, 199, 0.05);
    text-decoration: underline;
}

.clp-menu-item span:first-child {
    flex-shrink: 0;
    margin-right: 0.5rem;
    font-weight: 700;
    color: #0284c7;
}

.clp-menu-item span:last-child {
    flex: 1;
    line-height: 1.4;
}

/* Error Styles */
.clp-container .error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .clp-container {
        padding: 1rem;
    }
    
    .clp-main-content {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .clp-menu-list {
        font-size: 0.875rem;
    }
    
    .clp-menu-item {
        padding: 0.375rem 0;
    }
}

@media (max-width: 768px) {
    .clp-container {
        padding: 0.75rem;
    }
    
    .clp-main-title {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    
    .clp-main-content {
        font-size: 0.9375rem;
        line-height: 1.5;
    }
    
    .clp-menu-list {
        font-size: 0.8125rem;
    }
    
    .clp-menu-item {
        padding: 0.25rem 0;
    }
    
    .clp-menu-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Animation and Transitions */
.clp-menu-container {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clp-menu-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.clp-menu-item {
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.clp-menu-item:hover {
    transform: translateX(4px);
}

/* Focus Styles for Accessibility */
.clp-menu-item:focus {
    outline: 2px solid #0284c7;
    outline-offset: 2px;
    background-color: rgba(2, 132, 199, 0.1);
}

/* Print Styles */
@media print {
    .clp-container {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .clp-menu-container {
        border: 1pt solid #000;
        background: transparent !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    
    .clp-menu-item {
        color: #000 !important;
        page-break-inside: avoid;
    }
    
    .clp-menu-item:hover {
        background: transparent !important;
        text-decoration: underline !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .clp-menu-container {
        border-width: 2px;
    }
    
    .clp-menu-item {
        font-weight: 700;
    }
    
    .clp-menu-item:focus {
        outline-width: 3px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .clp-menu-container,
    .clp-menu-item {
        transition: none;
    }
    
    .clp-menu-container:hover,
    .clp-menu-item:hover {
        transform: none;
    }
}

/* Dark Mode Support (if theme supports it) */
@media (prefers-color-scheme: dark) {
    .clp-container {
        color: #e5e7eb;
    }
    
    .clp-main-title {
        color: #f9fafb;
    }
    
    .clp-main-content {
        color: #d1d5db;
    }
    
    .clp-main-content strong {
        color: #f9fafb;
    }
    
    .clp-menu-title {
        color: #f9fafb;
    }
    
    .clp-menu-description {
        color: #9ca3af;
    }
    
    .clp-menu-container {
        background-color: #1f2937 !important;
        border-color: #374151 !important;
    }
    
    .clp-menu-item {
        color: #60a5fa !important;
    }
    
    .clp-menu-item:hover {
        color: #93c5fd !important;
        background-color: rgba(96, 165, 250, 0.1);
    }
}

/* RTL Support */
[dir="rtl"] .clp-menu-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .clp-menu-item span:first-child {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .clp-menu-item:hover {
    transform: translateX(-4px);
}
