/* Cyberpunk Luxury Digital Magazine Style */
:root {
    --primary-color: #0ff;
    --secondary-color: #f0f;
    --accent-color: #0f0;
    --background-color: #050510;
    --text-color: #e0e0e0;
    --dark-panel: #0a0a1a;
    --border-glow: 0 0 5px var(--primary-color);
    --header-font: 'Rajdhani', 'Orbitron', sans-serif;
    --body-font: 'Roboto Mono', 'Courier New', monospace;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&family=Rajdhani:wght@300;400;500;700&family=Roboto+Mono:wght@300;400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--background-color);
    color: var(--text-color);
    background-image: 
        linear-gradient(0deg, rgba(5,5,16,0.9) 0%, rgba(5,5,16,0.9) 100%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%230ff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E"),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,255,255,0.03) 2px, rgba(0,255,255,0.03) 4px);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to bottom, 
                rgba(0,255,255,0.03) 0%, 
                rgba(255,0,255,0.02) 50%,
                rgba(0,255,0,0.03) 100%);
    z-index: -1;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 1px,
        rgba(255,255,255,0.03) 1px,
        rgba(255,255,255,0.03) 2px
    );
    z-index: 999;
    opacity: 0.3;
}

.header {
    background: var(--dark-panel);
    padding: 20px;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(0,255,255,0.2);
    text-align: center;
    border: 1px solid rgba(0,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, 
                transparent, 
                var(--primary-color), 
                transparent);
    animation: scanline 4s linear infinite;
}

.header h1 {
    margin: 0;
    font-family: var(--header-font);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.header h1::after {
    content: attr(data-text);
    position: absolute;
    left: 2px;
    text-shadow: -2px 0 var(--secondary-color);
    top: 0;
    color: var(--primary-color);
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: glitch-effect 3s infinite linear alternate-reverse;
}

.header a {
    text-decoration: none;
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
    position: relative;
    transition: all 0.3s ease;
}

.header a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.article {
    background: var(--dark-panel);
    margin-bottom: 40px;
    padding: 30px;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(0,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.article::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, 
                var(--primary-color), 
                var(--secondary-color));
    opacity: 0.7;
}

.article h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: var(--header-font);
    font-weight: 700;
    font-size: 2.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 5px var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.article h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, 
                var(--primary-color), 
                transparent);
}

.article-meta {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,255,255,0.2);
    font-family: var(--body-font);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.article-meta span {
    position: relative;
    padding: 0 15px;
}

.article-meta span:not(:last-child)::after {
    content: "•";
    position: absolute;
    right: -7px;
    color: var(--primary-color);
    opacity: 0.7;
}

.article-content {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.8;
}

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

.article-content h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin: 30px 0 20px;
    text-shadow: 0 0 5px var(--secondary-color);
}

.article-content h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin: 25px 0 15px;
}

.article-content a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 1px;
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(0,255,255,0.2);
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    margin: 20px 0;
    filter: saturate(1.2) contrast(1.1);
    transition: all 0.5s ease;
}

.article-content img:hover {
    filter: saturate(1.4) contrast(1.2) hue-rotate(15deg);
    box-shadow: 0 0 20px rgba(0,255,255,0.3);
}

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

.article-content li {
    margin-bottom: 10px;
    position: relative;
}

.article-content ul li::before {
    content: ">";
    color: var(--primary-color);
    position: absolute;
    left: -20px;
    font-weight: bold;
}

.article-content blockquote {
    border-left: 3px solid var(--secondary-color);
    padding: 15px 20px;
    margin: 20px 0;
    background: rgba(255,0,255,0.05);
    font-style: italic;
}

/* Ad Styles */
.article-ad {
    margin: 40px 0;
    padding: 0;
}

.ad-container {
    display: flex;
    flex-wrap: wrap;
    background: rgba(10,10,26,0.8);
    border: 1px solid var(--primary-color);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,255,255,0.15);
    position: relative;
    z-index: 1;
}

