/* AI Blog System Styles - inspired by ikachi design */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f3e9 0%, #e8ddc7 100%);
    color: #5f4b32;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 2px solid #c4b49a;
}

/* Header */
.header {
    text-align: center;
    border-bottom: 2px solid #c4b49a;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.header h1 {
    color: #5f4b32;
    font-size: 28px;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.header .subtitle {
    color: #7d6b54;
    font-size: 16px;
    margin-top: 5px;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.nav a {
    color: #5f4b32;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8f3e9 0%, #e8ddc7 100%);
    border: 1px solid #c4b49a;
    transition: all 0.3s ease;
    font-weight: bold;
}

.nav a:hover, .nav a.active {
    background: linear-gradient(135deg, #8c7055 0%, #a18665 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Search and sidebar */
.main-content {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.content {
    flex: 2;
}

.sidebar {
    flex: 1;
    min-width: 300px;
}

.sidebar-section {
    background: linear-gradient(135deg, #f8f3e9 0%, #e8ddc7 100%);
    border: 2px solid #c4b49a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar-section h3 {
    color: #5f4b32;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #c4b49a;
    padding-bottom: 8px;
}

/* Search form */
.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #c4b49a;
    border-radius: 5px;
    background: rgba(255,255,255,0.9);
}

.search-form button {
    padding: 10px 15px;
    background: linear-gradient(135deg, #8c7055 0%, #a18665 100%);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form button:hover {
    background: linear-gradient(135deg, #a18665 0%, #b8976b 100%);
    transform: translateY(-1px);
}

/* Tag cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: linear-gradient(135deg, #8c7055 0%, #a18665 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #5f4b32;
}

.tag:hover {
    background: linear-gradient(135deg, #a18665 0%, #b8976b 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.tag.popular {
    font-size: 16px;
    font-weight: bold;
}

/* Calendar */
.calendar {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.calendar th, .calendar td {
    padding: 8px 4px;
    text-align: center;
    border: 1px solid #c4b49a;
    font-size: 14px;
}

.calendar th {
    background: linear-gradient(135deg, #8c7055 0%, #a18665 100%);
    color: white;
    font-weight: bold;
}

.calendar td {
    background: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar td:hover {
    background: #e8ddc7;
}

.calendar td.has-post {
    background: linear-gradient(135deg, #a18665 0%, #b8976b 100%);
    color: white;
    font-weight: bold;
}

.calendar td.has-post:hover {
    background: linear-gradient(135deg, #b8976b 0%, #c4a572 100%);
}

/* Blog posts */
.post {
    background: rgba(255,255,255,0.9);
    border: 1px solid #c4b49a;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.post-title {
    color: #5f4b32;
    font-size: 24px;
    margin: 0 0 10px 0;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.post-title:hover {
    color: #8c7055;
}

.post-meta {
    color: #7d6b54;
    font-size: 14px;
    margin-bottom: 15px;
    border-bottom: 1px dotted #c4b49a;
    padding-bottom: 10px;
}

.post-content {
    line-height: 1.6;
    color: #5f4b32;
}

.post-tags {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.post-tag {
    background: linear-gradient(135deg, #c4b49a 0%, #d4c4a9 100%);
    color: #5f4b32;
    padding: 3px 8px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.post-tag:hover {
    background: linear-gradient(135deg, #8c7055 0%, #a18665 100%);
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.pagination a, .pagination .current {
    padding: 10px 15px;
    border: 1px solid #c4b49a;
    border-radius: 5px;
    text-decoration: none;
    color: #5f4b32;
    background: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: linear-gradient(135deg, #8c7055 0%, #a18665 100%);
    color: white;
}

.pagination .current {
    background: linear-gradient(135deg, #8c7055 0%, #a18665 100%);
    color: white;
    font-weight: bold;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #5f4b32;
    font-weight: bold;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #c4b49a;
    border-radius: 5px;
    background: rgba(255,255,255,0.9);
    font-size: 14px;
}

.form-group textarea {
    height: 200px;
    resize: vertical;
}

.btn {
    background: linear-gradient(135deg, #8c7055 0%, #a18665 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid #5f4b32;
}

.btn:hover {
    background: linear-gradient(135deg, #a18665 0%, #b8976b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: linear-gradient(135deg, #c4b49a 0%, #d4c4a9 100%);
    color: #5f4b32;
    border-color: #c4b49a;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #8c7055 0%, #a18665 100%);
    color: white;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        min-width: auto;
    }
    
    .nav {
        gap: 15px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .post {
        padding: 15px;
    }
    
    .post-title {
        font-size: 20px;
    }
}

/* Admin styles */
.admin-container {
    max-width: 800px;
    margin: 0 auto;
}

.admin-nav {
    background: linear-gradient(135deg, #8c7055 0%, #a18665 100%);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    font-weight: bold;
}

.admin-nav a:hover {
    text-decoration: underline;
}

.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}