/*
Theme Name: Stars Dark Theme
Description: A dark WordPress theme with animated stars background
Version: 1.0
Author: Claude Code
*/

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

body {
    background: #000000 url('images/ani-stars.gif') repeat;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    min-height: 100vh;
}

header {
    background: rgba(20, 20, 20, 0.9) url('images/core.png') center center no-repeat;
    background-size: cover;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 1px solid #333;
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/core.png') center center no-repeat;
    background-size: cover;
    opacity: 0.5;
    border-radius: 8px;
    z-index: 0;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    z-index: 1;
}

header > * {
    position: relative;
    z-index: 2;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.site-branding {
    flex: 1;
}

.header-gravatar {
    flex-shrink: 0;
}

.user-gravatar {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.user-gravatar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.site-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #c8c8c8;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.site-title a {
    color: #c8c8c8;
    text-decoration: none;
}

.site-title a:hover {
    color: #e0e0e0;
}

.site-description {
    font-size: 1.1rem;
    color: #cccccc;
    margin-top: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    background: rgba(50, 50, 50, 0.8);
    border-radius: 5px;
    transition: background 0.3s ease;
}

nav a:hover {
    background: rgba(80, 80, 80, 0.8);
}

main {
    background: rgba(20, 20, 20, 0.9);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #333;
    margin-bottom: 30px;
}

.post {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
}

.post:last-child {
    border-bottom: none;
}

/* Sticky Post Styles */
.sticky-post {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid #666;
    border-left: 4px solid #888;
    position: relative;
    padding: 40px;
    margin-bottom: 40px;
}

.sticky-label {
    background: rgba(60, 60, 60, 0.9);
    color: #cccccc;
    padding: 12px 20px;
    margin: -40px -40px 25px -40px;
    font-size: 1rem;
    font-weight: normal;
    font-style: italic;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #555;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.post-title-meta {
    flex: 1;
    padding-right: 20px;
}

.post-excerpt {
    margin-top: 15px;
    color: #dddddd;
    line-height: 1.6;
}

.post-excerpt a {
    color: #8dd387;
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
}

.post-excerpt a:hover {
    color: #a8e89c;
    text-decoration: underline;
}

.sticky-post-thumbnail {
    flex-shrink: 0;
    width: 300px;
}

.sticky-post-thumbnail a {
    display: block;
    text-decoration: none;
}

.sticky-featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sticky-featured-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Regular posts - ensure they don't have the header flex layout */
.post:not(.sticky-post) .post-header {
    display: block;
}

.post-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.post-title a {
    color: #ffffff;
    text-decoration: none;
}

.post-title a:hover {
    color: #cccccc;
}

.post-meta {
    color: #999999;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.post-content {
    color: #dddddd;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #ffffff;
    margin: 25px 0 15px 0;
}

.post-content a {
    color: #8dd387;
    text-decoration: none;
}

.post-content a:hover {
    color: #a8e89c;
    text-decoration: underline;
}

.post-content blockquote {
    background: rgba(50, 50, 50, 0.5);
    border-left: 4px solid #666;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
}

.post-content code {
    background: rgba(50, 50, 50, 0.8);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #ffdd66;
}

.post-content pre {
    background: rgba(30, 30, 30, 0.9);
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #444;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #dddddd;
}

.post-featured-image {
    margin: 20px 0;
    text-align: center;
}

.post-featured-image .featured-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

/* Image alignment support */
.post-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.post-content .alignleft {
    float: left;
    margin: 10px 20px 10px 0;
}

.post-content .alignright {
    float: right;
    margin: 10px 0 10px 20px;
}

.post-content .alignnone {
    margin: 20px 0;
}

/* WordPress figure alignment */
.post-content figure.aligncenter {
    margin: 20px auto;
    text-align: center;
}

.post-content figure.alignleft {
    float: left;
    margin: 10px 20px 10px 0;
}

.post-content figure.alignright {
    float: right;
    margin: 10px 0 10px 20px;
}

.post-content figure.alignnone {
    margin: 20px 0;
}

/* Caption styling */
.post-content .wp-caption {
    max-width: 100%;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #444;
    border-radius: 5px;
    padding: 10px;
    margin: 20px 0;
}

.post-content .wp-caption img {
    margin: 0;
    border-radius: 3px;
}

.post-content .wp-caption-text {
    color: #cccccc;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    margin-top: 10px;
    line-height: 1.4;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #666, transparent);
    margin: 40px 0;
    position: relative;
}

.post-content hr::before {
    content: "✦";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20, 20, 20, 0.9);
    color: #888;
    padding: 0 15px;
    font-size: 1.2rem;
}

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

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: rgba(50, 50, 50, 0.8);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #555;
}

.pagination a:hover {
    background: rgba(80, 80, 80, 0.8);
}

