/*
Theme Name: Custom Theme
Author: G-logs
Version: 1.0
*/

:root {
    --primary: #1a1a2e;
    --accent: #e94560;
    --bg: #f0f2f5;
    --card: #ffffff;
    --text: #2d2d3a;
    --muted: #6b7280;
    --border: #e5e7eb;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 15px;
}

a { color: var(--accent); text-decoration: none; transition: all 0.2s; }
a:hover { opacity: 0.8; }

/* Header */
.site-header {
    background: var(--primary);
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.site-header .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.site-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.site-title a { color: #fff; }

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 28px;
}

.main-navigation a {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-navigation a:hover { color: #fff; }

/* Layout */
.site-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 24px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.content-area {
    flex: 1;
    min-width: 0;
}

/* Cards */
.post-card, .page-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.entry-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--primary);
}

.entry-title a { color: var(--primary); }
.entry-title a:hover { color: var(--accent); }

.entry-meta {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
}

.entry-summary {
    color: var(--text);
    line-height: 1.8;
}

.entry-summary p { margin-bottom: 12px; }

.read-more {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.read-more:hover { background: var(--accent); color: #fff; }

/* Page Title */
.page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.page-content {
    font-size: 15px;
    line-height: 1.9;
}

.page-content p { margin-bottom: 16px; }

/* Navigation */
.nav-links {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.nav-previous a, .nav-next a {
    padding: 10px 20px;
    background: var(--card);
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-weight: 600;
    font-size: 13px;
    color: var(--primary);
}

.nav-previous a:hover, .nav-next a:hover {
    background: var(--accent);
    color: #fff;
}

/* Sidebar */
.widget-area {
    width: 300px;
    flex-shrink: 0;
}

.widget {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.widget ul { list-style: none; }
.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.widget ul li:last-child { border-bottom: none; }

.widget a { color: var(--text); font-weight: 500; }
.widget a:hover { color: var(--accent); }

.widget_search input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 14px;
}

.widget_search button {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.widget_search button:hover { background: var(--accent); }

/* Footer */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 28px 24px;
    margin-top: 40px;
    font-size: 13px;
}

/* Not found */
.no-results {
    text-align: center;
    padding: 60px 32px;
}

.no-results .page-title { border: none; font-size: 20px; }

/* Responsive */
@media (max-width: 768px) {
    .site-wrapper { flex-direction: column; }
    .widget-area { width: 100%; }
    .site-header .container { flex-direction: column; height: auto; padding: 16px; gap: 12px; }
    .main-navigation ul { flex-wrap: wrap; justify-content: center; gap: 16px; }
    .post-card, .page-card, .widget { padding: 20px; }
}
