/* SMTPCheckr Guides Plugin Styles */

.smtpcheckr-guides-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.smtpcheckr-category {
    margin-bottom: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #2271b1;
}

.smtpcheckr-category-title {
    color: #2271b1;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.smtpcheckr-guides-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.smtpcheckr-guides-grid.columns-1 {
    grid-template-columns: 1fr;
}

.smtpcheckr-guides-grid.columns-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.smtpcheckr-guides-grid.columns-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.smtpcheckr-guide-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.smtpcheckr-guide-card:hover {
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.15);
    transform: translateY(-2px);
}

.smtpcheckr-guide-title {
    color: #1e1e1e;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.smtpcheckr-guide-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.smtpcheckr-guide-meta {
    border-top: 1px solid #eee;
    padding-top: 12px;
    font-size: 12px;
    color: #999;
}

.smtpcheckr-guide-id {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

/* Compact List View */
.smtpcheckr-guides-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 30px;
}

.smtpcheckr-guides-list li {
    margin-bottom: 8px;
    break-inside: avoid;
}

.smtpcheckr-guides-list a {
    color: #2271b1;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

.smtpcheckr-guides-list a:hover {
    text-decoration: underline;
    color: #135e96;
}

/* Single Guide Display */
.smtpcheckr-single-guide {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
}

.smtpcheckr-single-guide .smtpcheckr-guide-title {
    font-size: 28px;
    color: #2271b1;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.smtpcheckr-guide-content {
    margin: 20px 0;
    line-height: 1.6;
    color: #333;
}

.smtpcheckr-single-guide .smtpcheckr-guide-meta {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-top: 25px;
}

.smtpcheckr-single-guide .smtpcheckr-guide-meta p {
    margin: 5px 0;
    font-size: 14px;
}

/* Error Messages */
.smtpcheckr-error {
    background: #fff2f2;
    color: #d63384;
    border: 1px solid #f5c2c7;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .smtpcheckr-guides-grid.columns-2,
    .smtpcheckr-guides-grid.columns-3 {
        grid-template-columns: 1fr;
    }
    
    .smtpcheckr-guides-list {
        columns: 1;
    }
    
    .smtpcheckr-category {
        padding: 15px;
    }
    
    .smtpcheckr-single-guide {
        padding: 20px;
    }
    
    .smtpcheckr-category-title {
        font-size: 20px;
    }
    
    .smtpcheckr-single-guide .smtpcheckr-guide-title {
        font-size: 24px;
    }
}

/* WordPress Admin Styles */
.wp-admin .smtpcheckr-guides-container {
    max-width: 1200px;
}

.wp-admin .card {
    background: white;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin: 20px 0;
    padding: 20px;
}

.wp-admin .card h2 {
    margin-top: 0;
    color: #1d2327;
}

.wp-admin .card h3 {
    color: #2271b1;
    margin-top: 25px;
    margin-bottom: 10px;
}

.wp-admin .card ul {
    margin-left: 20px;
}

.wp-admin .card li {
    margin-bottom: 10px;
}

.wp-admin .card code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .smtpcheckr-category {
        background: #2a2a2a;
        border-left-color: #4a9eff;
    }
    
    .smtpcheckr-category-title {
        color: #4a9eff;
        border-bottom-color: #444;
    }
    
    .smtpcheckr-guide-card {
        background: #1e1e1e;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .smtpcheckr-guide-card:hover {
        border-color: #4a9eff;
    }
    
    .smtpcheckr-guide-title {
        color: #f0f0f0;
    }
    
    .smtpcheckr-guide-description {
        color: #ccc;
    }
    
    .smtpcheckr-guide-meta {
        border-top-color: #444;
        color: #999;
    }
    
    .smtpcheckr-guide-id {
        background: #333;
        color: #ccc;
    }
    
    .smtpcheckr-single-guide {
        background: #1e1e1e;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .smtpcheckr-single-guide .smtpcheckr-guide-meta {
        background: #2a2a2a;
        border-color: #444;
    }
}