:root {
    --primary-color: #e9a8bc;
    --secondary-color: #f8e6eb;
    --header-color: #000000;
    --text-color: #333333;
}

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

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Playfair Display', serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

html {
    scroll-behavior: smooth;
}

section {
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    scroll-margin-top: 50px;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h1, h2, h3 {
    color: var(--header-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    text-align: center;
}

.btn-action {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    filter: brightness(1.1);
}

.btn-action-outline {
    background-color: transparent;
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    font-weight: bold;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (max-width: 480px) {
    .btn-action, .btn-action-outline {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 100%;
}

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

.gallery-grid.gallery-preview {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px;
    padding: 0 4px;
}

@media (max-width: 480px) {
    .gallery-grid.gallery-preview {
        gap: 4px;
        padding: 0;
    }
    .delete-btn {
        width: 20px !important;
        height: 20px !important;
        font-size: 10px !important;
        top: 5px !important;
        right: 5px !important;
    }
    .vote-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
        bottom: 5px !important;
        right: 5px !important;
    }
}

.photo-item {
    position: relative;
    aspect-ratio: 1/1;
    background: #eee;
    overflow: hidden;
    border-radius: 10px;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vote-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255,255,255,0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Stories Styles */
.stories-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
    scrollbar-width: none;
}

.story-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    padding: 3px;
    cursor: pointer;
}

.story-thumb.viewed {
    border-color: #ccc;
}

.story-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Sticky Image */
.sticky-img {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
}

.quick-nav a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.quick-nav a:hover {
    transform: scale(1.1);
    background: white;
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; }
}

/* Lightbox */
#lightbox-viewer {
    transition: opacity 0.3s ease;
}

#lightbox-viewer img {
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border-radius: 4px;
}

#lightbox-viewer button {
    transition: all 0.3s ease;
}

#lightbox-viewer button:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

#lb-left:hover span, #lb-right:hover span {
    opacity: 1 !important;
}

.info-msg {
    color: var(--primary-color);
    font-weight: 600;
    margin: 1rem 0;
}

/* KAN78 & KAN79: Story Loader & Progress */
.story-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(233, 168, 188, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: story-spin 1s linear infinite;
    z-index: 5;
}

@keyframes story-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.story-progress-bg {
    flex: 1;
    background: rgba(255, 255, 255, 0.3);
    height: 100%;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.story-progress-fill {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.1s linear;
}

.story-progress-bg.active-prev .story-progress-fill {
    width: 100%;
}

/* KAN81: Upload Progress Bar */
#global-upload-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 9999;
    display: none;
}

#global-upload-progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.2s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Multimedia Filter Tabs */
.multimedia-tabs {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
}

.tab-btn.active {
    background: var(--primary-color) !important;
    color: white !important;
}

.tab-btn:hover {
    filter: brightness(0.9);
}

@keyframes story-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .story-arrow { display: none !important; }
}
