/* Commodore Wiki Styles - C64 Retro Theme */

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

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

html {
    height: 100%;
}

body {
    font-family: 'Orbitron', 'Courier New', monospace;
    line-height: 1.6;
    color: #40e0d0; /* Cyan text like C64 */
    background: linear-gradient(135deg, #000428 0%, #004e92 100%); /* Deep blue like C64 screen */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-shadow: 0 0 5px rgba(64, 224, 208, 0.3);
}

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

/* Header - C64 Style */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #40e0d0;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(64, 224, 208, 0.3);
    border-bottom: 2px solid #00ff41; /* Bright green accent */
}

.header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    justify-self: start;
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo h1 a {
    color: #ff6b35; /* Orange like C64 */
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.logo h1 a:hover {
    color: #00ff41; /* Bright green */
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.8);
}

.logo p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.8rem;
    margin-top: 0.2rem;
    color: #40e0d0;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation - C64 Style */
nav {
    justify-self: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: #40e0d0;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border: 2px solid #40e0d0;
    border-radius: 0; /* Blocky, no rounded corners */
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(26, 26, 46, 0.8);
    text-shadow: 0 0 5px rgba(64, 224, 208, 0.5);
}

nav a:hover {
    background: #ff6b35;
    color: #000;
    border-color: #ff6b35;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
    transform: translateY(-2px);
}

/* Search - C64 Style */
.search-container {
    justify-self: end;
}

.search-container form {
    display: flex;
    align-items: center;
    background: #1a1a2e;
    border: 2px solid #40e0d0;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(64, 224, 208, 0.3);
}

.search-container input {
    padding: 0.6rem 1rem;
    border: none;
    outline: none;
    min-width: 200px;
    font-size: 0.9rem;
    background: #1a1a2e;
    color: #40e0d0;
    font-family: 'Share Tech Mono', monospace;
    text-shadow: 0 0 5px rgba(64, 224, 208, 0.3);
}

.search-container input::placeholder {
    color: rgba(64, 224, 208, 0.6);
}

.search-container button {
    padding: 0.6rem 1rem;
    background: #ff6b35;
    color: #000;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-container button:hover {
    background: #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.8);
    transform: translateY(-1px);
}

/* Main content - C64 Terminal Style */
main {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    padding: 3rem 2rem;
    border: 2px solid #40e0d0;
    box-shadow: 0 0 30px rgba(64, 224, 208, 0.2);
    margin: 2rem 0;
    flex: 1;
    position: relative;
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(64, 224, 208, 0.03) 2px,
        rgba(64, 224, 208, 0.03) 4px
    );
    pointer-events: none;
}

/* Footer - C64 Style */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #40e0d0;
    padding: 2rem 0;
    margin-top: auto;
    box-shadow: 0 -4px 20px rgba(64, 224, 208, 0.3);
    border-top: 2px solid #00ff41;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    font-family: 'Share Tech Mono', monospace;
}

footer nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

footer nav a {
    color: #40e0d0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
}

