/* ========== Reset & Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: #f5f5f8;
    color: #222;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 10px;
}

/* ========== NAVIGATION ========== */
nav {
    background: #1a1a1a;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    color: #f5f5f5;
    margin: 0 18px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #ffcc00;
    transform: scale(1.05);
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(120deg, #7b61ff, #00d4ff);
    color: white;
    text-align: center;
    padding: 80px 20px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.hero h1 {
    font-size: 3em;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2em;
    font-weight: 400;
}

/* ========== CONTENT LAYOUT ========== */
.content {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ========== POST CARDS ========== */
.post-preview, .post {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-preview:hover, .post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.post-title {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
}

.post-date {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 10px;
}

.post-preview div:first-of-type, .post div:first-of-type {
    margin-bottom: 10px;
}

/* ========== FORMS (EDITOR) ========== */
input[type="text"], textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1em;
    transition: all 0.3s ease;
}

input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: #7b61ff;
    box-shadow: 0 0 8px rgba(123,97,255,0.3);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

button {
    background: #7b61ff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: #5c3fe5;
    transform: scale(1.05);
}

/* ========== ABOUT PAGE ========== */
.content section {
    margin-bottom: 40px;
}

.content section h2 {
    font-size: 1.8em;
    color: #7b61ff;
    margin-bottom: 10px;
    border-bottom: 2px solid #00d4ff;
    display: inline-block;
    padding-bottom: 4px;
}

.content section p, .content section ul {
    font-size: 1em;
    margin-top: 8px;
}

.content section ul li {
    margin-bottom: 6px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media(max-width: 768px){
    .hero h1 { font-size: 2.4em; }
    nav a { margin: 0 10px; font-size: 14px; }
    .post-title { font-size: 1.3em; }
}