
:root {
    --primary-color: #e64a19;
    --white-color: #fff;
    --black-color: #000;
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

body {
    background: linear-gradient(135deg, #ffa726 0%, #ff7043 50%, #e64a19 100%);
    color: var(--white-color);
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    margin: 0;
    min-height: 100vh;
    font-weight: var(--font-weight-normal);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 1rem;
}

.header-section {
    display: flex;
    justify-content: center;
}

.header-image {
    width: 800px;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.header-image-mobile {
    width: 800px;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    display: none;
}

/* Responsive header images */
@media (max-width: 768px) {
    .header-image {
        display: none;
    }
    
    .header-image-mobile {
        display: block;
        width: 100%;
        max-width: 800px;
        height: 150px;
        object-fit: cover;
        border-radius: 0.5rem;
        box-shadow: var(--shadow-lg);
    }
}

.social-media-section {
    display: flex;
    justify-content: center;
    margin-top: 0.375rem;
}

.social-media-icons {
    width: 800px;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.social-icon {
    display: inline-block;
    padding: 0.25rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    box-shadow: var(--shadow-md);
    transition: all 200ms;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.3);
    transition: transform 0.2s ease;
}

.social-icon img {
    display: block;
    width: 15px;
    height: 15px;
}

.video-section {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.video-container {
    width: 800px;
    height: 400px;
    background-color: var(--black-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-container iframe,
.video-container div {
    width: 100%;
    height: 100%;
}


.tags-section {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.hashtags,
.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hashtag-link,
.category-link {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    transition: all 200ms;
    font-size: 0.8rem;
}

.hashtag-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: var(--white-color);
}

.hashtag-link:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

.hashtag-link img {
  width: 15px;
  height: 15px;
}

.category-link {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}

.category-link:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.title-section {
    margin-top: 0.1875rem;
    margin-left: -1rem;
    margin-right: -1rem;
}

.title-section h1 {
    font-size: 2.2rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.25;
    letter-spacing: -0.05em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    text-align: center;
}

.content-section {
    margin-top: 0.375rem;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.content-header .categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.content-header .dates {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.date-field {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: var(--white-color);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    transition: all 200ms;
    font-size: 0.8rem;
}

.date-field strong {
    font-weight: var(--font-weight-bold);
}

.content-container {
    position: relative;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 0.5rem;
    padding: 1.5rem;
    padding-bottom: 4rem;
    box-shadow: var(--shadow-lg);
    /* Fix for short text - ensure container extends to contain floated image */
    overflow: hidden;
    min-height: 450px;
}

.content-container::after {
    content: "";
    display: table;
    clear: both;
}

.content-image {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 0.5rem;
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.text-content {
    text-align: justify;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 1rem;
    box-sizing: border-box;
}

.content-footer {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.content-footer .hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.text-content p {
    margin-bottom: 1.5rem;
}

.text-content a {
  color: var(--white-color);
  text-decoration: none;
  border-bottom: 1px dotted var(--white-color);
}

.text-content a:hover {
  border-bottom: 1px solid var(--white-color);
}

.text-content dl {
    margin-top: 1.5rem;
}

.text-content dt {
    font-weight: var(--font-weight-bold);
    margin-top: 1rem;
}

.text-content dd {
    margin-left: 0;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .tags-section {
        flex-direction: row;
    }

    .categories {
        justify-content: flex-end;
    }
}


/* Compact grid layout for video thumbnails */
.g {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    padding: 8px;
}

/* Back button overlay */
.back-button-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    padding: 0.5rem;
    transition: transform 0.5s ease;
}

.back-button-overlay:hover {
    transform: scale(1.25);
}

/* Index page specific styles */
/* Note: These styles are only for the main index.html grid layout */
/* They should not affect individual post pages */
    font-family: system-ui, Arial, sans-serif;
    background: linear-gradient(#FFD199, #FF7A00);
    color: #222;
}

header {
    padding: 10px 12px;
    text-align: center;
}

header img {
    max-width: 75%;
    height: auto;
    border-radius: 8px;
}

nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px;
}

nav a, nav span {
    padding: 4px 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    text-decoration: none;
    color: #222;
    background: rgba(255, 255, 255, 0.4);
    min-width: 44px;
    text-align: center;
    transition: transform 0.2s ease;
}

nav button:hover {
    transform: scale(1.05);
}

nav .active {
    font-weight: 600;
    background: #fff;
}

nav span.disabled {
    opacity: 0.35;
    color: #aaa;
    border-style: dashed;
}

nav input[type=text] {
    padding: 4px 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.4);
    color: #222;
    font: inherit;
    width: 5ch;
    text-align: center;
}

nav .goto {
    margin-left: 6px;
}

nav .dots {
    min-width: 44px;
    text-align: center;
}

.g {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
    max-width: 1100px;
    margin: 0 auto;
}

.c {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 8px 8px 28px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.2s ease;
}

.c:hover {
    transform: scale(1.02);
}

.c .l {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    text-decoration: none;
    color: inherit;
}

.m {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 6px;
    background: #000;
}

.c iframe {
    position: relative;
    z-index: 2;
}

.t {
    margin: 6px 0 2px;
    font-size: 15px;
    font-weight: 600;
}

.t a {
    color: inherit;
    text-decoration: none;
}

.d {
    margin: 0;
    font-size: 12px;
    color: #444;
    text-align: right;
    position: absolute;
    right: 8px;
    bottom: 8px;
}

@media (max-width: 900px) {
    .g {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .g {
        grid-template-columns: 1fr;
    }
}

.back-button-overlay img {
    width: 30px !important;
    height: 30px !important;
}
