:root {
	--fg-dk: #333;
}

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

body {
	font-family: 'Georgia', serif;
	line-height: 1.6;
	color: var(--fg-dk);
	background-color: #f9f9f9;
}

.container {
	width: 90%;
	max-width: 800px;
	margin: 0 auto;
	padding: 0 15px;
}

a {
	color: #5c7cfa;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* Header */
header {
	background-color: #fff;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	padding: 1rem 0;
	margin-bottom: 2rem;
}

header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

header h1 {
	font-size: 1.8rem;
	font-weight: normal;
}

header h1 a {
	color: var(--fg-dk);
}

header h1 a:hover {
	text-decoration: none;
}

nav ul {
	display: flex;
	list-style: none;
}

nav ul li {
	margin-left: 1.5rem;
}

/* Main Content */
main {
	min-height: calc(100vh - 140px);
	padding-bottom: 2rem;
}

h2 {
	margin-bottom: 1.5rem;
	color: var(--fg-dk);
	font-weight: normal;
	font-size: 2rem;
}

/* Poem List */
.poem-list {
	margin-top: 2rem;
}

.poem-card {
	background-color: #fff;
	border-radius: 4px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
	transition: transform 0.2s;
}

.poem-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.poem-card h3 {
	margin-bottom: 0.5rem;
	font-size: 1.4rem;
	font-weight: normal;
}

.poem-meta {
	color: #777;
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.poem-meta time {
	margin-right: 1rem;
}

.tags {
	display: inline-flex;
	flex-wrap: wrap;
}

.tag {
	background-color: #f0f0f0;
	color: #666;
	padding: 0.2rem 0.5rem;
	border-radius: 20px;
	font-size: 0.8rem;
	margin-right: 0.5rem;
	margin-bottom: 0.5rem;
}

/* Single Poem */
.poem-single {
	background-color: #fff;
	border-radius: 4px;
	padding: 2rem;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.poem-single header {
	background: none;
	box-shadow: none;
	padding: 0;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid #eee;
	padding-bottom: 1rem;
}

.poem-single h2 {
	margin-bottom: 0.5rem;
}

.poem-content {
	white-space: pre-line;
	margin-bottom: 2rem;
	line-height: 1.8;
}

.updated {
	font-style: italic;
	margin-left: 1rem;
}

/* Forms */
.form {
	background-color: #fff;
	padding: 2rem;
	border-radius: 4px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.form-group {
	margin-bottom: 1.5rem;
}

label {
	display: block;
	margin-bottom: 0.5rem;
	color: #555;
}

input, textarea {
	width: 100%;
	padding: 0.8rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: inherit;
	font-size: 1rem;
}

textarea {
	resize: vertical;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 0.6rem 1.2rem;
	background-color: #e9ecef;
	color: #495057;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1rem;
	text-decoration: none;
	transition: background 0.2s;
}

.btn:hover {
	background-color: #dee2e6;
	text-decoration: none;
}

.btn-primary {
	background-color: #5c7cfa;
	color: white;
}

.btn-primary:hover {
	background-color: #4c6ef5;
}

.btn-edit {
	background-color: #20c997;
	color: white;
}

.btn-edit:hover {
	background-color: #1db386;
}

.btn-delete {
	background-color: #ff6b6b;
	color: white;
	margin-left: 0.5rem;
}

.btn-delete:hover {
	background-color: #fa5252;
}

/* Admin Actions */
.admin-actions {
	margin-top: 1rem;
}

/* Messages */
.message, .error {
	padding: 1rem;
	border-radius: 4px;
	margin-bottom: 1.5rem;
}

.message {
	background-color: #d4edda;
	color: #155724;
}

.error {
	background-color: #f8d7da;
	color: #721c24;
}

/* Footer */
footer {
	background-color: #fff;
	border-top: 1px solid #eee;
	padding: 1.5rem 0;
	color: #777;
	font-size: 0.9rem;
	text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
	header .container {
		flex-direction: column;
		text-align: center;
	}

	nav ul {
		margin-top: 1rem;
		justify-content: center;
	}

	nav ul li:first-child {
		margin-left: 0;
	}
}
