/* How-To Plugin Styles */
.how-to-content {
    line-height: 1.8;
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
}

.how-to-content p {
    margin-bottom: 1.5em;
}

.how-to-meta {
    margin: 1em 0;
    font-size: 0.9em;
    color: #666;
    line-height: 1.6;
}

.how-to-date,
.how-to-updated {
    display: block;
    margin-bottom: 0.5em;
}

.language-badge {
    background: #0073aa;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: bold;
}

/* Dashboard Widget Styles */
.how-to-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.how-to-stats .stat {
    background: #f6f7f7;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    border-left: 4px solid #0073aa;
}

.how-to-stats .stat strong {
    display: block;
    font-size: 2em;
    color: #0073aa;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .how-to-stats {
        grid-template-columns: 1fr;
    }
    
    .how-to-content {
        font-size: 1em;
        padding: 0 15px;
    }
    
    .how-to-meta {
        font-size: 0.85em;
    }
}

/* Admin Column Styles */
.column-how_to_author,
.column-how_to_category {
    width: 15%;
}

.column-how_to_language {
    width: 10%;
    text-align: center;
}

/* Archive Page Improvements */
.post-type-archive-how-to .page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.post-type-archive-how-to .how-to-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.post-type-archive-how-to .how-to-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Schema Rich Results Styling */
.how-to-steps {
    margin: 2em 0;
    padding: 1.5em;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.how-to-step {
    margin-bottom: 1.5em;
    padding-bottom: 1.5em;
    border-bottom: 1px dashed #ddd;
}

.how-to-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.how-to-step-number {
    background: #0073aa;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
}

/* Material and Tools List */
.how-to-materials,
.how-to-tools {
    background: #f8f9fa;
    padding: 1.5em;
    border-radius: 8px;
    margin: 1.5em 0;
    border-left: 4px solid #28a745;
}

.how-to-tools {
    border-left-color: #ffc107;
}

.how-to-materials h4,
.how-to-tools h4 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 0.5em;
}

.how-to-materials ul,
.how-to-tools ul {
    list-style: none;
    padding: 0;
    margin: 1em 0 0 0;
}

.how-to-materials li,
.how-to-tools li {
    padding: 0.5em 0;
    border-bottom: 1px solid #eee;
}

.how-to-materials li:before,
.how-to-tools li:before {
    content: "•";
    color: #0073aa;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.how-to-materials li:last-child,
.how-to-tools li:last-child {
    border-bottom: none;
}

/* Print Styles for How-To Guides */
@media print {
    .how-to-content {
        font-size: 12pt;
        line-height: 1.6;
    }
    
    .how-to-meta {
        font-size: 10pt;
    }
    
    .how-to-steps,
    .how-to-materials,
    .how-to-tools {
        break-inside: avoid;
    }
}