/* ========================================
   Base Styles
   ======================================== */

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

body {
    font-family: Helvetica, Arial, sans-serif;
    background: #fff;
    color: #000;
    line-height: 1.6;
}

a {
    color: #0000EE;
    text-decoration: underline;
}

a:visited {
    color: #0000EE;
}

a:hover {
    color: #0000EE;
}

/* ========================================
   Home Page - Navigation
   ======================================== */

.home-container {
    display: flex;
    align-items: flex-start;
    height: 100vh;
    padding: 60px;
    overflow: hidden;
}

.home-nav {
    position: fixed;
    left: 60px;
    top: 60px;
}

.home-nav ul {
    list-style: none;
}

.home-nav li {
    margin-bottom: 16px;
}

.home-nav a {
    font-size: 32px;
    color: #0000EE;
    text-decoration: underline;
    font-weight: normal;
    letter-spacing: 0.02em;
}

.home-nav a:visited {
    color: #0000EE;
}

.home-nav a:hover {
    opacity: 0.7;
}

/* ASCII Swan */
.swan-ascii {
    position: fixed;
    bottom: 20px;
    right: 30px;
    font-family: monospace;
    font-size: 10px;
    line-height: 1.15;
    color: #000;
    margin: 0;
    pointer-events: none;
    user-select: none;
}

/* ========================================
   Back Arrow
   ======================================== */

.back-arrow {
    position: fixed;
    left: 30px;
    top: 30px;
    font-size: 20px;
    color: #0000EE;
    text-decoration: none;
    z-index: 100;
    line-height: 1;
}

.back-arrow:visited {
    color: #0000EE;
}

.back-arrow:hover {
    opacity: 0.7;
}

/* ========================================
   Inner Pages - Layout (no sidebar nav)
   ======================================== */

.page-container {
    min-height: 100vh;
}

.page-content {
    padding: 30px 60px 80px 80px;
    max-width: 700px;
    font-size: 16px;
    line-height: normal;
}

/* ========================================
   Blog
   ======================================== */

.blog-entry {
    margin-bottom: 50px;
}

.blog-entry-date {
    font-size: 16px;
    color: #000;
    margin-bottom: 6px;
}

.blog-entry-body {
    font-size: 16px;
    line-height: normal;
}

.blog-entry-body p {
    margin-bottom: 1.2em;
}

.blog-entry-body img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    display: block;
}

.blog-entry-body h2 {
    font-size: 16px;
    font-weight: normal;
    text-decoration: underline;
    margin: 1.5em 0 0.8em;
}

.blog-entry-body h3 {
    font-size: 14px;
    font-weight: bold;
    margin: 1.2em 0 0.6em;
}

.blog-entry-body blockquote {
    border-left: 2px solid #ccc;
    padding-left: 16px;
    margin: 1.2em 0;
    color: #444;
    font-style: italic;
}

.blog-entry-body a {
    color: #0000EE;
}

/* ========================================
   References
   ======================================== */

.tag-dropdown {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.tag-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: #0000EE;
    background: none;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 2px;
}

.tag-dropdown-toggle:hover {
    border-color: #0000EE;
}

.tag-dropdown-arrow {
    font-size: 10px;
}

.tag-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 2px;
    min-width: 120px;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tag-dropdown-menu.open {
    display: block;
}

.tag-dropdown-item {
    padding: 6px 12px;
    font-size: 12px;
    color: #000;
    cursor: pointer;
    font-family: Helvetica, Arial, sans-serif;
}

.tag-dropdown-item:hover {
    background: #f5f5f5;
    color: #0000EE;
}

.tag-dropdown-item.active {
    background: #0000EE;
    color: #fff;
}

.ref-entry {
    margin-bottom: 14px;
    font-size: 16px;
    line-height: normal;
}

.ref-entry-date {
    color: #000;
}

.ref-entry a {
    color: #0000EE;
}

.ref-entry-tags {
    display: inline;
    margin-left: 6px;
}

.ref-tag {
    font-size: 11px;
    color: #888;
    background: #f5f5f5;
    padding: 1px 5px;
    border-radius: 2px;
    margin-left: 4px;
}

