/* Old School Horror Theme */
@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Nosifer&family=Special+Elite&display=swap');

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

body {
    background-color: #0a0a0a;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(75, 0, 130, 0.1) 0%, transparent 50%);
    color: #d4d4d4;
    font-family: 'Special Elite', monospace;
    line-height: 1.6;
    min-height: 100vh;
    background-attachment: fixed;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 3px solid #8b0000;
    margin-bottom: 30px;
    background: linear-gradient(180deg, rgba(139, 0, 0, 0.2) 0%, transparent 100%);
}

.title {
    font-family: 'Creepster', cursive;
    font-size: 3em;
    color: #ff4500;
    text-shadow: 
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        0 0 30px #8b0000,
        3px 3px 0px #000;
    letter-spacing: 3px;
    margin-bottom: 10px;
    animation: flicker 3s infinite alternate;
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 10px #ff0000,
            0 0 20px #ff0000,
            0 0 30px #8b0000,
            3px 3px 0px #000;
    }
    20%, 24%, 55% {
        text-shadow: 3px 3px 0px #000;
    }
}

.tagline {
    font-size: 1.2em;
    color: #999;
    font-style: italic;
    letter-spacing: 2px;
}

/* RSS Feed Input */
.rss-feed-input {
    background: rgba(139, 0, 0, 0.2);
    border: 2px solid #8b0000;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    text-align: center;
}