.ad-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, rgba(0,255,255,0.05) 25%, transparent 25%, transparent 50%, 
        rgba(0,255,255,0.05) 50%, rgba(0,255,255,0.05) 75%, transparent 75%, transparent);
    background-size: 4px 4px;
    opacity: 0.2;
    z-index: -1;
}

.ad-content {
    flex: 1;
    padding: 25px;
    min-width: 280px;
}

.ad-image {
    flex: 0 0 auto;
    width: 250px;
    overflow: hidden;
}

.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: saturate(1.2) contrast(1.1);
}

.ad-image img:hover {
    transform: scale(1.05);
    filter: saturate(1.4) contrast(1.2) hue-rotate(15deg);
}

.ad-container h3 {
    color: var(--primary-color);
    font-family: var(--header-font);
    font-size: 1.6rem;
    margin: 0 0 15px 0;
    text-shadow: 0 0 5px var(--primary-color);
}

.ad-container p {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

.ad-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(0,255,255,0.1);
    color: var(--primary-color);
    text-decoration: none;
    border: 1px solid var(--primary-color);
    border-radius: 2px;
    font-family: var(--header-font);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.ad-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,255,255,0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.ad-button:hover {
    color: #fff;
    text-shadow: 0 0 5px var(--primary-color);
    box-shadow: 0 0 15px rgba(0,255,255,0.3);
    border-color: var(--accent-color);
}

.ad-button:hover::before {
    left: 100%;
}

@media (max-width: 768px) {
    .ad-container {
        flex-direction: column;
    }
    
    .ad-image {
        width: 100%;
        height: 200px;
        order: -1;
    }
}

.footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px 20px;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    position: relative;
    border-top: 1px solid rgba(0,255,255,0.1);
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-color);
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,255,255,0.2);
}

.nav-link {
    display: inline-block;
    padding: 12px 25px;
    background-color: rgba(0,255,255,0.1);
    color: var(--primary-color);
    text-decoration: none;
    border: 1px solid var(--primary-color);
    border-radius: 2px;
    font-family: var(--header-font);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,255,255,0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.nav-link:hover {
    color: #fff;
    text-shadow: 0 0 5px var(--primary-color);
    box-shadow: 0 0 15px rgba(0,255,255,0.3);
    border-color: var(--accent-color);
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link.disabled {
    background-color: rgba(100,100,100,0.1);
    color: rgba(255,255,255,0.3);
    border-color: rgba(100,100,100,0.3);
    cursor: not-allowed;
    box-shadow: none;
}

/* Animations */
@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(1000%);
    }
}

@keyframes glitch-effect {
    0% {
        clip: rect(44px, 9999px, 56px, 0);
    }
    5% {
        clip: rect(12px, 9999px, 76px, 0);
    }
    10% {
        clip: rect(54px, 9999px, 96px, 0);
    }
    15% {
        clip: rect(30px, 9999px, 60px, 0);
    }
    20% {
        clip: rect(22px, 9999px, 40px, 0);
    }
    25% {
        clip: rect(9px, 9999px, 71px, 0);
    }
    30% {
        clip: rect(33px, 9999px, 17px, 0);
    }
    35% {
        clip: rect(28px, 9999px, 65px, 0);
    }
    40% {
        clip: rect(16px, 9999px, 57px, 0);
    }
    45% {
        clip: rect(99px, 9999px, 91px, 0);
    }
    50% {
        clip: rect(91px, 9999px, 3px, 0);
    }
    55% {
        clip: rect(8px, 9999px, 63px, 0);
    }
    60% {
        clip: rect(26px, 9999px, 15px, 0);
    }
    65% {
        clip: rect(48px, 9999px, 21px, 0);
    }
    70% {
        clip: rect(59px, 9999px, 50px, 0);
    }
    75% {
        clip: rect(23px, 9999px, 77px, 0);
    }
    80% {
        clip: rect(79px, 9999px, 44px, 0);
    }
    85% {
        clip: rect(10px, 9999px, 89px, 0);
    }
    90% {
        clip: rect(69px, 9999px, 27px, 0);
    }
    95% {
        clip: rect(85px, 9999px, 41px, 0);
    }
    100% {
        clip: rect(32px, 9999px, 73px, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .article {
        padding: 20px;
    }
    
    .article h2 {
        font-size: 1.8rem;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
}

.article-featured-image {
    margin: 0 0 30px 0;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    position: relative;
}

.article-featured-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
                rgba(5,5,16,0.1), 
                rgba(5,5,16,0));
    pointer-events: none;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: saturate(1.2) contrast(1.1);
}

.article-featured-image:hover img {
    transform: scale(1.02);
    filter: saturate(1.4) contrast(1.2);
} 

/* Related Posts Styles */
.related-posts {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,255,255,0.2);
}

