/* HobbyIdeas - Main Stylesheet
 * Compiled from Django static assets
 * Bootstrap 4 + Custom styles
 */

/* Bootstrap */
@import url('bootstrap.min.css');

/* Owl Carousel */
@import url('owl.carousel.min.css');
@import url('owl.theme.default.css');

/* Font Awesome */
@import url('../fontawesome/css/fontawesome.css');
@import url('../fontawesome/css/brands.css');
@import url('../fontawesome/css/solid.css');

/* Core custom styles */
@import url('style.css');
@import url('custom.css');
@import url('responsive.css');
@import url('extra.css');

/* WordPress overrides */
body {
    font-family: 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Grid layouts for archives */
.hi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.hi-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.hi-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hi-card-body {
    padding: 15px;
}

.hi-card-body h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    line-height: 1.3;
}

.hi-card-body h3 a {
    color: #333;
    text-decoration: none;
}

.hi-card-body h3 a:hover {
    color: #47bac1;
}

.hi-card-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.hi-card-meta span {
    margin-right: 12px;
}

.hi-card-meta i {
    margin-right: 4px;
}

.hi-card-excerpt {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* Filter bar */
.hi-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.hi-filters select,
.hi-filters input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.hi-filters input[type="text"] {
    min-width: 250px;
}

/* Single post layout */
.hi-single {
    max-width: 900px;
    margin: 0 auto;
}

.hi-single .hi-post-header {
    margin-bottom: 25px;
}

.hi-single .hi-post-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.hi-single .hi-post-meta {
    font-size: 13px;
    color: #777;
}

.hi-single .hi-post-image {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
}

.hi-single .hi-post-image img {
    width: 100%;
}

.hi-single .hi-post-content {
    font-size: 15px;
    line-height: 1.7;
}

/* Steps (DIY detail) */
.hi-steps {
    margin: 30px 0;
}

.hi-step {
    margin-bottom: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.hi-step h4 {
    margin-bottom: 12px;
    color: #47bac1;
}

.hi-step img {
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Contest tabs */
.hi-tabs {
    margin: 20px 0;
}

.hi-tabs .nav-tabs {
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.hi-tabs .nav-tabs a {
    padding: 10px 20px;
    display: inline-block;
    color: #555;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.hi-tabs .nav-tabs a.active {
    color: #47bac1;
    border-bottom-color: #47bac1;
}

/* Pagination */
.hi-pagination {
    text-align: center;
    padding: 30px 0;
}

.hi-pagination a,
.hi-pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
}

.hi-pagination .current {
    background: #47bac1;
    color: #fff;
    border-color: #47bac1;
}

/* Sidebar */
.hi-sidebar {
    padding-left: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .hi-grid {
        grid-template-columns: 1fr;
    }

    .hi-single .hi-post-header h1 {
        font-size: 22px;
    }

    .hi-sidebar {
        padding-left: 0;
    }
}