.rss-feed-input label {
    display: block;
    color: #ff6347;
    font-size: 1.1em;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.rss-feed-input input {
    width: 70%;
    padding: 12px;
    background: #1a1a1a;
    border: 2px solid #444;
    color: #d4d4d4;
    font-family: 'Special Elite', monospace;
    font-size: 1em;
    border-radius: 3px;
    margin-right: 10px;
}

.rss-feed-input input:focus {
    outline: none;
    border-color: #ff4500;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.3);
}

.rss-feed-input button {
    padding: 12px 25px;
    background: #8b0000;
    color: #fff;
    border: 2px solid #ff0000;
    font-family: 'Special Elite', monospace;
    font-size: 1em;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s;
}

.rss-feed-input button:hover {
    background: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* Loading and Error */
.loading, .error {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.loading {
    background: rgba(75, 0, 130, 0.2);
    border: 2px solid #4b0082;
    color: #9370db;
    font-size: 1.2em;
}

.error {
    background: rgba(139, 0, 0, 0.3);
    border: 2px solid #ff0000;
    color: #ff6347;
}

/* Stories */
.stories {
    margin: 30px 0;
}

.story {
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid #444;
    border-left: 5px solid #8b0000;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 5px;
    transition: all 0.3s;
}

.story:hover {
    border-left-color: #ff0000;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.5),
        -5px 0 15px rgba(139, 0, 0, 0.3);
    transform: translateX(5px);
}

.story-title {
    margin-bottom: 10px;
}

.story-title a {
    color: #ff6347;
    text-decoration: none;
    font-size: 1.5em;
    font-family: 'Special Elite', monospace;
    transition: color 0.3s;
}

.story-title a:hover {
    color: #ff4500;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

.story-date {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 15px;
    font-style: italic;
}

.story-description {
    color: #c0c0c0;
    line-height: 1.8;
}

.story-description p {
    margin-bottom: 10px;
}

.no-stories {
    text-align: center;
    color: #666;
    font-size: 1.2em;
    padding: 40px;
    font-style: italic;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 3px solid #8b0000;
    margin-top: 50px;
    color: #666;
}

footer p {
    margin: 10px 0;
}

.footer-links {
    font-size: 1em;
}

.footer-links a {
    color: #ff6347;
    text-decoration: none;
    transition: all 0.3s;
    padding: 5px 10px;
}

.footer-links a:hover {
    color: #ff4500;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

.footer-links .separator {
    color: #444;
    margin: 0 5px;
}

.small {
    font-size: 0.8em;
}

/* 404 Error Page */
.error-page {
    text-align: center;
    padding: 60px 20px;
}

.error-title {
    font-family: 'Nosifer', cursive;
    font-size: 6em;
    color: #ff0000;
    text-shadow: 
        0 0 20px #ff0000,
        0 0 40px #8b0000,
        5px 5px 0px #000;
    margin-bottom: 20px;
}

.error-subtitle {
    font-family: 'Creepster', cursive;
    font-size: 2.5em;
    color: #ff4500;
    margin-bottom: 20px;
}

.error-message {
    font-size: 1.3em;
    color: #999;
    margin-bottom: 30px;
    line-height: 1.8;
}

.skull-ascii {
    color: #8b0000;
    margin: 40px 0;
}

.skull-ascii pre {
    font-family: monospace;
    font-size: 1.2em;
    display: inline-block;
}

.home-link {
    display: inline-block;
    padding: 15px 30px;
    background: #8b0000;
    color: #fff;
    text-decoration: none;
    border: 2px solid #ff0000;
    border-radius: 5px;
    font-size: 1.2em;
    transition: all 0.3s;
    margin-top: 20px;
}

.home-link:hover {
    background: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    transform: scale(1.05);
}

/* Read More Link */
.read-more {
    margin-top: 15px;
    text-align: right;
}

.read-more a {
    color: #ff4500;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s;
}

.read-more a:hover {
    color: #ff6347;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin: 20px 0;
}

.breadcrumb a {
    color: #ff6347;
    text-decoration: none;
    font-size: 1.1em;
    transition: all 0.3s;
    display: inline-block;
}

.breadcrumb a:hover {
    color: #ff4500;
    transform: translateX(-5px);
}

/* Post Content Page */
.post-content {
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid #444;
    border-left: 5px solid #8b0000;
    padding: 30px;
    margin: 30px 0;
    border-radius: 5px;
}

.post-header {
    border-bottom: 2px solid #444;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.post-title {
    font-size: 2.5em;
    color: #ff6347;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-meta {
    color: #888;
    font-size: 1em;
}

.post-date {
    font-style: italic;
}

.post-author {
    color: #999;
}

.post-body {
    color: #d4d4d4;
    font-size: 1.1em;
    line-height: 1.8;
}

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

.post-body h1, .post-body h2, .post-body h3 {
    color: #ff6347;
    margin: 30px 0 15px 0;
}

.post-body h1 {
    font-size: 2em;
}

.post-body h2 {
    font-size: 1.7em;
}

.post-body h3 {
    font-size: 1.4em;
}

.post-body a {
    color: #ff4500;
    text-decoration: underline;
}

.post-body a:hover {
    color: #ff6347;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border: 2px solid #444;
    border-radius: 5px;
    margin: 20px 0;
}

.post-body blockquote {
    border-left: 4px solid #8b0000;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #aaa;
}

.post-body code {
    background: #1a1a1a;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    color: #ff6347;
}

.post-body pre {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #444;
    overflow-x: auto;
    margin: 20px 0;
}

.post-body pre code {
    padding: 0;
    background: none;
}

/* Call to Action Section */
.cta-section {
    margin-top: 40px;
    padding: 30px;
    border-top: 2px solid #444;
    background: rgba(139, 0, 0, 0.1);
    border-radius: 5px;
    text-align: center;
}

.cta-title {
    color: #ff6347;
    font-size: 1.8em;
    margin-bottom: 15px;
    font-family: 'Special Elite', monospace;
}

.cta-text {
    color: #aaa;
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.cta-button.primary {
    background: #8b0000;
    color: #fff;
    border-color: #ff0000;
}

.cta-button.primary:hover {
    background: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    transform: translateY(-3px);
}

.cta-button.secondary {
    background: transparent;
    color: #ff6347;
    border-color: #ff6347;
}

.cta-button.secondary:hover {
    background: rgba(255, 99, 71, 0.1);
    color: #ff4500;
    border-color: #ff4500;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.3);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2em;
    }
    
    .rss-feed-input input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .rss-feed-input button {
        width: 100%;
    }
    
    .error-title {
        font-size: 4em;
    }
    
    .error-subtitle {
        font-size: 1.8em;
    }

    .post-title {
        font-size: 1.8em;
    }

    .post-content {
        padding: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cta-button {
        width: 100%;
    }
}

