/* Nekotopia Torus - Full-Page Hero Banner Theme */

:root {
    --primary: #000000;
    --primary-dark: #000000;
    --primary-light: #F5F5F5;
    --success: #000000;
    --success-light: #F5F5F5;
    --danger: #000000;
    --danger-light: #F5F5F5;
    --warning: #000000;
    --warning-light: #F5F5F5;
    --accent-primary: #000000;
    --text-primary: #000000;
    --border-color: #cccccc;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
    --gray-50: #0f0f0f;
    --gray-100: #1a1a1a;
    --gray-200: rgba(255, 255, 255, 0.1);
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #9CA3AF;
    --gray-600: #9CA3AF;
    --gray-700: #D1D5DB;
    --gray-800: #E5E7EB;
    --gray-900: #FFFFFF;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 8px;
    --radius-lg: 12px;
}

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

html {
    background: #0f0f0f;
    min-height: 100vh;
}

body {
    font-family: var(--font-family);
    background: #0f0f0f;
    color: var(--white);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Typography */
h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--gray-300);
    text-decoration: underline;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

/* Header */
.main-header {
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.site-tagline {
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin: 0;
    text-transform: lowercase;
}

.main-navigation {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--gray-300);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.nav-link-disabled {
    color: var(--gray-600);
    cursor: not-allowed;
}

.nav-link-disabled:hover {
    background: transparent;
    color: var(--gray-600);
}

/* Full-Page Hero Banner */
.hero-banner {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: url('hero-banner.png') center center / cover no-repeat;
    background-attachment: fixed;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Optional: Video Background (uncomment in HTML to use) */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0.3;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.hero-text {
    max-width: 880px;
    margin-left: 10%;
    text-align: left;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 0;
    color: var(--white);
    letter-spacing: -0.03em;
    line-height: 1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-divider {
    width: 120px;
    height: 4px;
    background: var(--white);
    margin: 2rem 0;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-300);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Hero Buttons */
.btn-hero-primary {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: var(--white);
    color: #000000;
    border: 2px solid var(--white);
    border-radius: var(--radius);
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-primary:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

.btn-hero-secondary {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: var(--radius);
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-secondary:hover {
    background: var(--white);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-900);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Buttons */
.btn,
button,
input[type="submit"],
input[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.form-actions .btn {
    flex: 1;
}

/* Settings Panel */
.settings-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    padding: 2rem;
    overflow-y: auto;
    transition: right 0.3s ease-in-out;
    display: none;
}

.settings-panel.open {
    right: 0;
    display: block;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.settings-header h2 {
    margin: 0;
    color: var(--gray-900);
}

.settings-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

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

.settings-section h3 {
    color: var(--gray-900);
}

/* Settings Overlay */
.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
}

.settings-overlay.open {
    display: block;
}

/* Settings Toggle Button */
.settings-toggle {
    display: none;
}

.settings-toggle.visible {
    display: inline-flex;
}

/* Modal */
.modal,
#password-change-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.open,
#password-change-modal.open {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
}

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

.modal-header h2 {
    margin: 0;
    color: var(--gray-900);
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-500);
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--gray-900);
}

/* Info Display */
.info-display {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: var(--gray-700);
}

.info-value {
    color: var(--gray-900);
    font-family: 'SF Mono', Monaco, monospace;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-text {
        margin-left: 5%;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    .container,
    .header-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .hero-text {
        margin-left: 0;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-divider {
        width: 80px;
        height: 3px;
        margin: 1.5rem 0;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
    }

    .settings-panel {
        width: 100%;
        right: -100%;
    }

    .settings-panel.open {
        right: 0;
    }

    .main-navigation {
        flex-wrap: wrap;
    }
}

/* Signup Page Styles */
.signup-wrapper {
    max-width: 500px;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
}

.signup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.signup-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
    text-transform: lowercase;
}

.signup-subtitle {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin: 0;
}

.signup-form .form-group {
    margin-bottom: 1.5rem;
}

.signup-form .form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--white);
    color: var(--gray-900);
}

.signup-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.password-match {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 600;
}

.password-match.valid {
    color: #10B981;
}

.password-match.invalid {
    color: #EF4444;
}

.btn-signup {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-signup:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-signup:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
    transform: none;
}

.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: none;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #10B981;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #EF4444;
}

.signup-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.signup-link {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.signup-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.signup-separator {
    color: var(--gray-400);
    margin: 0 0.5rem;
}

@media (max-width: 768px) {
    .signup-wrapper {
        padding: 2rem;
        max-width: 100%;
    }

    .signup-title {
        font-size: 1.75rem;
    }
}

/* Gallery Page Styles */
.gallery-page {
    background: var(--gray-50);
    min-height: calc(100vh - 80px);
    padding: 3rem 0;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-header {
    text-align: left;
    margin-bottom: 3rem;
    max-width: 800px;
}

.gallery-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.gallery-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.8;
}

.admin-controls {
    text-align: center;
    margin-bottom: 2rem;
}

.item-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.item-form h3 {
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.item-form textarea {
    resize: vertical;
    min-height: 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.gallery-item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
    background: var(--gray-100);
}

.gallery-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item-image:hover img {
    transform: scale(1.05);
}

.gallery-item-content {
    padding: 1.5rem;
}

.gallery-item-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.gallery-item-content p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.gallery-item-admin {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.image-modal-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: var(--white);
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2001;
}

.image-modal-close:hover {
    color: var(--gray-400);
}

.image-modal-content {
    max-width: 90%;
    max-height: 90vh;
    text-align: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.image-modal-title {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    padding: 0 2rem;
}

@media (max-width: 968px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .gallery-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
}

@media (max-width: 768px) {
    .gallery-page {
        padding: 2rem 0;
    }

    .gallery-container {
        padding: 0 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-header {
    text-align: left;
    margin-bottom: 3rem;
    max-width: 800px;
}

    .item-form {
        padding: 1.5rem;
    }

    .image-modal-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }
}