.related-posts h3 {
    color: var(--secondary-color);
    font-family: var(--header-font);
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 5px var(--secondary-color);
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.related-posts h3::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, 
                transparent, 
                var(--secondary-color), 
                transparent);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.related-post-item {
    background: rgba(10,10,26,0.8);
    border: 1px solid rgba(0,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.related-post-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, 
                transparent, 
                var(--primary-color), 
                transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.related-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,255,255,0.2);
    border-color: var(--primary-color);
}

.related-post-item:hover::before {
    transform: scaleX(1);
}

.related-post-item a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.related-post-image {
    height: 140px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: saturate(1.1) contrast(1.1);
}

.related-post-item:hover .related-post-image img {
    transform: scale(1.05);
    filter: saturate(1.3) contrast(1.2) hue-rotate(10deg);
}

.related-post-title {
    padding: 15px;
    font-family: var(--header-font);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.related-post-item:hover .related-post-title {
    color: var(--accent-color);
    text-shadow: 0 0 3px var(--accent-color);
}

@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .related-post-image {
        height: 120px;
    }
    
    .related-post-title {
        padding: 10px;
        font-size: 0.85rem;
    }
}

.no-related {
    text-align: center;
    color: var(--text-color);
    opacity: 0.7;
    font-style: italic;
    padding: 20px;
    border: 1px dashed rgba(0,255,255,0.2);
    border-radius: 2px;
    background: rgba(10,10,26,0.5);
}

/* Search Functionality Styles */
.search-container {
    margin: 20px 0;
    text-align: center;
}

.search-form {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    background: rgba(10,10,26,0.8);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid rgba(0,255,255,0.3);
    box-shadow: var(--border-glow);
}

.search-input {
    padding: 12px 15px;
    background: rgba(5,5,16,0.9);
    border: 1px solid rgba(0,255,255,0.5);
    border-radius: 3px;
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: 14px;
    width: 300px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0,255,255,0.4);
    background: rgba(5,5,16,1);
}

.search-input::placeholder {
    color: rgba(224,224,224,0.5);
}

.search-button {
    padding: 12px 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 3px;
    color: var(--background-color);
    font-family: var(--header-font);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,255,255,0.4);
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
}

.search-results {
    margin: 30px 0;
    padding: 20px;
    background: rgba(10,10,26,0.6);
    border-radius: 5px;
    border: 1px solid rgba(0,255,255,0.2);
}

.search-results h2 {
    font-family: var(--header-font);
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 0 0 5px var(--primary-color);
}

.search-count {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 20px;
    font-style: italic;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-result-item {
    background: rgba(5,5,16,0.8);
    border: 1px solid rgba(0,255,255,0.2);
    border-radius: 5px;
    padding: 20px;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0,255,255,0.3);
    transform: translateY(-2px);
}

.search-result-item h3 {
    margin-bottom: 10px;
}

.search-result-item h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-family: var(--header-font);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.search-result-item h3 a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-color);
}

.search-result-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.search-result-meta span {
    color: var(--text-color);
}

.search-result-image {
    margin: 15px 0;
    max-width: 200px;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(0,255,255,0.2);
}

.search-result-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.search-result-image:hover img {
    transform: scale(1.05);
}

.search-result-keywords {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

.search-result-keywords strong {
    color: var(--secondary-color);
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--text-color);
    opacity: 0.7;
}

.no-results p {
    font-size: 1.1rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-input {
        width: 100%;
        max-width: 300px;
    }
    
    .search-result-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .search-result-image {
        max-width: 150px;
    }
}