/*
Theme Name:APEX Assets
Author: APEX Llc
Description: APEXが用意するアセットサイトのテンプレートです。
Version: 0.0.1
Text Domain: assets-apex
*/


/* =========================================
    CSS Variables & Reset
    ========================================= */
    :root {
    /* Colors */
    --color-bg-body: #ffffff;
    --color-bg-sidebar: #ffffff;
    --color-bg-secondary: #f8f8f8;
    --color-text-main: #222222;
    --color-text-sub: #999999;
    --color-accent: #000000;
    --color-border: #eeeeee;
    
    /* Sizes */
    --sidebar-width: 260px;
    --header-height-mobile: 60px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;
    
    /* Typography */
    --font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    --font-size-base: 15px;
}

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

body {
    font-family: var(--font-family);
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    line-height: 1.7;
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* =========================================
    Layout Structure
    ========================================= */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar (Desktop) */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--color-bg-sidebar);
    padding: 60px 40px;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* Ensure no border/shadow by default */
    border-right: none;
    box-shadow: none;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width); /* Default desktop */
    width: calc(100% - var(--sidebar-width));
    background-color: var(--color-bg-body);
}

/* =========================================
    Sidebar Components
    ========================================= */
.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 80px;
    display: block;
    text-transform: uppercase;
}

.nav-group {
    margin-bottom: 60px;
}

.nav-label {
    font-size: 11px;
    font-weight: 400;
    color: var(--color-text-sub);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    display: block;
}

.nav-list li {
    margin-bottom: 16px;
}

.nav-link {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--color-text-main);
    position: relative;
}

.nav-link:hover {
    color: var(--color-text-sub);
}

/* =========================================
    Main Content Components
    ========================================= */

/* Mobile Header */
.mobile-header {
    display: none; /* Hidden on desktop */
    height: var(--header-height-mobile);
    padding: 0 var(--spacing-md);
    align-items: center;
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.98);
    /* Increased z-index to be higher than sidebar (100) so button stays visible */
    z-index: 101; 
}

.mobile-header .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-size: 0; /* テキストを非表示にする */
    z-index: 90;
}

.mobile-header .logo img {
    max-height: 32px;
    width: auto;
    height: auto;
    display: block;
}

/* Hamburger Menu - 2 Lines Animation (Fixed) */
.menu-toggle {
    position: absolute;
    left: var(--spacing-md);
    /* Vertical Center alignment */
    top: 50%;
    transform: translateY(-50%);
    
    width: 30px;
    height: 30px;
    z-index: 102; 
    padding: 0;
    display: block; 
}

.menu-toggle span {
    display: block;
    position: absolute;
    left: 3px; /* Center horizontally (30 - 24) / 2 */
    width: 24px;
    height: 2px;
    background-color: var(--color-text-main);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

/* Line 1 Position */
.menu-toggle span:first-child {
    top: 10px;
}

/* Line 2 Position */
.menu-toggle span:last-child {
    top: 18px;
}

/* Animation State: Active (Cross) */
.menu-toggle.active span:first-child {
    top: 14px; /* Move to center */
    transform: rotate(45deg);
}

.menu-toggle.active span:last-child {
    top: 14px; /* Move to center */
    transform: rotate(-45deg);
}

/* Hero Section */
.hero {
    padding: 120px var(--spacing-lg) 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: 56px;
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    letter-spacing: -1px;
}

.tag-slug {
    font-size: 56px;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -1px;
}

.tag-name {
    font-size: 18px;
    font-weight: 300;
    color: var(--color-text-sub);
    margin-top: 8px;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--color-text-sub);
    margin-bottom: 60px;
    font-weight: 300;
    max-width: 500px;
    &.not-margin-bottom {
        margin-bottom: 0;
    }
}

.search-bar {
    position: relative;
    max-width: 100%;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}

.search-input {
    width: 100%;
    padding: 16px 0;
    border: none;
    border-radius: 0;
    font-size: 20px;
    font-weight: 300;
    background-color: transparent;
    outline: none;
    color: var(--color-text-main);
}

.search-input::placeholder {
    color: #ddd;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.tag {
    padding: 0;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--color-text-sub);
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.tag:hover {
    color: var(--color-text-main);
    border-bottom-color: var(--color-text-main);
}