.pagination .current {
    background: rgba(100, 100, 100, 0.8);
}

footer {
    background: rgba(20, 20, 20, 0.9);
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #333;
    color: #999999;
}

.widget-area {
    background: rgba(20, 20, 20, 0.9);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    margin-bottom: 20px;
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #333;
}

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

.widget a {
    color: #cccccc;
    text-decoration: none;
}

.widget a:hover {
    color: #ffffff;
}

input[type="text"],
input[type="email"],
input[type="search"],
textarea {
    background: rgba(50, 50, 50, 0.8);
    border: 1px solid #555;
    color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    margin-bottom: 10px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus {
    outline: none;
    border-color: #777;
    background: rgba(60, 60, 60, 0.8);
}

button,
input[type="submit"] {
    background: rgba(80, 80, 80, 0.8);
    color: #ffffff;
    border: 1px solid #666;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover,
input[type="submit"]:hover {
    background: rgba(100, 100, 100, 0.8);
}

/* Comments Styles */
.comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #444;
}

.comments-title {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #444;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
}

.comment-list .children {
    list-style: none;
    margin-left: 40px;
    margin-top: 20px;
}

.comment-body {
    color: #dddddd;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-author img {
    border-radius: 4px;
    border: 1px solid #555;
}

.comment-author strong {
    color: #ffffff;
}

.comment-author a {
    color: #8dd387;
    text-decoration: none;
}

.comment-author a:hover {
    color: #a8e89c;
    text-decoration: underline;
}

.comment-metadata {
    font-size: 0.9rem;
    color: #999;
}

.comment-metadata a {
    color: #999;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: #ccc;
}

.edit-link {
    margin-left: 10px;
}

.comment-content {
    line-height: 1.6;
    margin-bottom: 15px;
}

.comment-content p {
    margin-bottom: 15px;
}

.comment-content a {
    color: #8dd387;
    text-decoration: none;
}

.comment-content a:hover {
    color: #a8e89c;
    text-decoration: underline;
}

.comment-awaiting-moderation {
    background: rgba(80, 60, 20, 0.8);
    color: #ffcc66;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #996600;
    margin-bottom: 15px;
    font-style: italic;
}

.reply {
    text-align: right;
}

.reply a {
    background: rgba(50, 50, 50, 0.8);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #555;
    transition: background 0.3s ease;
}

.reply a:hover {
    background: rgba(70, 70, 70, 0.8);
}

.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #444;
}

.comment-navigation a {
    color: #8dd387;
    text-decoration: none;
    padding: 8px 15px;
    background: rgba(50, 50, 50, 0.8);
    border-radius: 4px;
    border: 1px solid #555;
}

.comment-navigation a:hover {
    background: rgba(70, 70, 70, 0.8);
    color: #a8e89c;
}

.no-comments {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
    background: rgba(30, 30, 30, 0.5);
    border-radius: 4px;
}

/* Comment Form Styles */
.comment-respond {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #444;
}

.comment-reply-title {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.comment-form p {
    margin-bottom: 15px;
}

.comment-form label {
    display: block;
    color: #cccccc;
    margin-bottom: 5px;
    font-weight: 500;
}

.required {
    color: #ff6666;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: rgba(50, 50, 50, 0.8);
    border: 1px solid #555;
    color: #ffffff;
    padding: 10px;
    border-radius: 4px;
    font-family: inherit;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #777;
    background: rgba(60, 60, 60, 0.8);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    margin-top: 20px;
}

.form-submit input[type="submit"] {
    background: rgba(80, 80, 80, 0.8);
    color: #ffffff;
    border: 1px solid #666;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.form-submit input[type="submit"]:hover {
    background: rgba(100, 100, 100, 0.8);
}

@media (max-width: 768px) {
    .site-container {
        padding: 10px;
    }

    header,
    main,
    footer,
    .widget-area {
        padding: 15px;
    }

    .site-title {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        justify-content: center;
    }

    nav a {
        text-align: center;
        min-width: 120px;
        margin: 0 15px;
    }

    .post-title {
        font-size: 1.5rem;
    }

    /* Sticky post responsive styles */
    .post-header {
        flex-direction: column;
        gap: 15px;
    }

    .sticky-post-thumbnail {
        width: 100%;
        margin-left: 0;
        order: -1;
    }

    .sticky-post {
        padding: 25px;
    }

    .sticky-label {
        margin: -25px -25px 20px -25px;
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .post-title-meta {
        padding-right: 0;
    }

    /* Header responsive styles */
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .site-branding {
        order: 2;
    }

    .header-gravatar {
        order: 1;
    }

    /* Comments responsive styles */
    .comment-list .children {
        margin-left: 20px;
    }

    .comment-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .comment-metadata {
        width: 100%;
    }

    .reply {
        text-align: left;
        margin-top: 10px;
    }

    .comment-navigation {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}