/* Blog Styles für Crypal.io */

/* Blog Übersicht */
.blog-header {
    text-align: center;
    padding: 0px 20px 50px;  /* Reduziert von 100px auf 60px */
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
}

.blog-header h1 {
    font-size: 3em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-header p {
    font-size: 1.2em;
    color: #7a90a4;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Filter Section */
.blog-filters {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 30px;
}

#blog-search {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

#blog-search:focus {
    outline: none;
    border-color: #4facfe;
    background: rgba(255, 255, 255, 0.05);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #7a90a4;
}

/* Kategorien und Tags */
.filter-section {
    margin-bottom: 30px;
}

.filter-section h3 {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #7a90a4;
    margin-bottom: 15px;
}

#blog-categories, #blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-btn, .tag-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover, .tag-btn:hover {
    background: rgba(79, 172, 254, 0.1);
    border-color: #4facfe;
    transform: translateY(-2px);
}

.category-btn.active, .tag-btn.active {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-color: transparent;
}

/* Blog Grid */
#blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Blog Card */
.blog-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card.animated {
    opacity: 0;
    transform: translateY(20px);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(79, 172, 254, 0.2);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.category {
    color: #4facfe;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.category:hover {
    color: #00f2fe;
}

.date {
    color: #7a90a4;
}

.card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.blog-card:hover .card-title {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-excerpt {
    color: #7a90a4;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 12px;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 15px;
    font-size: 12px;
    color: #4facfe;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(79, 172, 254, 0.2);
    transform: translateY(-1px);
}

.read-more {
    color: #4facfe;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-card:hover .read-more {
    transform: translateX(5px);
}

/* Pagination */
#blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 60px 0;
}

.page-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: rgba(79, 172, 254, 0.1);
    border-color: #4facfe;
    transform: translateY(-2px);
}

.page-info {
    color: #7a90a4;
}

/* Einzelner Blog Post */
.blog-post {
    max-width: 800px;
    margin: 20px auto 50px;  /* Nur 20px oben statt 100px */
    padding: 40px;
}

.post-header {
    margin-bottom: 40px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
}

.post-meta .views {
    color: #7a90a4;
}

.post-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-excerpt {
    font-size: 1.2em;
    color: #7a90a4;
    margin-bottom: 30px;
    line-height: 1.6;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #fff;
}

.author-role {
    font-size: 14px;
    color: #7a90a4;
}

.post-image {
    margin: 40px -40px;
    overflow: hidden;
    border-radius: 10px;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content */
.post-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: #c3cfd9;
    margin-bottom: 40px;
}

.post-content h1,
.post-content h2,
.post-content h3 {
    margin: 30px 0 20px;
    color: #fff;
}

.post-content h2 {
    font-size: 1.8em;
}

.post-content h3 {
    font-size: 1.4em;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content a {
    color: #4facfe;
    text-decoration: none;
    border-bottom: 1px solid rgba(79, 172, 254, 0.3);
    transition: all 0.3s ease;
}

.post-content a:hover {
    color: #00f2fe;
    border-bottom-color: #00f2fe;
}

.post-content code {
    background: rgba(79, 172, 254, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    font-size: 0.95em;
    line-height: 1.5;
}

.post-content blockquote {
    border-left: 4px solid #4facfe;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #7a90a4;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

/* Post Footer */
.post-footer {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tags-section {
    margin-bottom: 30px;
}

.tags-section h3 {
    font-size: 1em;
    margin-bottom: 15px;
    color: #7a90a4;
}

.share-section h3 {
    font-size: 1em;
    margin-bottom: 15px;
    color: #7a90a4;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
}

.share-btn.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
}

.share-btn.linkedin:hover {
    background: #0A66C2;
    border-color: #0A66C2;
}

.share-btn.copy:hover {
    background: #4facfe;
    border-color: #4facfe;
}

/* Related Posts */
#related-posts {
    margin-top: 60px;
}

#related-posts h3 {
    font-size: 1.5em;
    margin-bottom: 30px;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-post {
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
}

.related-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 15px;
}

.related-post h4 {
    font-size: 1.1em;
    padding: 0 20px 20px;
}

/* Toast Messages */
.toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(79, 172, 254, 0.9);
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 14px;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.toast-message.show {
    transform: translateX(-50%) translateY(0);
}

/* Error Messages */
.error-message, .no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #7a90a4;
}

.error-message button {
    margin-top: 20px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-message button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2em;
    }
    
    #blog-posts {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-post {
        padding: 20px;
    }
    
    .post-title {
        font-size: 1.8em;
    }
    
    .post-image {
        margin: 20px -20px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}