/* Sealed White Cube v0 - Refined Art Gallery Interface */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    min-height: 100vh;
    line-height: 1.5;
}

.container {
    max-width: 880px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

header p {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Wallet Status - Top Right (Rarible Style) */
.wallet-status-topright {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
}

.wallet-btn {
    background: #1a1a1a;
    color: white;
    border: 1px solid #1a1a1a;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-btn:hover {
    background: #333333;
    border-color: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.15);
}

.wallet-info {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-dropdown {
    position: relative;
    display: inline-block;
}

.wallet-connected-btn {
    background: white;
    color: #1a1a1a;
    border: 1px solid #e8e8e8;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    justify-content: space-between;
}

.wallet-connected-btn:hover {
    border-color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(26, 26, 26, 0.1);
}

.wallet-connected-btn::after {
    content: '▼';
    font-size: 0.7rem;
    color: #666666;
    transition: transform 0.2s ease;
}

.wallet-connected-btn.active::after {
    transform: rotate(180deg);
}

#wallet-address {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: #1a1a1a;
    font-weight: 500;
}

.wallet-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.wallet-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wallet-dropdown-header {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.wallet-dropdown-address {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: #666666;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-address-btn {
    width: 100%;
    background: #f8f8f8;
    color: #666666;
    border: 1px solid #e8e8e8;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copy-address-btn:hover {
    background: #e8e8e8;
    border-color: #d1d5db;
}

.nft-ownership-status {
    padding: 8px 0;
    margin-bottom: 12px;
}

.nft-owner-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 4px;
    background: #e8f5e8;
    color: #2d5a2d;
    border: 1px solid #c8e6c8;
}

.nft-owner-item.not-owned {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.nft-owner-icon {
    font-size: 0.9rem;
    font-weight: bold;
}

.nft-owner-text {
    flex: 1;
}

.wallet-dropdown-actions {
    padding: 8px 12px 12px 12px;
}

.disconnect-btn {
    width: 100%;
    background: #f8f8f8;
    color: #666666;
    border: 1px solid #e8e8e8;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.disconnect-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

.wallet-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    margin-right: 4px;
}

/* Access Denied Panel */
.access-panel {
    text-align: center;
    padding: 80px 40px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    margin: 40px 0;
}

.access-message h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 300;
}

.access-message p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #666666;
    font-weight: 300;
}

.dummy-preview {
    margin: 50px 0;
}

.nft-preview {
    width: 300px;
    height: 300px;
    border: 1px solid #e8e8e8;
    margin-bottom: 20px;
    background: #f8f8f8;
}

.purchase-section {
    margin-top: 50px;
}

.purchase-section h3 {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #1a1a1a;
    font-weight: 400;
    text-align: center;
}

.nft-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto 30px;
}

.purchase-link {
    display: block;
    color: #1a1a1a;
    text-decoration: none;
    padding: 15px 30px;
    border: 1px solid #1a1a1a;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.purchase-link:hover {
    background: #1a1a1a;
    color: white;
}

.purchase-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #999999;
    font-weight: 300;
    text-align: center;
}

/* Main Interface */
.main-interface {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* NFT Display */
.nft-display {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fafafa;
    padding: 30px;
    border: 1px solid #e8e8e8;
}

.owned-nft {
    width: 80px;
    height: 80px;
    border: 1px solid #e8e8e8;
    background: #f8f8f8;
}

.nft-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #1a1a1a;
    font-weight: 400;
}

.nft-info p {
    color: #666666;
    font-size: 0.9rem;
    font-weight: 300;
}

/* Camera Main Display */
.camera-main {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    padding: 10px 30px;
    max-width: 880px;
    margin: 0 auto;
}

.camera-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #000000;
    border: 1px solid #e8e8e8;
}

#camera-stream {
    width: 100%;
    height: auto;
    display: block;
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.camera-controls {
    display: flex;
    gap: 20px;
}

.camera-btn {
    padding: 12px 24px;
    border: 1px solid white;
    background: transparent;
    color: white;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.camera-btn:hover {
    background: white;
    color: #1a1a1a;
}

.camera-info {
    color: white;
    font-size: 1rem;
    text-align: center;
    font-weight: 300;
}

.access-required {
    color: #666666;
    font-size: 0.9rem;
    padding: 20px;
    background: #f0f0f0;
    border: 1px solid #e8e8e8;
    text-align: center;
    font-weight: 300;
}

/* Secondary Controls */
.secondary-controls {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    padding: 30px;
}

.control-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.control-item {
    text-align: center;
}

.control-item h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px;
    border: 1px solid #e8e8e8;
    background: white;
    color: #1a1a1a;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    min-height: 120px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.control-btn:hover {
    background: #f8f8f8;
}

.control-btn.active {
    background: #1a1a1a;
    color: white;
}

.control-btn.disabled {
    background: #f0f0f0;
    color: #999999;
    cursor: not-allowed;
    opacity: 0.6;
}

.control-btn.disabled:hover {
    background: #f0f0f0;
}

.control-icon {
    font-size: 1.8rem;
}

