/*
Theme Name: DC757 Hacker Theme
Theme URI: https://dc757.org
Author: DC757 Group
Author URI: https://dc757.org
Description: A terminal-inspired hacker theme for DefCon Group 757 featuring retro CRT aesthetics, animated grid backgrounds, and cyberpunk elements. Includes calendar integration and timeline history.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dc757
Tags: dark, technology, hacker, cyberpunk, events

This theme is built for DC757 DefCon Group and features:
- Retro terminal aesthetics with CRT effects
- Calendar event integration
- Interactive timeline for group history
- Responsive design
- Custom post types for events
*/

:root {
    --terminal-green: #00ff41;
    --dark-bg: #0a0e27;
    --darker-bg: #050810;
    --accent-cyan: #00d9ff;
    --accent-red: #ff0055;
    --grid-color: rgba(0, 255, 65, 0.1);
    --glow: 0 0 10px var(--terminal-green), 0 0 20px var(--terminal-green);
}

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

body {
    font-family: 'Share Tech Mono', monospace;
    background: var(--darker-bg);
    color: var(--terminal-green);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* WordPress Core Styles */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    color: var(--accent-cyan);
    font-size: 0.9em;
}

/* Animated grid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridScroll 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* Scanline effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 65, 0.03) 50%
    );
    background-size: 100% 4px;
    animation: scanline 8s linear infinite;
    pointer-events: none;
    z-index: 1000;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    padding: 30px 0;
    border-bottom: 2px solid var(--terminal-green);
    box-shadow: 0 2px 20px rgba(0, 255, 65, 0.3);
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5em;
    font-weight: 900;
    text-shadow: var(--glow);
    animation: flicker 3s infinite alternate;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.logo-icon .custom-logo {
    width: auto;
    max-width: 150px;
    max-height: 150px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(0, 255, 65, 0.6));
}

.logo-mark {
    display: inline-block;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
    51% { opacity: 1; }
    52% { opacity: 0.97; }
}

.logo span {
    color: var(--accent-cyan);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--terminal-green);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 2px;
    padding: 8px 15px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

nav a::before {
    content: '> ';
    opacity: 0;
    transition: opacity 0.3s;
}

nav a:hover {
    border: 1px solid var(--terminal-green);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
    background: rgba(0, 255, 65, 0.05);
}

nav a:hover::before {
    opacity: 1;
}

nav .sub-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 10px 0;
    margin: 0;
    background: rgba(10, 14, 39, 0.98);
    border: 1px solid var(--terminal-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    display: none;
    flex-direction: column;
    gap: 0;
    z-index: 200;
}

nav li {
    position: relative;
}

nav li:hover > .sub-menu {
    display: flex;
}

nav .sub-menu a {
    display: block;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4em;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: var(--glow);
    animation: glitchText 5s infinite;
}

@keyframes glitchText {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

.hero p {
    font-size: 1.3em;
    color: var(--accent-cyan);
    margin-bottom: 40px;
}

.terminal-prompt {
    display: inline-block;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--terminal-green);
    padding: 20px 40px;
    margin-top: 20px;
    font-size: 1.1em;
}

.terminal-prompt::before {
    content: 'root@dc757:~$ ';
    color: var(--accent-cyan);
}

/* Sections */
.section {
    padding: 60px 0;
    position: relative;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title::before {
    content: '//';
    color: var(--accent-cyan);
    font-size: 1.2em;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.event-card {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.05) 0%, rgba(0, 217, 255, 0.05) 100%);
    border: 1px solid var(--terminal-green);
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: slideIn 0.6s ease backwards;
}

.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }
.event-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.2), transparent);
    transition: left 0.5s;
}

.event-card:hover {
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
    transform: translateY(-5px);
}

.event-card:hover::before {
    left: 100%;
}

.event-date {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4em;
    color: var(--accent-cyan);
    margin-bottom: 10px;
    font-weight: 700;
}

.event-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--terminal-green);
}

.event-details {
    color: rgba(0, 255, 65, 0.7);
    font-size: 0.9em;
}

.event-details p {
    margin-bottom: 0.5em;
}

.event-tag {
    display: inline-block;
    background: rgba(255, 0, 85, 0.2);
    border: 1px solid var(--accent-red);
    padding: 5px 12px;
    font-size: 0.8em;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
        var(--terminal-green),
        var(--accent-cyan),
        var(--terminal-green)
    );
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.timeline-item {
    position: relative;
    padding: 30px;
    margin-bottom: 40px;
    background: rgba(0, 255, 65, 0.03);
    border-left: 3px solid var(--terminal-green);
    animation: fadeInUp 0.8s ease backwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -52px;
    top: 35px;
    width: 12px;
    height: 12px;
    background: var(--terminal-green);
    border: 3px solid var(--darker-bg);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--terminal-green);
    animation: blinkDot 2s ease-in-out infinite;
}

