/**
 * News Website Pro - Common Frontend Styles
 */

/* CSS Custom Properties */
:root {
    --nwp-primary: #667eea;
    --nwp-primary-dark: #5a67d8;
    --nwp-secondary: #764ba2;
    --nwp-success: #4caf50;
    --nwp-warning: #ff9800;
    --nwp-error: #f44336;
    --nwp-info: #2196f3;
    --nwp-text: #333;
    --nwp-text-light: #666;
    --nwp-border: #e5e5e5;
    --nwp-bg-light: #f8f9fa;
    --nwp-radius: 8px;
    --nwp-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Callout Block Frontend */
.nwp-callout {
    border-radius: var(--nwp-radius);
    padding: 16px;
    margin: 20px 0;
}

.nwp-callout-inner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.nwp-callout-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.nwp-callout-content {
    flex: 1;
}

.nwp-callout-title {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 600;
}

.nwp-callout-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.nwp-callout-info {
    background: #e7f3ff;
    border-left: 4px solid var(--nwp-info);
}

.nwp-callout-warning {
    background: #fff8e1;
    border-left: 4px solid var(--nwp-warning);
}

.nwp-callout-error {
    background: #ffebee;
    border-left: 4px solid var(--nwp-error);
}

.nwp-callout-success {
    background: #e8f5e9;
    border-left: 4px solid var(--nwp-success);
}

.nwp-callout-note {
    background: #f3e5f5;
    border-left: 4px solid #9c27b0;
}

.nwp-callout-tip {
    background: #fffde7;
    border-left: 4px solid #ffc107;
}

/* Key Points Block Frontend */
.nwp-key-points {
    background: var(--nwp-bg-light);
    border-radius: var(--nwp-radius);
    padding: 24px;
    margin: 24px 0;
    border: 1px solid var(--nwp-border);
}

.nwp-key-points-title {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--nwp-text);
}

.nwp-key-points-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nwp-key-points-list li {
    position: relative;
    padding: 10px 0 10px 24px;
    border-bottom: 1px solid var(--nwp-border);
    font-size: 15px;
    line-height: 1.5;
}

.nwp-key-points-list li:last-child {
    border-bottom: none;
}

.nwp-key-points-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--nwp-primary);
    border-radius: 50%;
}

/* Timeline Block Frontend */
.nwp-timeline {
    margin: 24px 0;
}

.nwp-timeline-events {
    position: relative;
    padding-left: 30px;
}

.nwp-timeline-events::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--nwp-primary), var(--nwp-secondary));
}

.nwp-timeline-event {
    position: relative;
    padding: 16px 0;
    padding-left: 24px;
}

.nwp-timeline-event::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 20px;
    width: 14px;
    height: 14px;
    background: var(--nwp-primary);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: var(--nwp-shadow);
}

.nwp-timeline-date {
    display: inline-block;
    background: var(--nwp-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}

.nwp-timeline-event-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--nwp-text);
}

.nwp-timeline-event p {
    margin: 0;
    font-size: 14px;
    color: var(--nwp-text-light);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 600px) {
    .nwp-callout {
        padding: 12px;
    }
    
    .nwp-key-points {
        padding: 16px;
    }
    
    .nwp-timeline-events {
        padding-left: 24px;
    }
}
