/* Gaming and Tech Theme Custom Styles */

/* Custom animations and effects */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px #00ff88; }
    50% { box-shadow: 0 0 20px #00ff88, 0 0 30px #00ff88; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translate3d(100px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Gaming accent border effect */
.gaming-border {
    position: relative;
    border: 1px solid #2a2a2a;
}

.gaming-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #00ff88, #00ccff, #8b5cf6, #ff6b35);
    border-radius: inherit;
    padding: 1px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gaming-border:hover::before {
    opacity: 1;
}

/* Glitch effect for headings */
.glitch {
    position: relative;
    color: white;
    text-shadow: 0.05em 0 0 #00ff88, -0.03em -0.04em 0 #00ccff, 0.025em 0.04em 0 #ff6b35;
    animation: glitch 725ms infinite;
}

.glitch span {
    position: absolute;
    top: 0;
    left: 0;
}

.glitch span:first-child {
    animation: glitch 500ms infinite;
    color: #00ff88;
    z-index: -1;
}

.glitch span:last-child {
    animation: glitch 375ms infinite;
    color: #00ccff;
    z-index: -2;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 #00ff88, -0.03em -0.04em 0 #00ccff, 0.025em 0.04em 0 #ff6b35;
    }
    15% {
        text-shadow: 0.05em 0 0 #00ff88, -0.03em -0.04em 0 #00ccff, 0.025em 0.04em 0 #ff6b35;
    }
    16% {
        text-shadow: -0.05em -0.025em 0 #00ff88, 0.025em 0.035em 0 #00ccff, -0.05em -0.05em 0 #ff6b35;
    }
    49% {
        text-shadow: -0.05em -0.025em 0 #00ff88, 0.025em 0.035em 0 #00ccff, -0.05em -0.05em 0 #ff6b35;
    }
    50% {
        text-shadow: 0.05em 0.035em 0 #00ff88, 0.03em 0 0 #00ccff, 0 -0.04em 0 #ff6b35;
    }
    99% {
        text-shadow: 0.05em 0.035em 0 #00ff88, 0.03em 0 0 #00ccff, 0 -0.04em 0 #ff6b35;
    }
    100% {
        text-shadow: 0.05em 0 0 #00ff88, -0.03em -0.04em 0 #00ccff, 0.025em 0.04em 0 #ff6b35;
    }
}

/* Neon button effects */
.neon-btn {
    position: relative;
    background: transparent;
    border: 2px solid #00ff88;
    color: #00ff88;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.neon-btn:hover {
    color: #0f0f0f;
    background: #00ff88;
    box-shadow: 0 0 20px #00ff88;
}

.neon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.neon-btn:hover::before {
    left: 100%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #00ff88, #00ccff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #00ccff, #8b5cf6);
}

/* Tech grid background */
.tech-grid {
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Holographic effect */
.holographic {
    background: linear-gradient(45deg, #00ff88, #00ccff, #8b5cf6, #ff6b35);
    background-size: 400% 400%;
    animation: holographic 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes holographic {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Gaming card hover effects */
.gaming-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gaming-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, #00ff88, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.gaming-card:hover::before {
    opacity: 0.1;
    animation: rotate 2s linear infinite;
}

.gaming-card > * {
    position: relative;
    z-index: 1;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

/* Particle effect overlay */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00ff88;
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
    opacity: 0.6;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Fade in animation utility */
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
    animation-fill-mode: both;
}

/* Line clamp utilities */
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Enhanced scrollbar for gaming theme */
html {
    scrollbar-width: thin;
    scrollbar-color: #00ff88 #1a1a1a;
}

/* Gaming navigation link styles */
.nav-link {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #00ff88;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ff88, #00ccff);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Pagination styling */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border: 1px solid #2a2a2a;
    background: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.875rem;
}

.pagination-btn:hover {
    border-color: #00ff88;
    background: #00ff88;
    color: #0f0f0f;
    transform: translateY(-2px);
}

.pagination-btn.pagination-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #2a2a2a;
    background: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-number:hover {
    border-color: #00ff88;
    background: #00ff88;
    color: #0f0f0f;
    transform: translateY(-2px);
}

.pagination-number.pagination-current {
    background: linear-gradient(135deg, #00ff88, #00ccff);
    color: #0f0f0f;
    border-color: transparent;
    cursor: default;
}

.pagination-info {
    margin-top: 1rem;
}

/* Enhanced footer */
.site-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-top: 1px solid #2a2a2a;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

/* Loading animation for images */
.img-loading {
    background: linear-gradient(90deg, #1a1a1a, #2a2a2a, #1a1a1a);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Gaming button variants */
.btn-gaming-primary {
    background: linear-gradient(135deg, #00ff88, #00ccff);
    color: #0f0f0f;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-gaming-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
}

.btn-gaming-secondary {
    background: transparent;
    color: #00ff88;
    border: 2px solid #00ff88;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-gaming-secondary:hover {
    background: #00ff88;
    color: #0f0f0f;
    transform: translateY(-2px);
}

/* Post content typography */
.post-content {
    color: #e5e5e5;
    line-height: 1.8;
    font-size: 1.125rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3;
}

.post-content h1 {
    font-size: 2.5rem;
    color: #00ff88;
}

.post-content h2 {
    font-size: 2rem;
    color: #00ccff;
    border-bottom: 2px solid #2a2a2a;
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
    color: #8b5cf6;
}

.post-content h4 {
    font-size: 1.25rem;
    color: #ff6b35;
}

.post-content p {
    margin-bottom: 1.5em;
}

.post-content a {
    color: #00ff88;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.post-content a:hover {
    color: #00ccff;
    border-bottom-color: #00ccff;
}

.post-content ul,
.post-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.post-content li {
    margin-bottom: 0.5em;
}

.post-content blockquote {
    margin: 2em 0;
    padding: 1.5em;
    border-left: 4px solid #00ff88;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #cccccc;
}

.post-content blockquote p {
    margin: 0;
}

.post-content pre {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 1.5em;
    overflow-x: auto;
    margin: 2em 0;
}

.post-content code {
    background: #2a2a2a;
    color: #00ff88;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Monaco', 'Menlo', monospace;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #e5e5e5;
}

.post-content img {
    border-radius: 8px;
    margin: 2em 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.post-content table th,
.post-content table td {
    padding: 1em;
    border-bottom: 1px solid #2a2a2a;
    text-align: left;
}

.post-content table th {
    background: #2a2a2a;
    color: #00ff88;
    font-weight: 600;
}

.post-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff88, #00ccff, #8b5cf6, transparent);
    margin: 3em 0;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .gaming-border::before {
        display: none;
    }

    .glitch {
        animation: none;
        text-shadow: none;
    }

    .holographic {
        background: #00ff88;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: none;
    }

    .pagination-number {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .pagination-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .pagination-btn span {
        display: none;
    }

    .post-content {
        font-size: 1rem;
    }

    .post-content h1 {
        font-size: 1.875rem;
    }

    .post-content h2 {
        font-size: 1.5rem;
    }

    .post-content h3 {
        font-size: 1.25rem;
    }

    .post-content h4 {
        font-size: 1.125rem;
    }

    .post-content pre {
        padding: 1rem;
        font-size: 0.875rem;
    }

    .post-content table {
        font-size: 0.875rem;
    }

    .post-content table th,
    .post-content table td {
        padding: 0.75rem;
    }
}