footer nav a:hover {
    color: #00ff41;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

/* Version indicator - Neon Style */
.version {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: #000;
    padding: 0.3rem 0.6rem;
    border: 1px solid #ff6b35;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .logo {
        justify-self: center;
    }
    
    nav {
        justify-self: center;
    }
    
    .search-container {
        justify-self: center;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    main {
        padding: 2rem 1.5rem;
        margin: 1rem 0;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .search-container input {
        min-width: 180px;
    }
    
    nav ul {
        gap: 0.3rem;
    }
    
    nav a {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .search-container input {
        min-width: 150px;
    }
    
    main {
        padding: 1.5rem 1rem;
    }
}

/* Typography - C64 Retro */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: #ff6b35;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

h1 {
    font-size: 2.5rem;
    color: #32cd32;
    border-bottom: 3px solid #32cd32;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 8px rgba(50, 205, 50, 0.4);
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 0.3rem;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #40e0d0;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
    font-family: 'Share Tech Mono', monospace;
}

a {
    color: #00ff41;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

a:hover {
    color: #ff6b35;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-family: 'Share Tech Mono', monospace;
}

/* Code - Terminal Style */
code {
    background: #000;
    color: #00ff41;
    padding: 0.3rem 0.5rem;
    border: 1px solid #00ff41;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9em;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

pre {
    background: #000;
    color: #00ff41;
    padding: 1.5rem;
    border: 2px solid #00ff41;
    overflow-x: auto;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    font-family: 'Share Tech Mono', monospace;
}

pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}

/* Tables - Retro Terminal */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background: #1a1a2e;
    border: 2px solid #40e0d0;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(64, 224, 208, 0.2);
}

th, td {
    padding: 1rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #40e0d0;
    font-family: 'Share Tech Mono', monospace;
}

th {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

tr:hover {
    background-color: rgba(64, 224, 208, 0.1);
}

/* Forms - C64 Style */
input, textarea, select {
    padding: 0.75rem;
    border: 2px solid #40e0d0;
    background: #1a1a2e;
    color: #40e0d0;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    font-family: 'Share Tech Mono', monospace;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: #000;
    border: 2px solid #ff6b35;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    background: linear-gradient(135deg, #00ff41, #32ff7e);
    border-color: #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
    transform: translateY(-2px);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border: 2px solid #40e0d0;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(64, 224, 208, 0.3);
}


.product-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.product-gallery .product-image {
    margin: 0;
    border: 2px solid #40e0d0;
    box-shadow: 0 0 20px rgba(64, 224, 208, 0.25);
    background: linear-gradient(135deg, rgba(10, 15, 35, 0.95), rgba(20, 35, 70, 0.9));
    overflow: hidden;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(320px, 100%);
}

.product-gallery .product-image img {
    margin-bottom: 0;
    border: none;
    box-shadow: none;
    display: block;
    max-width: 100%;
    height: auto;
}

.product-gallery .product-image figcaption {
    margin-top: 0.2rem;
    margin-bottom: 0;
    padding: 0.85rem 1.1rem;
    font-size: 0.95rem;
    background: rgba(6, 11, 26, 0.95);
    border-top: 1px solid rgba(64, 224, 208, 0.3);
    color: #9fffe8;
    letter-spacing: 0.5px;
}

.product-gallery .product-image + .product-image {
    margin-top: 0;
}

@media (max-width: 768px) {
    .product-gallery {
        justify-content: flex-start;
    }
    .product-gallery .product-image {
        width: 100%;
    }
}

/* Blockquotes - Engineer Quotes Style */
blockquote {
    border-left: 4px solid #40e0d0;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.08), rgba(52, 152, 219, 0.05));
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(64, 224, 208, 0.15);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 3rem;
    color: #40e0d0;
    position: absolute;
    top: -0.5rem;
    left: 0.5rem;
    opacity: 0.6;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px rgba(64, 224, 208, 0.5);
}

blockquote::after {
    content: '"';
    font-size: 3rem;
    color: #40e0d0;
    position: absolute;
    bottom: -1.5rem;
    right: 0.5rem;
    opacity: 0.6;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px rgba(64, 224, 208, 0.5);
}

/* Search Results - Neon Style */
.search-results-list {
    padding: 0;
}

.search-result-item {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 2px solid #40e0d0;
    border-left: 4px solid #ff6b35;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(64, 224, 208, 0.2);
}

.search-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.4);
    border-color: #ff6b35;
}

.search-result-item h3 {
    margin-bottom: 0.5rem;
}

.search-result-item h3 a {
    color: #ff6b35;
    text-decoration: none;
    font-family: 'Orbitron', monospace;
}

.search-result-item h3 a:hover {
    color: #00ff41;
}

.search-result-excerpt {
    color: #40e0d0;
    line-height: 1.6;
    font-family: 'Share Tech Mono', monospace;
}

.search-result-excerpt mark {
    background: linear-gradient(135deg, #00ff41, #32ff7e);
    color: #000;
    padding: 0.1rem 0.2rem;
    font-weight: 700;
    text-shadow: none;
}

.search-summary {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: #000;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #40e0d0;
    font-family: 'Share Tech Mono', monospace;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

/* Special Effects */
.glow {
    text-shadow: 0 0 10px currentColor;
}

.pulse {
    animation: pulse 2s infinite;
}

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