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

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12pt;
    line-height: 1.6;
    color: #000000;
    background: #f5f3f0 url('https://www.genspark.ai/api/files/s/F4u9ypKo?cache_control=3600') repeat;
    background-size: auto auto;
}

body::before {
    display: none;
}

.page, .main-nav, .admin-panel {
    position: relative;
    z-index: 1;
}

/* ====================================
   Typography
   ==================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    color: #000000;
}

h1 {
    font-size: 12pt;
    font-weight: 500;
}

h2 {
    font-size: 12pt;
    font-weight: 600;
    margin-bottom: 20px;
}

h3 {
    font-size: 12pt;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

h4 {
    font-size: 12pt;
    font-weight: 500;
    margin-bottom: 10px;
}

p {
    font-size: 12pt;
    margin-bottom: 12pt;
}

a {
    color: #000000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ====================================
   Navigation
   ==================================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #f5f3f0 url('https://www.genspark.ai/api/files/s/F4u9ypKo?cache_control=3600') repeat;
    background-size: auto auto;
    border-bottom: none;
    padding: 20px 40px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav::before {
    display: none;
}

.site-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 12pt;
    font-weight: 500;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.nav-link {
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    font-weight: 400;
    font-style: normal;
    color: #000000;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.02em;
    position: relative;
    opacity: 1;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: #000000;
    text-decoration: underline;
}

.nav-ornament {
    height: 80px;
    width: auto;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.page-ornament {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 40px auto 20px auto;
    opacity: 0.9;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 12pt;
}

/* ====================================
   Pages
   ==================================== */
.page {
    display: none;
    min-height: 100vh;
    padding-top: 120px;
    background: transparent;
}

.page.active {
    display: block;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 60px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: none;
}

.text-column {
    text-align: left;
}

.image-column {
    text-align: right;
}

/* ====================================
   Page Images (rotating backgrounds)
   ==================================== */
.page-image {
    width: 70%;
    aspect-ratio: 4/5;
    border: none;
    background: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
    margin-left: auto;
}

.page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

/* ====================================
   Photography Pages
   ==================================== */
#photography-series-list {
    margin-top: 20px;
}

.series-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    cursor: pointer;
}

.series-item:hover {
}

.series-item h3 {
    margin: 0 0 5px 0;
}

.series-year {
    font-size: 12pt;
    color: #000000;
}

.series-description {
    margin-top: 8px;
}

/* Series Detail Page */
#series-photos-list {
    margin-top: 20px;
}

.series-photo-item {
    margin-bottom: 15px;
    padding-bottom: 10px;
    cursor: pointer;
}

.series-photo-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.series-photo-item h4 {
    margin: 0 0 5px 0;
}

.formatting-note {
    font-size: 8pt;
    font-weight: 400;
    font-style: normal;
    margin-left: 8px;
}

.series-photo-item.selected {
}

.inline-photo {
    display: none;
}

/* Show inline photo only on mobile/tablet */
@media (max-width: 768px) {
    .inline-photo {
        display: block;
        width: 100%;
        aspect-ratio: 4/5;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        margin-top: 15px;
        margin-bottom: 15px;
    }
}

/* ====================================
   Literature Page
   ==================================== */
#literature-list {
    margin-top: 20px;
}

.literature-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.literature-item h3 {
    margin: 0 0 5px 0;
}

.literature-keywords {
    font-size: 10pt;
    font-weight: 400;
    margin-left: 10px;
}

.literature-link {
    font-size: 12pt;
    margin-bottom: 10px;
}

.literature-link a {
    word-break: break-all;
}

.literature-meta {
    font-size: 12pt;
    margin-bottom: 10px;
}

.literature-excerpt {
    margin-bottom: 10px;
}

.literature-read-more {
    cursor: pointer;
    text-decoration: underline;
}

.literature-full-text {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
}

.literature-item.expanded .literature-full-text {
    display: block;
}

/* ====================================
   CV Page
   ==================================== */
.cv-key {
    font-size: 10pt;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
}

.key-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    opacity: 1;
    text-decoration: underline;
}

.cv-section {
    margin-bottom: 40px;
}

.cv-section h3 {
    text-decoration: underline;
}

.cv-entry {
    margin-bottom: 20px;
    transition: opacity 0.3s, color 0.3s;
}

.cv-entry.faded {
    opacity: 0.3;
    color: #999999;
}

.cv-entry.faded p {
    color: #999999;
}

.cv-entry p {
    margin-bottom: 5px;
}

/* ====================================
   Contact Page
   ==================================== */
.contact-info {
    margin-bottom: 30px;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12pt;
    color: #000000;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid #000000;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background-color: rgba(245, 245, 245, 0.6);
}

.contact-form button {
    padding: 8px 20px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12pt;
    color: #ffffff;
    background-color: #000000;
    border: 1px solid #000000;
    cursor: pointer;
}

.contact-form button:hover {
    color: #000000;
    background-color: rgba(255, 255, 255, 0.5);
}

.form-status {
    margin-top: 15px;
    padding: 10px;
    display: none;
}

.form-status.success {
    display: block;
    border: 1px solid #000000;
    background-color: rgba(255, 255, 255, 0.3);
}

.form-status.error {
    display: block;
    border: 1px solid #000000;
    background-color: rgba(255, 255, 255, 0.3);
}

/* ====================================
   Admin Panel
   ==================================== */
.admin-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
}

.admin-toggle {
    padding: 10px 15px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12pt;
    color: #ffffff;
    background-color: #000000;
    border: 1px solid #000000;
    cursor: pointer;
}

.admin-toggle:hover {
    color: #000000;
    background-color: rgba(255, 255, 255, 0.5);
}

.admin-content {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    background: #f5f3f0 url('https://www.genspark.ai/api/files/s/F4u9ypKo?cache_control=3600') repeat;
    background-size: auto auto;
    border: 2px solid #000000;
    padding: 30px;
}

.admin-content.active {
    display: block;
}

.admin-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.admin-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #000000;
}

.admin-section:last-child {
    border-bottom: none;
}

.admin-section h4 {
    margin-top: 0;
}

.admin-section input,
.admin-section textarea,
.admin-section select {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12pt;
    color: #000000;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid #000000;
}

.admin-section button {
    padding: 8px 15px;
    margin-right: 10px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12pt;
    color: #ffffff;
    background-color: #000000;
    border: 1px solid #000000;
    cursor: pointer;
}

.admin-section button:hover {
    color: #000000;
    background-color: rgba(255, 255, 255, 0.5);
}

/* ====================================
   Responsive
   ==================================== */
@media (max-width: 768px) {
    .main-nav {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .nav-ornament {
        height: 50px;
        margin-top: 10px;
    }
    
    .page-ornament {
        max-width: 250px;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px 40px 20px;
    }

    .page {
        padding-top: 180px;
    }

    .image-column {
        text-align: left;
    }

    .admin-content {
        width: 95%;
        padding: 20px;
    }
}

/* ====================================
   Print Styles
   ==================================== */
@media print {
    .main-nav,
    .admin-panel {
        display: none;
    }

    .page {
        display: block !important;
        page-break-after: always;
    }

    body {
        background: url('../images/ornament-background.jpg');
    }
}