/* System Status */
.system-status {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 7px;
    color: #666666;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cccccc;
    transition: all 0.3s ease;
}

.status-dot.connected {
    background: #1a1a1a;
}

.status-dot.error {
    background: #666666;
}

/* Loading Section */
.loading-section {
    text-align: center;
    padding: 80px 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid #f0f0f0;
    border-left: 2px solid #1a1a1a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-section p {
    color: #666666;
    font-size: 1rem;
    font-weight: 300;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    header h1 {
        font-size: 2rem;
    }

    .control-group {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nft-display {
        flex-direction: column;
        text-align: center;
    }

    .system-status {
        flex-direction: column;
        gap: 15px;
    }

    .camera-controls {
        flex-direction: column;
        width: 100%;
    }

    .camera-btn {
        width: 100%;
    }

    .nft-links {
        max-width: 100%;
    }
}

/*
 Header Layout */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header-left h1 {
    margin: 0;
    font-size: 2.5em;
}

.header-left p {
    margin: 5px 0 0 0;
    color: #666;
}

/* Footer Layout */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding: 0 20px;
    font-size: 14px;
    color: #666;
}

.footer-left {
    text-align: left;
}

.footer-right {
    text-align: right;
}

/* Main Interface Spacing */
.main-interface {
    margin-top: 0;
}

/* Secondary Controls Layout - Same style as camera-main */
.secondary-controls-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
    gap: 10px;
    max-width: 860px;
}

.secondary-controls-left,
.secondary-controls-right {
    aspect-ratio: 6;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    padding: 10px 30px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: calc(50% - 10px);
}

.secondary-controls-left h4,
.secondary-controls-right h4 {
    text-align: left;
    margin: 0;
}

.secondary-controls-left button,
.secondary-controls-right button {
    margin: 0;
    text-align: center;
    width: 120px !important;
    height: 60px !important;
    min-height: 60px !important;
    aspect-ratio: 1;
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 0;
    padding: 0;
    font-size: 0.8rem;
}

/* H
1 and info container styles */
h1 {
    text-align: center;
    margin: 0;
    font-size: 2.5em;
    color: #333;
}

.info-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 0;
    font-size: 14px;
    color: #666;
}

/* System status in header */
.system-status-header {
    display: flex;
    gap: 15px;
    font-size: 7px;
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 3px;
}

.status-dot.connected {
    background-color: #4CAF50;
}

.status-dot.disconnected {
    background-color: #f44336;
}

.status-dot.connecting {
    background-color: #ff9800;
}

/* NFT Card Section */
.nft-card-section {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nft-card {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 10px;
    max-width: 150px;
    text-align: center;
    transition: all 0.3s ease;
}

.nft-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nft-card a {
    display: block;
    text-decoration: none;
}

.nft-card-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nft-card-image:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.nft-card-title {
    font-size: 0.9rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 5px;
}/* Purch
ase NFT Cards */
.purchase-nft-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.purchase-nft-card {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 15px;
    max-width: 200px;
    text-align: center;
    transition: all 0.3s ease;
}

.purchase-nft-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.purchase-nft-card-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.purchase-nft-card-title {
    font-size: 1rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.purchase-nft-card-description {
    font-size: 0.8rem;
    color: #666666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.purchase-nft-card-link {
    display: inline-block;
    color: #1a1a1a;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid #1a1a1a;
    font-size: 0.7rem;
    font-weight: 400;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.purchase-nft-card-link:hover {
    background: #1a1a1a;
    color: white;
}/* De
vice NFT Container Styles */
.device-nft-container {
    margin: 10px 0;
}

/* Overlay NFT Container for Light and Turntable */
.control-wrapper {
    position: relative;
}

.overlay-nft-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    margin: 0;
    pointer-events: none; /* Allow clicks to pass through to button */
}

.overlay-nft-container .device-nft-card {
    pointer-events: auto; /* Re-enable clicks on the NFT card itself */
    margin-bottom: 10px;
}

/* Camera NFT Container (inside camera overlay) */
#camera-nft-container {
    position: absolute;
    bottom: 60px;
    left: 20px;
    right: 20px;
    z-index: 5;
}

#camera-nft-container .device-nft-card {
    margin: 0 auto;
}

/* NFT Purchase Button Containers */
.nft-purchase-btn-container {
    margin: 10px 0;
    text-align: center;
}

/* Camera purchase button styling */
#camera-purchase-btn-container {
    margin-top: 20px;
}

#camera-purchase-btn-container .purchase-nft-card-link {
    background: transparent;
    color: white;
    border: 1px solid white;
}

#camera-purchase-btn-container .purchase-nft-card-link:hover {
    background: white;
    color: #1a1a1a;
}

/* Light and Turntable purchase button styling */
#light-purchase-btn-container,
#turntable-purchase-btn-container {
    margin: 10px 0;
}/* S
trikethrough style for camera-info when NFT not owned */
.camera-info.strikethrough {
    text-decoration: line-through;
    opacity: 0.6;
}/* Camer
a access required styling */
.camera-overlay .access-required {
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}