/*
Theme Name: My HTML Theme
Author: Your Name
Version: 1.0
*/

/* ---------------- GLOBAL STYLES ---------------- */

html,
body {
    background:#000;
    height:100%;
    margin:0;
    font-family:"Courier New", Courier, monospace;
    display:flex;
    flex-direction:column;
}

.content {
    flex: 1 0 auto;
}

.navbar {
    background-color: #111;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left { 
    color: white; 
    font-size: 18px; 
    letter-spacing: 2px; 
}

.nav-right a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    font-weight: normal;
    padding-bottom: 4px;
}

.nav-right a:hover { 
    border-bottom: 2px solid white; 
}

h1 {
    font-weight: normal;
}

.footer {
    background-color: #111;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: auto;
}

.footer a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: normal;
    padding-bottom: 4px;
}

.footer a:hover { 
    border-bottom: 2px solid white; 
}

html {
    scroll-behavior: smooth;
}

/* ---------------- COVER PHOTO ---------------- */

.cover-photo {
    width: 100%;
    height: clamp(65vh, 85vh, 105vh);
    position: relative;
    overflow: hidden;
}

.cover-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

/* Responsive image positioning */
@media (min-height: 900px) { .cover-photo img { object-position: center 25%; } }
@media (min-height: 700px) and (max-height: 899px) { .cover-photo img { object-position: center 30%; } }
@media (min-height: 600px) and (max-height: 699px) { .cover-photo img { object-position: center 35%; } }
@media (max-height: 599px) { .cover-photo img { object-position: center 45%; } }
@media (max-height: 500px) { .cover-photo img { object-position: center 55%; } }

.cover-credit {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 12px;
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 4px 8px;
    border-radius: 4px;
}

/* ---------------- ABOUT PAGE ---------------- */
/* Target the About Page specifically */
.page-about {
    background-color: #ffffff !important; /* Forces white background */
    color: #000000 !important;            /* Forces black text */
    min-height: 100vh;                   /* Ensures the white covers the whole screen */
    width: 100%;
    margin: 0;
    padding: 0;
}

/* The Layout Container */
.page-about .about-section {
    display: flex;
    flex-direction: row;        /* Side by side */
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;             /* Centers the whole section */
    padding: 60px;              /* Spacing from the edges */
    text-align: left;
}

/* The Left Column (Photo) */
.page-about .photo-wrapper {
    flex-shrink: 0;             /* Prevents the photo from getting squeezed */
    position: relative;
    width: 320px;
}

.page-about .profile-photo {
    width: 320px;
    height: 440px;
    object-fit: cover;
    object-position: 50% 20%;
    border-radius: 12px;
    display: block;
}

/* The Right Column (Text) */
.page-about .about {
    flex: 1;                    /* Takes up the remaining width */
    color: #000000;             /* Black letters */
}

.page-about .about p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;        /* Space between your 3 paragraphs */
    color: #000000;
}

/* ---------------- NEWS PAGE ---------------- */

.page-news .news-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.page-news .news-entry {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

.page-news .news-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 6px;
}

.page-news .news-date {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
}

.page-news .news-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 12px;
}

.page-news .news-description {
    font-size: 16px;
    line-height: 1.6;
}

/* ---------------- WORKS PAGE ---------------- */

.page-works .works-page {
    padding: 40px;
}

.page-works .works-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* LEFT COLUMN */
.page-works .works-list {
    width: 40%;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-works .works-list li {
    padding: 10px 0;
    cursor: pointer;
    border-bottom: 1px solid #ccc;
}

.page-works .works-list li:hover {
    text-decoration: underline;
}

/* RIGHT COLUMN */
.page-works .works-detail {
    width: 60%;
    padding-left: 20px;
    border-left: 1px solid #ccc;
}

.page-works .tag-filter {
    max-width: 100%;
    line-height: 1.8;
    margin-bottom: 25px;
}

.page-works .tag {
    display: inline-block;
    padding: 3px 8px;
    margin: 4px 6px 4px 0;
    font-size: 12px;
    border-radius: 0;
    cursor: pointer;
    color: white;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0.85;
}

.page-works .tag.active {
    outline: none;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.6);
}

.page-works .tag-filter .tag:first-child {
    font-weight: 600;
    letter-spacing: 0.4px;
    opacity: 1;
}

.page-works .works-detail img,
.page-works .works-detail video,
.page-works .works-detail iframe {
    max-width: 100%;
    margin-top: 20px;
    border-radius: 8px;
}

.page-works .works-detail figure {
    margin: 20px 0;
}

.page-works .works-detail figcaption {
    font-size: 12px;
    color: #555;
    margin-top: 6px;
}

.page-works .work-details iframe {
    margin-top: 16px;
    max-width: 100%;
    width: 100%;
    height: 360px;
    border: 0;
}