@keyframes blinkDot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.timeline-year {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8em;
    color: var(--accent-cyan);
    margin-bottom: 10px;
    font-weight: 700;
}

.timeline-content h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--terminal-green);
}

.timeline-content p {
    color: rgba(0, 255, 65, 0.8);
    line-height: 1.8;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.blog-post {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.05) 0%, rgba(0, 217, 255, 0.05) 100%);
    border: 1px solid var(--terminal-green);
    padding: 25px;
    transition: all 0.3s ease;
}

.blog-post:hover {
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.35);
}

.blog-post h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2em;
    margin-bottom: 12px;
}

.blog-post h3 a {
    color: var(--terminal-green);
    text-decoration: none;
}

.blog-post h3 a:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
}

.post-meta {
    font-size: 0.85em;
    color: rgba(0, 255, 65, 0.5);
    margin-bottom: 12px;
}

.post-meta span + span::before {
    content: ' // ';
}

.post-excerpt {
    color: rgba(0, 255, 65, 0.75);
    font-size: 0.95em;
    margin-bottom: 15px;
}

.read-more {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.read-more:hover {
    text-shadow: 0 0 10px var(--accent-cyan);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--terminal-green);
    color: var(--terminal-green);
    text-decoration: none;
}

.pagination a:hover,
.pagination span.current {
    background: rgba(0, 255, 65, 0.15);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.4);
}

.pagination span.dots {
    border-color: transparent;
}

/* Empty / notice text */
.section .no-events,
.section .no-timeline,
.section .no-posts {
    color: rgba(0, 255, 65, 0.65);
    text-align: center;
    padding: 2rem;
    border: 1px dashed var(--terminal-green);
    background: rgba(0, 255, 65, 0.03);
}

/* Footer */
footer {
    border-top: 2px solid var(--terminal-green);
    padding: 40px 0;
    margin-top: 80px;
    text-align: center;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
}

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

.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-links a {
    color: var(--terminal-green);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid var(--terminal-green);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--terminal-green);
    color: var(--darker-bg);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.copyright {
    color: rgba(0, 255, 65, 0.5);
    font-size: 0.9em;
}

.copyright p + p {
    margin-top: 0.5em;
}

/* Glitch hover */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch:hover::before,
.glitch:hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch:hover::before {
    animation: glitch 0.3s infinite;
    color: var(--accent-cyan);
    z-index: -1;
}

.glitch:hover::after {
    animation: glitch 0.3s infinite reverse;
    color: var(--accent-red);
    z-index: -2;
}

@keyframes glitch {
    0% { clip-path: inset(40% 0 61% 0); }
    20% { clip-path: inset(92% 0 1% 0); }
    40% { clip-path: inset(43% 0 1% 0); }
    60% { clip-path: inset(25% 0 58% 0); }
    80% { clip-path: inset(54% 0 7% 0); }
    100% { clip-path: inset(58% 0 43% 0); }
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 1.8em;
    }

    .logo-icon .custom-logo {
        max-width: 150px;
        max-height: 150px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    nav .sub-menu {
        position: static;
        display: flex;
        border: none;
        box-shadow: none;
        padding-left: 15px;
        background: transparent;
    }

    .hero h1 {
        font-size: 2.5em;
    }

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

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item::before {
        left: -42px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* WordPress admin bar */
body.admin-bar header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px;
    }
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    word-wrap: normal !important;
}

/* Page / post body (WordPress blocks) */
.entry-content-wrap,
.entry-content {
    color: rgba(0, 255, 65, 0.85);
    line-height: 1.75;
}

.entry-content-wrap a,
.entry-content a {
    color: var(--accent-cyan);
}

.entry-content-wrap a:hover,
.entry-content a:hover {
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.4);
}

.entry-content-wrap h2,
.entry-content h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--terminal-green);
    margin: 1.5em 0 0.5em;
    font-size: 1.5em;
}

.entry-content-wrap h3,
.entry-content h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-cyan);
    margin: 1.25em 0 0.5em;
    font-size: 1.2em;
}

.entry-content-wrap ul,
.entry-content-wrap ol,
.entry-content ul,
.entry-content ol {
    margin: 0 0 1em 1.5em;
    color: rgba(0, 255, 65, 0.8);
}

.entry-content-wrap p,
.entry-content p {
    margin-bottom: 1em;
}

.entry-content-wrap img,
.entry-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--terminal-green);
}
