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

:root {
    /* Luxury Dark Palette */
    --primary-color: #d4af37;
    --primary-hover: #f4e4c1;
    --secondary-color: #b8942a;
    --accent-gold: #d4af37;
    --accent-champagne: #f4e4c1;
    --accent-rose-gold: #c9a77d;
    
    /* Backgrounds */
    --background: #0a0a0a;
    --surface: #111111;
    --surface-light: #1a1a1a;
    --surface-elevated: #222222;
    
    /* Text Colors */
    --text-primary: #fafafa;
    --text-secondary: #b8b8b8;
    --text-muted: #808080;
    
    /* Borders */
    --border: #2a2a2a;
    --border-light: #333333;
    --border-gold: rgba(212, 175, 55, 0.3);
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Shadows & Effects */
    --shadow-gold: rgba(212, 175, 55, 0.15);
    --shadow-gold-intense: rgba(212, 175, 55, 0.3);
    --glow-gold: 0 0 20px rgba(212, 175, 55, 0.4);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

/* Header */
.header {
    background: rgba(17, 17, 17, 0.85);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-champagne), var(--accent-rose-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px var(--shadow-gold);
}

.logo-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #000000;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: 1px solid var(--border-gold);
    box-shadow: 0 4px 15px var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-gold), 0 10px 30px var(--shadow-gold-intense);
    background: linear-gradient(135deg, var(--accent-champagne), var(--accent-gold));
}

.btn-secondary {
    background: var(--surface-light);
    color: var(--text-primary);
    border: 1px solid var(--border);
    letter-spacing: 0.05em;
}

.btn-secondary:hover {
    background: var(--surface-elevated);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px var(--shadow-gold);
    color: var(--accent-gold);
}

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08), transparent 70%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--accent-champagne), var(--accent-gold), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 20px var(--shadow-gold);
}

.hero-description {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    letter-spacing: 0.03em;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-champagne));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Network Status */
.network-status {
    background: var(--warning);
    color: #000;
    padding: 1rem 0;
    text-align: center;
}

.status-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.status-icon {
    font-size: 1.5rem;
}

/* Collection Section */
.collection {
    padding: 4rem 0;
    min-height: 60vh;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    letter-spacing: 0.02em;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 0;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--surface-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Collection Grid */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* NFT Card */
.nft-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nft-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, transparent, var(--border-gold), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nft-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--glow-gold), 0 20px 40px var(--shadow-gold-intense);
    border-color: var(--accent-gold);
}

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

.nft-card-media {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: var(--surface-light);
    overflow: hidden;
}

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

.nft-card-content {
    padding: 1.5rem;
}

.nft-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

.nft-card-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nft-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.nft-card-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.nft-card-value {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-secondary);
}

.empty-state p {
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-gold);
    border-radius: 1rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: var(--glow-gold), 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--surface-light);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000000;
    box-shadow: var(--glow-gold);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.nft-media video {
    width: 100%;
    border-radius: 0.5rem;
}

.nft-details {
    padding: 1rem;
}

.nft-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--accent-champagne), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nft-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.nft-info {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.info-value {
    font-weight: 600;
    font-family: monospace;
}

.nft-attributes {
    margin-bottom: 2rem;
}

.nft-attributes h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.attributes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.attribute {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.attribute:hover {
    border-color: var(--border-gold);
    box-shadow: 0 4px 12px var(--shadow-gold);
}

.attribute-type {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.attribute-value {
    font-size: 1rem;
    font-weight: 600;
}

.nft-actions {
    display: flex;
    gap: 1rem;
}

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

/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-info h3 {
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    color: var(--accent-gold);
}

.footer-info p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.contract-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.contract-address {
    font-family: monospace;
    font-size: 0.875rem;
    word-break: break-all;
}

/* Responsive Design */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        gap: 3rem;
    }
    
    .collection-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .header {
        padding: 1rem 0;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .logo h1 {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: space-around;
    }
    
    .stat {
        min-width: 120px;
    }
    
    .collection {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .collection-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .attributes-grid {
        grid-template-columns: 1fr;
    }
    
    .nft-actions {
        flex-direction: column;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .header {
        padding: 0.75rem 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo-subtitle {
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
        min-height: 44px;
    }
    
    .btn-small {
        padding: 0.5rem 1rem;
        min-height: 40px;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .stat {
        width: 100%;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .collection {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .collection-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1rem 0;
    }
    
    .nft-card-content {
        padding: 1.25rem;
    }
    
    .nft-card-title {
        font-size: 1.125rem;
    }
    
    .modal-content {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .modal-body {
        padding: 1rem;
        gap: 1rem;
    }
    
    .nft-title {
        font-size: 1.5rem;
    }
    
    .nft-media video {
        border-radius: 0.25rem;
    }
    
    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
    
    .footer {
        padding: 2rem 0;
        margin-top: 3rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes goldPulse {
    0%, 100% {
        box-shadow: 0 0 5px var(--shadow-gold);
    }
    50% {
        box-shadow: var(--glow-gold);
    }
}

.nft-card {
    animation: fadeIn 0.5s ease;
}

/* Premium Loading Animation */
.loader {
    border-top-color: var(--accent-gold);
    animation: spin 1s linear infinite, goldPulse 2s ease-in-out infinite;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--surface-light), var(--surface-elevated));
    border-radius: 5px;
    border: 1px solid var(--border);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-gold), var(--accent-rose-gold));
    box-shadow: var(--glow-gold);
}

