/* Gallery specific styles */

.container {
    display: flex;
    min-height: 100vh;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Left sidebar navigation */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.sidebar-nav .logo {
    padding: 0 1.5rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.sidebar-nav .logo h1 {
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

.sidebar-nav .nav-items {
    flex: 1;
    padding: 0 1rem;
}

.sidebar-nav-link {
    display: block;
    padding: 0.8rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.sidebar-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(4px);
}

.sidebar-nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-left: 3px solid rgba(255, 255, 255, 0.6);
    padding-left: 0.8rem;
}

/* Main content area - Override plantoid.css grid layout */
.main-content {
    position: absolute !important;
    left: 240px !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    overflow-y: auto !important;
    padding: 2rem !important;
    box-sizing: border-box !important;
    display: block !important; /* Override grid from plantoid.css */
    grid-template-columns: none !important; /* Remove grid columns */
    width: auto !important; /* Use available width */
    max-width: none !important; /* No max width */
}

.gallery-content {
    margin-top: 1rem;
    min-height: 80vh;
    width: 100%;
    max-width: 100%;
}

.gallery-info {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.gallery-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(22, 160, 133, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gallery-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 300;
    text-shadow: 0 0 30px rgba(22, 160, 133, 0.5);
    position: relative;
    z-index: 1;
}

.gallery-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.gallery-stats {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Section styles */
.unrevealed-section, .revealed-section {
    margin-bottom: 3rem;
}

.unrevealed-section {
    margin-bottom: 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.unrevealed-section .section-header {
    margin-bottom: 1rem;
}

.section-header h3 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 0.3rem;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.unrevealed-section .section-header h3 {
    font-size: 1.2rem;
}

.section-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.unrevealed-section .section-header p {
    font-size: 0.8rem;
}

/* Reveal table styles - Compact and elegant */
.reveal-table {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.reveal-table-header {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.reveal-table-header > div:first-child {
    text-align: left;
}

.reveal-table-header > div:nth-child(2) {
    text-align: left;
}

.reveal-table-header > div:last-child {
    text-align: center;
}

.reveal-table-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
    align-items: center;
}

.reveal-table-row > div:first-child {
    text-align: left;
}

.reveal-table-row > div:nth-child(2) {
    text-align: left;
}

.reveal-table-row > div:last-child {
    text-align: center;
}

.reveal-table-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.reveal-table-row:last-child {
    border-bottom: none;
}

.reveal-holder {
    font-family: 'JetBrains Mono', monospace;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    font-weight: 400;
}

.reveal-seed {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.85rem;
}

.reveal-button {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.15s ease;
    backdrop-filter: blur(10px);
    min-width: 70px;
    text-align: center;
}

.reveal-button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.reveal-button:active:not(:disabled) {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.reveal-button:disabled {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
}

.view-button {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.view-button:hover {
    background: linear-gradient(45deg, #229954, #28b463);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
    color: white;
    text-decoration: none;
}

.no-unrevealed {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.nav-button {
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-block;
}

.nav-button:hover {
    background: linear-gradient(45deg, #16a085, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(22, 160, 133, 0.3);
}

.loading-message, .error-message {
    text-align: center;
    padding: 3rem;
    font-size: 1.3rem;
    letter-spacing: 0.1em;
}

.loading-message {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    position: relative;
}

.loading-message::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(22, 160, 133, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 10px;
    margin: 2rem auto;
    max-width: 600px;
}

.nft-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0;
    width: 100%;
}

.nft-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.nft-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(22, 160, 133, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.nft-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(22, 160, 133, 0.1);
    border-color: rgba(22, 160, 133, 0.3);
}

.nft-card:hover::before {
    opacity: 1;
}

.nft-loading {
    padding: 3rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.nft-image-container {
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio for square videos */
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    overflow: hidden;
}

.nft-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    z-index: 1;
}

.nft-image, .nft-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nft-video {
    object-fit: contain;
    background: #000;
    z-index: 0;
}

.nft-iframe {
    border: none;
    background: #000;
}

.nft-info {
    padding: 1rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%);
    text-align: center;
}

.nft-seed-number {
    font-size: 1.1rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
    margin: 0;
}

.nft-error {
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.nft-error small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive design */
@media (max-width: 1200px) {
    .nft-gallery {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.2rem;
    }
    
    .gallery-info {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .sidebar-nav {
        width: 200px;
    }
    
    .main-content {
        left: 200px !important;
        padding: 1rem !important;
        display: block !important;
        grid-template-columns: none !important;
    }
    
    .nft-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
        padding: 0;
    }
    
    .gallery-info h2 {
        font-size: 2rem;
    }
    
    .gallery-info p {
        font-size: 1rem;
    }
    
    .nft-info {
        padding: 0.8rem;
    }
    
    .nft-seed-number {
        font-size: 1rem;
    }
    
    .loading-message, .error-message {
        padding: 2rem;
        font-size: 1.1rem;
    }
    
    .reveal-table-header,
    .reveal-table-row {
        grid-template-columns: 0.8fr 1.2fr 0.8fr;
        padding: 0.7rem 1rem;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .sidebar-nav {
        width: 180px;
    }
    
    .main-content {
        left: 180px !important;
        padding: 0.5rem !important;
        display: block !important;
        grid-template-columns: none !important;
    }
    
    .sidebar-nav .logo h1 {
        font-size: 1.1rem;
    }
    
    .sidebar-nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .gallery-content {
        margin-top: 1rem;
    }
    
    .gallery-info {
        margin-bottom: 2rem;
        padding: 1.5rem 1rem;
    }
    
    .gallery-info h2 {
        font-size: 1.5rem;
    }
    
    .nft-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.8rem;
    }
    
    .nft-card {
        border-radius: 12px;
    }
    
    .nft-seed-number {
        font-size: 0.9rem;
    }
    
    .reveal-table-header,
    .reveal-table-row {
        grid-template-columns: 0.7fr 1fr 0.7fr;
        padding: 0.6rem 0.8rem;
        gap: 0.4rem;
        font-size: 0.7rem;
    }
    
    .reveal-button {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        min-width: 60px;
    }
}