/* ==========================================================================
   Daniel Crompton — Portfolio Site Shared Styles
   styles.css — loaded by all pages
   ========================================================================== */

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

/* --- Base --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #e0e0e0;
    background-color: #1a1a1a;
}

/* --- Navigation (shared base — positioning set per page) --- */
nav {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(183, 148, 217, 0.1);
    z-index: 1000;
}

nav a {
    color: #B794D9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #c5a8e6;
}

/* Project page nav — sticky, left/right links */
nav.project-nav {
    position: sticky;
    top: 0;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav.project-nav .nav-left {
    display: flex;
    gap: 30px;
}

nav.project-nav .nav-right {
    display: flex;
    gap: 30px;
}

/* --- Buttons --- */
.btn {
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1em;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #B794D9, #9f7dc7);
    color: white;
    box-shadow: 0 4px 15px rgba(183, 148, 217, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(183, 148, 217, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6B8E71, #7a9d80);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 142, 113, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 142, 113, 0.4);
}

/* --- Project page typography (h2, h3, p, lists) --- */
/* These bare element styles are intentionally scoped to project pages.
   The homepage uses class-scoped selectors instead, so there is no conflict. */
.project-page h2 {
    font-size: 2.2em;
    color: #B794D9;
    margin-bottom: 30px;
    font-weight: 700;
}

.project-page h3 {
    font-size: 1.6em;
    color: #7FAD87;
    margin: 40px 0 20px;
    font-weight: 600;
}

.project-page p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #c0c0c0;
}

.project-page ul,
.project-page ol {
    margin: 20px 0 20px 40px;
    color: #c0c0c0;
}

.project-page li {
    margin-bottom: 12px;
    font-size: 1.05em;
}

.project-page strong {
    color: #e8e8e8;
}

/* --- Shared highlight box (use class="highlight-box" on all pages) --- */
.highlight-box {
    background: rgba(183, 148, 217, 0.1);
    border-left: 4px solid #B794D9;
    padding: 25px;
    margin: 30px 0;
    border-radius: 4px;
}

.highlight-box h3 {
    margin-top: 0;
    color: #B794D9;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* --- Stat boxes --- */
.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #7FAD87;
    margin-bottom: 10px;
}

.stat-label {
    color: #b0b0b0;
    font-size: 0.95em;
}

/* --- Image containers --- */
.image-container {
    margin: 40px 0;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    display: block;
}

.image-caption {
    text-align: center;
    font-size: 0.9em;
    color: #808080;
    margin-top: 10px;
    font-style: italic;
}

/* --- Code blocks --- */
.code-block {
    background: #2a2a2a;
    border: 1px solid rgba(183, 148, 217, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    color: #7FAD87;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    line-height: 1.6;
}

.code-block code {
    color: #B794D9;
}

/* --- Contact section --- */
#contact {
    background: #1f1f1f;
    text-align: center;
    padding: 40px 40px;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #ffffff;
    font-weight: 700;
}

.contact-content p {
    font-size: 1.2em;
    color: #b0b0b0;
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.contact-links .btn {
    min-width: 220px;
}

.footer-links {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(183, 148, 217, 0.2);
}

.footer-links a {
    color: #B794D9;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #c5a8e6;
}

/* --- Footer --- */
footer {
    background: #1a1a1a;
    border-top: 1px solid rgba(183, 148, 217, 0.1);
    padding: 30px 40px;
    text-align: center;
}

footer p {
    color: #808080;
    font-size: 0.9em;
}

footer a {
    color: #B794D9;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #c5a8e6;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    nav.project-nav {
        padding: 15px 20px;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}