/* Masonry Grid */
.gallery-container,.contents-container {
    padding: 0 var(--spacing-lg) var(--spacing-xl);
}

.masonry-grid {
    column-count: 3;
    column-gap: 40px;
}

/* Tags Grid (通常のグリッドレイアウト) */
.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.gallery-item {
    display: block;
    break-inside: avoid;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    background-color: #f4f4f4;
    transition: opacity 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    opacity: 0.9;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.item-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #ffffff;
    font-size: 0.85em;
    font-weight: 400;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover .item-title-overlay {
    opacity: 1;
    transform: translateY(0);
}

.item-meta {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-text-main);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
}

.gallery-item:hover .item-meta {
    opacity: 1;
}

/* Loader */
.loader {
    text-align: center;
    padding: 80px 0;
    color: var(--color-text-sub);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.loader span {
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: var(--color-text-sub);
    border-radius: 0;
    margin: 0 4px;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loader span:nth-child(1) { animation-delay: -0.32s; }
.loader span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* =========================================
    Responsive Design
    ========================================= */

/* Tablet & Mobile */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 0px;
        --spacing-lg: 24px;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 300px;
        background-color: #fff;
        /* Ensure strictly no border right */
        border-right: none !important;
        box-shadow: none !important;
        /* Add padding top to avoid overlap with close button */
        padding-top: 100px; 
    }

    .sidebar.active {
        transform: translateX(0);
    }

    /* Hide logo in sidebar on mobile since header has one */
    .sidebar .logo {
        display: none;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .mobile-header {
        display: flex;
    }

    .masonry-grid {
        column-count: 2;
        column-gap: 20px;
    }
    
    .gallery-item {
        margin-bottom: 20px;
    }

    .hero {
        padding: 60px var(--spacing-lg) 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
}

/* Mobile Small */
@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .related-assets-grid {
        column-count: 1;
    }
}

/* =========================================
    Privacy Policy Page
    ========================================= */
.privacy-policy {
    padding: 80px var(--spacing-lg) var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto;
}

.privacy-policy-container {
    width: 100%;
}

.privacy-policy-title {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--color-text-main);
}

.privacy-policy-updated {
    font-size: 14px;
    color: var(--color-text-sub);
    margin-bottom: 60px;
    font-weight: 300;
}

.privacy-policy-content {
    line-height: 1.8;
    color: var(--color-text-main);
}

.privacy-section {
    margin-bottom: 50px;
}

.privacy-section-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 20px;
    margin-top: 40px;
    color: var(--color-text-main);
    line-height: 1.4;
}

.privacy-section:first-child .privacy-section-title {
    margin-top: 0;
}

.privacy-subsection-title {
    font-size: 18px;
    font-weight: 400;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--color-text-main);
    line-height: 1.4;
}

.privacy-policy-content p {
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 300;
}

.privacy-policy-content ul {
    margin: 16px 0;
    padding-left: 24px;
    list-style-type: disc;
}

.privacy-policy-content li {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
}

.privacy-policy-content strong {
    font-weight: 500;
    color: var(--color-text-main);
}

