/* ==========================================================================
   MicroSoul Corp — Corporate Website Stylesheet
   "Innovation Through Integration" | Est. 1993
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    background: #e8e8e8;
}

a {
    color: #0055aa;
    text-decoration: underline;
}

a:hover {
    color: #003366;
}

a:visited {
    color: #551a8b;
}

img {
    max-width: 100%;
    border: 0;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: #003366;
    margin-bottom: 10px;
}

h1 { font-size: 24px; }
h2 { font-size: 20px; border-bottom: 2px solid #003366; padding-bottom: 4px; margin-bottom: 16px; }
h3 { font-size: 16px; }
h4 { font-size: 14px; }

p {
    margin-bottom: 12px;
}

hr {
    border: none;
    border-top: 1px solid #999;
    border-bottom: 1px solid #fff;
    margin: 20px 0;
}

/* --- Layout Container --- */
.page-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-left: 1px solid #999;
    border-right: 1px solid #999;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.15);
}

/* --- Stock Ticker Bar --- */
.ticker-bar {
    background: #001a33;
    color: #00cc66;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    padding: 3px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid #003366;
}

.ticker-bar .ticker-content {
    display: inline-block;
    animation: ticker-scroll 30s linear infinite;
    padding-left: 100%;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- Header --- */
.site-header {
    background: linear-gradient(180deg, #0055aa 0%, #003366 100%);
    color: #fff;
    padding: 0;
    border-bottom: 3px solid #ffcc00;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.logo {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}

.logo:visited { color: #fff; }

.logo span {
    color: #ffcc00;
}

.logo small {
    display: block;
    font-family: Verdana, Arial, sans-serif;
    font-size: 9px;
    font-weight: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #aaccee;
    margin-top: 2px;
}

.header-stock {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: #aaccee;
    text-align: right;
}

.header-stock .price {
    color: #00cc66;
    font-weight: bold;
}

/* --- Navigation --- */
.main-nav {
    background: linear-gradient(180deg, #004488 0%, #003366 100%);
    border-top: 1px solid #0066bb;
    border-bottom: 1px solid #002244;
    padding: 0 10px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 6px 14px;
    color: #ccddeeff;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid #002244;
}

.main-nav a:hover,
.main-nav a.active {
    background: #0055aa;
    color: #fff;
}

.main-nav a:visited {
    color: #ccddeeff;
}

.main-nav a:visited:hover,
.main-nav a.active:visited {
    color: #fff;
}

/* --- Hero Banner --- */
.hero {
    background: linear-gradient(180deg, #003366 0%, #004488 40%, #0055aa 100%);
    color: #fff;
    text-align: center;
    padding: 40px 30px;
    border-bottom: 3px solid #ffcc00;
}

.hero h1 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 28px;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    letter-spacing: 2px;
}

.hero .tagline {
    font-family: Verdana, Arial, sans-serif;
    font-size: 12px;
    color: #aaccee;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* --- Content Area --- */
.content {
    padding: 24px 30px;
    background: #fff;
}

.content-gray {
    background: #f4f4f4;
    padding: 24px 30px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

/* --- Beveled Box --- */
.bevel-box {
    border: 2px solid;
    border-color: #fff #888 #888 #fff;
    background: #f0f0f0;
    padding: 16px;
    margin-bottom: 16px;
}

.bevel-box-inset {
    border: 2px solid;
    border-color: #888 #fff #fff #888;
    background: #fff;
    padding: 16px;
    margin-bottom: 16px;
}

/* --- Product Cards --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.product-card {
    border: 2px solid;
    border-color: #fff #888 #888 #fff;
    background: #f0f0f0;
    padding: 16px;
    text-align: center;
}

.product-card .icon {
    font-size: 36px;
    margin-bottom: 8px;
    display: block;
}

.product-card h3 {
    font-size: 14px;
    margin-bottom: 6px;
}

.product-card p {
    font-size: 11px;
    color: #555;
    margin-bottom: 10px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 4px 16px;
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: #000;
    background: linear-gradient(180deg, #f0f0f0 0%, #cccccc 100%);
    border: 2px solid;
    border-color: #fff #888 #888 #fff;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover {
    background: linear-gradient(180deg, #e0e0e0 0%, #bbbbbb 100%);
    color: #000;
}

.btn:active {
    border-color: #888 #fff #fff #888;
}

.btn:visited { color: #000; }

.btn-blue {
    background: linear-gradient(180deg, #0066cc 0%, #003366 100%);
    color: #fff;
    border-color: #4488cc #001a33 #001a33 #4488cc;
}

.btn-blue:hover {
    background: linear-gradient(180deg, #0077dd 0%, #004477 100%);
    color: #fff;
}

.btn-blue:visited { color: #fff; }

/* --- Testimonials --- */
.testimonial {
    border-left: 4px solid #ffcc00;
    padding: 12px 16px;
    margin: 16px 0;
    background: #fafafa;
    font-style: italic;
}

.testimonial .attribution {
    font-style: normal;
    font-size: 11px;
    color: #666;
    margin-top: 8px;
}

/* --- News Items --- */
.news-item {
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item .date {
    font-size: 10px;
    color: #888;
    font-family: 'Courier New', Courier, monospace;
}

.news-item h3 {
    font-size: 14px;
    margin: 4px 0;
}

.news-item p {
    font-size: 12px;
    color: #555;
}

/* --- Section Headers --- */
.section-header {
    background: linear-gradient(180deg, #e8e8e8 0%, #d0d0d0 100%);
    border: 1px solid #aaa;
    border-bottom: 2px solid #888;
    padding: 8px 16px;
    margin: 20px 0 16px;
}

.section-header h2 {
    font-size: 16px;
    border: none;
    padding: 0;
    margin: 0;
}

/* --- Leadership / Bio Cards --- */
.bio-card {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #ddd;
}

.bio-card:last-child {
    border-bottom: none;
}

.bio-photo {
    width: 120px;
    height: 140px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #c0c0c0 0%, #e0e0e0 50%, #c0c0c0 100%);
    border: 2px solid;
    border-color: #888 #fff #fff #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #666;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
}

.bio-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bio-photo.skull {
    font-size: 64px;
    color: #333;
    background: #000;
    border-color: #333 #000 #000 #333;
}

.bio-info h3 {
    font-size: 16px;
    margin-bottom: 2px;
}

.bio-info .title {
    font-size: 11px;
    color: #0055aa;
    font-weight: bold;
    margin-bottom: 8px;
}

.bio-info p {
    font-size: 12px;
}

/* --- Product Listing (Full) --- */
.product-listing {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.product-listing:last-child {
    border-bottom: none;
}

.product-icon-lg {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #003366 0%, #0055aa 100%);
    border: 2px solid;
    border-color: #fff #888 #888 #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 2px;
}

.product-info .tagline-text {
    font-size: 11px;
    color: #888;
    font-style: italic;
    margin-bottom: 6px;
}

.product-info p {
    font-size: 12px;
    margin-bottom: 8px;
}

/* --- Job Posting --- */
.job-posting {
    border: 2px solid;
    border-color: #fff #888 #888 #fff;
    background: #f8f8f8;
    padding: 20px;
    margin-bottom: 16px;
}

.job-posting h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

.job-posting .department {
    font-size: 11px;
    color: #0055aa;
    font-weight: bold;
    margin-bottom: 10px;
}

.job-posting ul {
    margin: 8px 0 12px 20px;
    font-size: 12px;
}

.job-posting li {
    margin-bottom: 4px;
}

/* --- Memorial Card --- */
.memorial-card {
    border: 1px solid #ccc;
    background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
    padding: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.memorial-card .dates {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.memorial-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 6px;
}

.memorial-card .epitaph {
    font-style: italic;
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
}

.memorial-card .tribute {
    font-size: 12px;
    color: #666;
    margin-bottom: 16px;
}

/* --- Timeline --- */
.timeline {
    position: relative;
    padding-left: 30px;
    margin: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #003366;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 10px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 10px;
    height: 10px;
    background: #ffcc00;
    border: 2px solid #003366;
    border-radius: 50%;
}

.timeline-item .year {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    font-weight: bold;
    color: #003366;
}

.timeline-item p {
    font-size: 12px;
    margin-top: 2px;
}

/* --- Legal Text --- */
.legal-text {
    font-size: 11px;
    color: #555;
    line-height: 1.6;
}

.legal-text h3 {
    font-size: 13px;
    margin-top: 20px;
}

.legal-text ol {
    margin: 8px 0 8px 24px;
}

.legal-text li {
    margin-bottom: 8px;
}

/* --- Footer --- */
.site-footer {
    background: linear-gradient(180deg, #003366 0%, #001a33 100%);
    color: #aaa;
    padding: 20px 30px;
    font-size: 10px;
    border-top: 3px solid #ffcc00;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #334455;
}

.footer-nav a {
    color: #8899aa;
    text-decoration: none;
    font-size: 10px;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-nav a:visited {
    color: #8899aa;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom .copyright {
    color: #667788;
}

.visitor-counter {
    font-family: 'Courier New', Courier, monospace;
    background: #000;
    color: #00cc66;
    padding: 2px 8px;
    border: 1px solid #333;
    font-size: 11px;
    letter-spacing: 2px;
}

/* --- Konami Memo Overlay --- */
.memo-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    overflow-y: auto;
    padding: 40px 20px;
}

.memo-overlay.active {
    display: block;
}

.memo-content {
    max-width: 640px;
    margin: 0 auto;
    background: #fffff0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #333;
    padding: 40px;
    border: 1px solid #999;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
    white-space: pre-wrap;
    line-height: 1.6;
}

.memo-content .stamp {
    color: #cc0000;
    font-weight: bold;
    font-size: 16px;
}

.memo-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10000;
    background: none;
    border: none;
    font-family: 'Courier New', Courier, monospace;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-small { font-size: 11px; }
.text-muted { color: #888; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

/* --- Table --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 12px;
}

th {
    background: linear-gradient(180deg, #e8e8e8 0%, #d0d0d0 100%);
    border: 1px solid #aaa;
    padding: 6px 10px;
    text-align: left;
    font-size: 11px;
    color: #003366;
}

td {
    border: 1px solid #ccc;
    padding: 6px 10px;
    vertical-align: top;
}

tr:nth-child(even) td {
    background: #f8f8f8;
}

/* --- Mint / Download Section --- */
/* "Secure digital distribution" = blockchain mint in a suit and tie. --DS */

.content-dark {
    background: linear-gradient(180deg, #001a33 0%, #003366 50%, #001a33 100%);
    padding: 24px 30px;
    border-top: 3px solid #ffcc00;
    border-bottom: 3px solid #ffcc00;
}

.mint-section {
    background: linear-gradient(180deg, #001122 0%, #002244 50%, #001122 100%);
    border: 2px solid #0055aa;
    padding: 30px;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}

.mint-section h2 {
    color: #fff;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #003366;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.mint-section .mint-subtitle {
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    color: #6688aa;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.mint-info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #112233;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
}

.mint-info-row .label {
    color: #6688aa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mint-info-row .value {
    color: #ffcc00;
    font-weight: bold;
}

.mint-quantity-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: #002244;
    border: 1px solid #336699;
    color: #ffcc00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #003366;
    border-color: #0077dd;
}

.mint-quantity-input {
    width: 50px;
    height: 32px;
    background: #001122;
    border: 1px solid #336699;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    text-align: center;
}

.mint-total {
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px;
    color: #fff;
    margin: 16px 0;
}

.mint-total .amount {
    color: #ffcc00;
    font-weight: bold;
}

.mint-connect-btn,
.mint-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid;
    cursor: pointer;
    margin: 8px 0;
    transition: all 0.2s;
}

.mint-connect-btn {
    background: #002244;
    border-color: #0055aa;
    color: #4488cc;
}

.mint-connect-btn:hover {
    background: #003366;
}

.mint-connect-btn.connected {
    background: #0a2a0a;
    border-color: #4ade80;
    color: #4ade80;
    cursor: default;
}

.mint-btn {
    background: #334455;
    border-color: #334455;
    color: #6688aa;
    cursor: not-allowed;
}

.mint-btn.active {
    background: linear-gradient(180deg, #0066cc 0%, #003366 100%);
    border-color: #0077dd;
    color: #fff;
    cursor: pointer;
}

.mint-btn.active:hover {
    background: linear-gradient(180deg, #0077dd 0%, #004477 100%);
}

.mint-status {
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    color: #6688aa;
    margin-top: 12px;
    min-height: 16px;
}

.mint-status--success { color: #4ade80; }
.mint-status--error { color: #ff3333; }
.mint-status--pending { color: #ffcc00; }

.mint-network-badge {
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 9px;
    color: #ffcc00;
    border: 1px solid #ffcc00;
    padding: 2px 8px;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.mint-bundle-note {
    font-size: 11px;
    color: #6688aa;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #112233;
    line-height: 1.6;
}

.mint-bundle-note strong {
    color: #ffcc00;
}

/* --- Theme Toggle --- */
.theme-toggle {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 9998;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    padding: 6px 12px;
    cursor: pointer;
    border: 2px solid;
    border-color: #fff #888 #888 #fff;
    background: linear-gradient(180deg, #f0f0f0 0%, #ccc 100%);
    color: #333;
    letter-spacing: 1px;
}

.theme-toggle:hover {
    background: linear-gradient(180deg, #e0e0e0 0%, #bbb 100%);
}

/* --- Dark Theme --- */
body.dark-theme {
    background: #111;
    color: #ccc;
}

body.dark-theme .page-wrapper {
    background: #1a1a2e;
    border-color: #333;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

body.dark-theme .content {
    background: #1a1a2e;
}

body.dark-theme .content-gray {
    background: #151528;
    border-color: #333;
}

body.dark-theme h1, body.dark-theme h2, body.dark-theme h3, body.dark-theme h4 {
    color: #6699cc;
}

body.dark-theme h2 {
    border-bottom-color: #335577;
}

body.dark-theme p {
    color: #bbb;
}

body.dark-theme a { color: #6699cc; }
body.dark-theme a:hover { color: #88bbee; }
body.dark-theme a:visited { color: #8866aa; }

body.dark-theme hr {
    border-top-color: #333;
    border-bottom-color: #222;
}

body.dark-theme .bevel-box {
    background: #222;
    border-color: #444 #111 #111 #444;
}

body.dark-theme .bevel-box-inset {
    background: #1a1a2e;
    border-color: #111 #444 #444 #111;
}

body.dark-theme .product-card {
    background: #222;
    border-color: #444 #111 #111 #444;
}

body.dark-theme .product-card p { color: #888; }

body.dark-theme .bio-card {
    border-bottom-color: #333;
}

body.dark-theme .bio-photo {
    background: linear-gradient(135deg, #222 0%, #333 50%, #222 100%);
    border-color: #111 #444 #444 #111;
    color: #555;
}

body.dark-theme .bio-info .title { color: #6699cc; }

body.dark-theme .testimonial {
    background: #151528;
    border-left-color: #ffcc00;
}

body.dark-theme .news-item { border-bottom-color: #333; }
body.dark-theme .news-item p { color: #888; }

body.dark-theme .section-header {
    background: linear-gradient(180deg, #222 0%, #1a1a2e 100%);
    border-color: #444;
}

body.dark-theme .job-posting {
    background: #222;
    border-color: #444 #111 #111 #444;
}

body.dark-theme .memorial-card {
    background: linear-gradient(180deg, #1a1a2e 0%, #151528 100%);
    border-color: #333;
}

body.dark-theme .memorial-card h3 { color: #ccc; }
body.dark-theme .memorial-card .epitaph { color: #999; }
body.dark-theme .memorial-card .tribute { color: #777; }

body.dark-theme .timeline::before { background: #335577; }
body.dark-theme .timeline-item .year { color: #6699cc; }
body.dark-theme .timeline-item p { color: #999; }

body.dark-theme .legal-text { color: #999; }

body.dark-theme table th {
    background: linear-gradient(180deg, #222 0%, #1a1a2e 100%);
    border-color: #444;
    color: #6699cc;
}

body.dark-theme table td {
    border-color: #333;
    color: #bbb;
}

body.dark-theme table tr:nth-child(even) td {
    background: #151528;
}

body.dark-theme .btn {
    background: linear-gradient(180deg, #333 0%, #222 100%);
    border-color: #555 #111 #111 #555;
    color: #ccc;
}

body.dark-theme .text-muted { color: #666; }

body.dark-theme .theme-toggle {
    background: linear-gradient(180deg, #333 0%, #222 100%);
    border-color: #555 #111 #111 #555;
    color: #ccc;
}

body.dark-theme .memo-content {
    background: #1a1a0a;
    color: #ccc;
    border-color: #444;
}

body.dark-theme .product-listing {
    border-bottom-color: #333;
}

/* --- Responsive (minimal — period-accurate sites weren't responsive) --- */
@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .bio-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-listing {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}