.ref-entry.hidden {
    display: none;
}

/* ========================================
   Elsewhere
   ======================================== */

.elsewhere-list {
    list-style: none;
}

.elsewhere-list li {
    margin-bottom: 14px;
    font-size: 16px;
}

.elsewhere-list a {
    color: #0000EE;
}

/* ========================================
   Art Page - Horizontal Carousel
   ======================================== */

.art-container {
    min-height: 100vh;
}

.art-carousel-wrapper {
    margin-left: 80px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 30px 40px 40px 0;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    cursor: grab;
}

.art-carousel-wrapper:active {
    cursor: grabbing;
}

.art-carousel {
    display: inline-flex;
    gap: 40px;
    align-items: flex-start;
    height: calc(100vh - 80px);
}

.art-item {
    display: inline-flex;
    flex-direction: column;
    flex-shrink: 0;
    white-space: normal;
    max-width: 500px;
    height: 100%;
}

.art-item img {
    max-height: calc(100% - 50px);
    width: auto;
    max-width: 500px;
    object-fit: contain;
    display: block;
}

.art-caption {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    line-height: 1.4;
    max-width: 300px;
}

/* Scrollbar styling */
.art-carousel-wrapper::-webkit-scrollbar {
    height: 6px;
}

.art-carousel-wrapper::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.art-carousel-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* ========================================
   Admin Styles
   ======================================== */

.admin-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
}

.admin-container h1 {
    font-size: 20px;
    font-weight: normal;
    margin-bottom: 30px;
}

.admin-login {
    max-width: 300px;
    margin: 100px auto;
}

.admin-login h1 {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 20px;
}

.admin-login input[type="password"] {
    width: 100%;
    padding: 8px 10px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    border: 1px solid #ccc;
    margin-bottom: 12px;
}

.admin-login button {
    padding: 8px 20px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
}

.admin-login button:hover {
    background: #333;
}

.admin-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.admin-bar a {
    font-size: 13px;
    color: #0000EE;
}

.admin-post-list {
    list-style: none;
}

.admin-post-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-post-list .post-info a {
    color: #0000EE;
    font-size: 14px;
}

.admin-post-list .post-info .date {
    font-size: 12px;
    color: #888;
    margin-left: 10px;
}

.admin-post-list .post-actions a {
    font-size: 12px;
    margin-left: 12px;
}

.admin-post-list .post-actions .delete {
    color: #cc0000;
}

/* Editor */
.editor-form label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.editor-form input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
}

.editor-form .slug-field {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.editor-form .slug-field input {
    font-size: 13px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    width: 300px;
    font-family: Helvetica, Arial, sans-serif;
}

.editor-form .tags-field {
    margin-bottom: 20px;
}

.editor-form .tags-field input {
    font-size: 13px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    width: 300px;
    font-family: Helvetica, Arial, sans-serif;
}

#editor-container {
    border: 1px solid #ccc;
    min-height: 400px;
    margin-bottom: 20px;
}

#editor-container .ql-editor {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    min-height: 380px;
}

.editor-form button[type="submit"] {
    padding: 10px 30px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
}

.editor-form button[type="submit"]:hover {
    background: #333;
}

.editor-form .error {
    color: #cc0000;
    font-size: 13px;
    margin-bottom: 15px;
}

.editor-form .success {
    color: #228B22;
    font-size: 13px;
    margin-bottom: 15px;
}

/* Admin tabs */
.admin-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.admin-tabs a {
    font-size: 14px;
    color: #888;
    text-decoration: none;
}

.admin-tabs a.active {
    color: #000;
    text-decoration: underline;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 700px) {
    .home-container {
        padding: 30px;
    }

    .home-nav {
        left: 30px;
        top: 30px;
    }

    .back-arrow {
        left: 20px;
        top: 20px;
    }

    .page-content {
        padding: 60px 30px 60px 30px;
        max-width: 100%;
    }

    .art-carousel-wrapper {
        margin-left: 0;
        padding: 60px 30px 30px 30px;
    }
}