/* Privacy Policy Responsive */
@media (max-width: 1024px) {
    .privacy-policy {
        padding: 60px var(--spacing-lg) var(--spacing-xl);
    }
    
    .privacy-policy-title {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .privacy-policy {
        padding: 40px var(--spacing-lg) var(--spacing-xl);
    }
    
    .privacy-policy-title {
        font-size: 32px;
    }
    
    .privacy-section-title {
        font-size: 20px;
    }
    
    .privacy-subsection-title {
        font-size: 16px;
    }
    
    .privacy-policy-content p,
    .privacy-policy-content li {
        font-size: 14px;
    }
}

/* Overlay for mobile sidebar (Glassmorphism) */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Glass Effect */
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
    Single Asset Page
    ========================================= */
.single-asset {
    padding: 80px var(--spacing-lg) var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.single-asset-nav {
    margin-bottom: 40px;
}

.back-link {
    font-size: 14px;
    color: var(--color-text-sub);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.back-link:hover {
    color: var(--color-text-main);
}

.single-asset-image-container {
    margin-bottom: 60px;
    text-align: center;
}

.single-asset-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* PC版のみ最大幅70% */
@media (min-width: 1025px) {
    .single-asset-image {
        max-width: 70%;
    }
}

.single-asset-info {
    max-width: 800px;
    margin: 0 auto;
}

.single-asset-title {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: -0.5px;
    color: var(--color-text-main);
}

.single-asset-meta {
    margin-bottom: 30px;
    font-size: 12px;
    color: var(--color-text-sub);
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.meta-item {
    display: inline-block;
}

.meta-separator {
    margin: 0 8px;
    opacity: 0.4;
}

.single-asset-tags {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.single-asset-tag {
    padding: 6px 12px;
    font-size: 12px;
    color: var(--color-text-main);
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.single-asset-tag:hover {
    background-color: var(--color-text-main);
    color: #ffffff;
    border-color: var(--color-text-main);
}

.single-asset-prompt {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.prompt-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-sub);
    font-weight: 300;
    font-style: italic;
}

/* Related Assets */
.related-assets {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--color-border);
}

.related-assets-title {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 40px;
    color: var(--color-text-main);
    letter-spacing: -0.5px;
}

.related-assets-grid {
    column-count: 3;
    column-gap: 40px;
}

.related-asset-item {
    display: block;
    break-inside: avoid;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    background-color: #f4f4f4;
    transition: opacity 0.3s;
    cursor: pointer;
}

.related-asset-item:hover {
    opacity: 0.9;
}

.related-asset-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.related-asset-item:hover img {
    transform: scale(1.02);
}

.related-asset-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #ffffff;
    font-size: 0.8em;
    font-weight: 400;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.related-asset-item:hover .related-asset-title-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Single Asset Responsive */
@media (max-width: 1024px) {
    .single-asset {
        padding: 60px var(--spacing-lg) var(--spacing-xl);
    }
    
    .single-asset-title {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .single-asset {
        padding: 40px var(--spacing-lg) var(--spacing-xl);
    }
    
    .single-asset-title {
        font-size: 24px;
    }
    
    .single-asset-image-container {
        margin-bottom: 40px;
    }
    
    .single-asset-tag {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .prompt-text {
        font-size: 13px;
    }
    
    .related-assets {
        margin-top: 60px;
        padding-top: 40px;
    }
    
    .related-assets-title {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .related-assets-grid {
        column-count: 2;
        column-gap: 20px;
    }
    
    .related-asset-item {
        margin-bottom: 20px;
    }
}

/* =========================================
    All Tags Page
    ========================================= */
.tag-gallery-item {
    display: block;
    text-decoration: none;
    color: var(--color-text-main);
    transition: opacity 0.3s;
}

.tag-gallery-item:hover {
    opacity: 0.9;
}

.tag-image-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #f4f4f4;
    margin-bottom: 16px;
}

.tag-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.tag-gallery-item:hover .tag-image-wrapper img {
    transform: scale(1.02);
}

.tag-content {
    padding: 0;
}

.tag-item-slug {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 4px;
    line-height: 1.2;
    color: var(--color-text-sub);
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.tag-item-name {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--color-text-main);
}

.tag-item-description {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--color-text-sub);
    margin-bottom: 8px;
}

.tag-item-count {
    font-size: 11px;
    font-weight: 400;
    color: var(--color-text-sub);
    letter-spacing: 0.5px;
}

.tag-item-text {
    display: block;
    text-decoration: none;
    color: var(--color-text-main);
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tag-item-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tag-item-text:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.3);
}

.tag-item-text:hover::before {
    transform: scaleX(1);
}

.tag-text-content {
    padding: 32px 28px;
    position: relative;
    z-index: 1;
}

.tag-link-slug {
    font-size: 11px;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--color-text-sub);
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    letter-spacing: 1px;
    opacity: 0.6;
    text-transform: lowercase;
    transition: opacity 0.3s ease;
}

.tag-item-text:hover .tag-link-slug {
    opacity: 1;
}

.tag-link-name {
    display: block;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--color-text-main);
    transition: color 0.3s ease;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.tag-item-text:hover .tag-link-name {
    color: #667eea;
}

.tag-link-description {
    display: block;
    font-size: 14px;
    font-weight: 300;
    color: var(--color-text-sub);
    line-height: 1.7;
    margin-bottom: 16px;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.tag-item-text:hover .tag-link-description {
    opacity: 1;
}

.tag-link-count {
    display: inline-block;
    font-size: 11px;
    color: var(--color-text-sub);
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tag-item-text:hover .tag-link-count {
    background-color: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* All Tags Responsive */
@media (max-width: 1024px) {
    .tags-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 24px;
    }
    
    .tag-image-wrapper {
        height: 250px;
    }
    
    .tag-text-content {
        padding: 28px 24px;
    }
}

@media (max-width: 600px) {
    .tags-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tag-image-wrapper {
        height: 200px;
    }
    
    .tag-text-content {
        padding: 24px 20px;
    }
    
    .tag-link-name {
        font-size: 18px;
    }
    
    .tag-link-description {
        font-size: 13px;
    }
}

/* =========================================
    Upload Assets Page
    ========================================= */
.upload-area {
    width: 100%;
    min-height: 400px;
    border: 2px dashed var(--color-border);
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.upload-area.drag-over {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: scale(1.01);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
}

.upload-area.drag-over::before {
    opacity: 1;
}

.upload-area-content {
    text-align: center;
    z-index: 1;
    position: relative;
}

.upload-icon {
    width: 64px;
    height: 64px;
    color: var(--color-text-sub);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.upload-area.drag-over .upload-icon {
    color: #667eea;
    transform: translateY(-4px);
}

.upload-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-text-main);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.upload-subtitle {
    font-size: 14px;
    color: var(--color-text-sub);
    margin-bottom: 20px;
    font-weight: 300;
}

.upload-browse-button {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--color-text-main);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    letter-spacing: 0.3px;
}

.upload-browse-button:hover {
    background-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.upload-hint {
    font-size: 13px;
    color: var(--color-text-sub);
    margin-top: 20px;
    font-weight: 300;
}

.upload-files-list {
    width: 100%;
    margin-top: 40px;
    max-height: 300px;
    overflow-y: auto;
}

.files-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.file-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.file-name {
    flex: 1;
    font-size: 14px;
    color: var(--color-text-main);
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 16px;
}

.file-size {
    font-size: 12px;
    color: var(--color-text-sub);
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    margin-right: 16px;
}

.file-remove {
    width: 28px;
    height: 28px;
    border: none;
    background-color: transparent;
    color: var(--color-text-sub);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: inherit;
}

.file-remove:hover {
    background-color: #fee;
    color: #e00;
}

.upload-button-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.upload-submit-button {
    padding: 16px 48px;
    background-color: var(--color-text-main);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    letter-spacing: 0.5px;
    min-width: 200px;
}

.upload-submit-button:hover:not(:disabled) {
    background-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.upload-submit-button:disabled {
    background-color: var(--color-border);
    color: var(--color-text-sub);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Upload Assets Responsive */
@media (max-width: 1024px) {
    .upload-area {
        min-height: 350px;
        padding: 50px 30px;
    }
    
    .upload-title {
        font-size: 22px;
    }
}

@media (max-width: 600px) {
    .upload-area {
        min-height: 300px;
        padding: 40px 20px;
    }
    
    .upload-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 20px;
    }
    
    .upload-title {
        font-size: 20px;
    }
    
    .upload-browse-button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .upload-submit-button {
        width: 100%;
        padding: 14px 32px;
    }
    
    .file-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .file-name {
        width: 100%;
        margin-right: 0;
    }
    
    .file-size {
        margin-right: auto;
    }
}

/* Upload Results */
.upload-results {
    max-width: 800px;
    margin: 0 auto;
}

.upload-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.upload-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.upload-message-success {
    border-left-color: #28a745;
    background-color: #f0f9f4;
}

.upload-message-error {
    border-left-color: #dc3545;
    background-color: #fef0f0;
}

.message-icon {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.upload-message-success .message-icon {
    color: #28a745;
}

.upload-message-error .message-icon {
    color: #dc3545;
}

.message-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-main);
}

.upload-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.upload-action-button {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--color-text-main);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    letter-spacing: 0.3px;
}

.upload-action-button:hover {
    background-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.upload-action-button-secondary {
    background-color: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.upload-action-button-secondary:hover {
    background-color: var(--color-bg-secondary);
    border-color: var(--color-text-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Upload Results Responsive */
@media (max-width: 600px) {
    .upload-actions {
        flex-direction: column;
    }
    
    .upload-action-button {
        width: 100%;
    }
}