/* HERO & SEARCH */

.hero { text-align: center; padding: 4rem 2rem 2rem; }

.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; background: linear-gradient(135deg, #ffffff, #667eea); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.hero p { color: rgba(255,255,255,0.6); font-size: 1.1rem; margin-bottom: 2rem; }

.search-wrapper { display: grid; grid-template-columns: minmax(0, 1fr) 180px auto; gap: 0.6rem; max-width: 820px; margin: 0 auto 3rem; position: relative; }

.search-input { width: 100%; min-height: 48px; padding: 0 1rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #fff; font-size: 1rem; outline: none; transition: 0.3s; }

.search-wrapper .search-input:first-of-type { padding-left: 48px; }

.search-input:focus { border-color: #667eea; background: rgba(255,255,255,0.1); box-shadow: 0 0 15px rgba(102, 126, 234, 0.2); }

.search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.5); }

.search-btn { padding: 0 20px; border-radius: 8px; background: linear-gradient(135deg, #667eea, #764ba2); border: none; color: white; cursor: pointer; font-weight: bold; transition: 0.3s; }

.search-btn:hover { transform: scale(1.05); }

/* BLOG GRID */

.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem 4rem; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2rem; }

.blog-card { 
            background: rgba(255, 255, 255, 0.03); 
            border: 1px solid rgba(255, 255, 255, 0.1); 
            border-radius: 20px; 
            overflow: hidden; 
            transition: 0.3s; 
            text-decoration: none; 
            display: flex; flex-direction: column;
            height: 100%;
        }

.blog-card:hover { transform: translateY(-10px); border-color: #667eea; background: rgba(255, 255, 255, 0.05); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

.blog-thumb { width: 100%; height: 220px; object-fit: cover; border-bottom: 1px solid rgba(255,255,255,0.05); }

.blog-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }

.blog-title { color: #fff; font-size: 1.4rem; font-weight: 700; margin-bottom: 0.8rem; line-height: 1.4; }

.blog-category {
    display: inline-flex;
    width: max-content;
    margin-bottom: 0.7rem;
    padding: 4px 8px;
    border: 1px solid rgba(102, 126, 234, 0.28);
    border-radius: 8px;
    color: #a5b4fc;
    background: rgba(102, 126, 234, 0.12);
    font-size: 0.78rem;
    font-weight: 800;
}

.blog-excerpt { color: rgba(255,255,255,0.6); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.5rem; flex-grow: 1; }

.blog-meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; color: rgba(255,255,255,0.4); font-size: 0.85rem; }

.blog-author i, .blog-date i { color: #667eea; margin-right: 5px; }

/* ADMIN BAR */

.admin-bar { background: rgba(102, 126, 234, 0.1); border: 1px dashed #667eea; border-radius: 15px; padding: 1rem; margin-bottom: 2rem; display: flex; justify-content: space-between; align-items: center; }

.admin-links a { margin-left: 10px; color: #fff; text-decoration: none; padding: 8px 15px; background: rgba(255,255,255,0.1); border-radius: 8px; font-size: 0.9rem; transition: 0.3s; }

.admin-links a:hover { background: #667eea; }

@media (max-width: 768px) { .blog-grid, .search-wrapper { grid-template-columns: 1fr; } .search-icon { display: none; } .search-wrapper .search-input:first-of-type { padding-left: 1rem; } }
