/**
 * DeMV Platform - NFT Consolidated Fixes
 * Combines all fixes from nft-card-fixes.css and nft-marketplace-fixes.css
 * Created: 2025-04-24
 */

/* ========== NFT Card Base Styling ========== */
.nft-card {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(108, 99, 255, 0.4);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(108, 99, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nft-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(108, 99, 255, 0.4);
    border-color: rgba(108, 99, 255, 0.7);
}

.nft-card:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(108, 99, 255, 0) 0%, 
        rgba(108, 99, 255, 0.3) 50%, 
        rgba(108, 99, 255, 0) 100%);
    z-index: -1;
    transform: rotate(0deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.nft-card:hover:before {
    opacity: 1;
    transform: rotate(180deg);
}

/* ========== NFT Card Image ========== */
.nft-card-image-container {
    position: relative;
    overflow: hidden;
    padding-top: 66.67%; /* 3:2 aspect ratio */
}

.nft-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nft-card:hover .nft-card-image {
    transform: scale(1.05);
}

/* ========== NFT Card Badges ========== */
.nft-card-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.nft-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.nft-badge-verified {
    background-color: #4CAF50;
    color: #fff;
}

.nft-badge-fractionalized {
    background-color: #2196F3;
    color: #fff;
}

.nft-badge-rental {
    background-color: #FF5722;
    color: #fff;
}

.nft-badge-blockchain {
    background-color: #9C27B0;
    color: #fff;
}

/* ========== NFT Card Content ========== */
.nft-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.nft-card-title {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--text-color, #ffffff);
}

.nft-card-description {
    margin: 0 0 15px;
    font-size: 14px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    flex-grow: 1;
}

/* ========== Ownership Progress Bar ========== */
.nft-card-ownership {
    margin-bottom: 15px;
    width: 100%;
}

.ownership-progress {
    width: 100% !important;
    height: 8px !important;
    background: rgba(20, 20, 30, 0.6) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    position: relative !important;
    margin-bottom: 8px !important;
    border: 1px solid rgba(108, 99, 255, 0.2) !important;
    display: block !important;
}

.ownership-progress-bar {
    height: 100% !important;
    background: linear-gradient(90deg, #6c63ff, #00ccff) !important;
    border-radius: 4px !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    box-shadow: 0 0 8px rgba(108, 99, 255, 0.6) !important;
    min-width: 5px !important; /* Ensure the bar is always visible */
    transition: width 0.3s ease !important;
}

.ownership-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    width: 100%;
}

.ownership-stats span {
    text-align: center;
}

/* ========== NFT Card Price ========== */
.nft-card-price {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.price-label {
    font-size: 12px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    margin-bottom: 4px;
}

.price-value {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    color: var(--text-primary);
}

.price-value .fa-ethereum,
.price-value .fas.fa-ethereum,
.price-value .fab.fa-ethereum {
    color: #62688F;
    font-size: 1.1em;
    margin-right: 3px;
    display: inline-block;
}

.price-value .fa-ethereum:before,
.price-value .fas.fa-ethereum:before,
.price-value .fab.fa-ethereum:before {
    content: "Ξ"; /* Ethereum symbol as fallback */
}

.price-value i {
    margin-right: 4px;
    color: #6c63ff;
}

/* NFT Card Action Buttons */
.nft-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: space-between;
    width: 100%;
}

.nft-card-btn {
    flex: 1;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    outline: none;
    text-align: center;
}

.nft-card-btn i {
    font-size: 0.9rem;
}

.nft-card-btn-primary {
    background: linear-gradient(135deg, #6c63ff 0%, #4d44db 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(108, 99, 255, 0.3);
}

.nft-card-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(108, 99, 255, 0.5);
}

.nft-card-btn-secondary {
    background: rgba(20, 20, 30, 0.6);
    color: var(--text-primary);
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.nft-card-btn-secondary:hover {
    background: rgba(108, 99, 255, 0.1);
    transform: translateY(-2px);
}

/* NFT Card Links */
.nft-card-links {
    display: flex;
    gap: 15px;
    margin-top: 12px;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.nft-card-link {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 20px;
    background: rgba(20, 20, 30, 0.4);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nft-card-link:hover {
    color: var(--text-primary);
    background: rgba(108, 99, 255, 0.1);
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateY(-2px);
}

.nft-card-link i {
    font-size: 0.85rem;
    color: #6c63ff;
}

/* ========== NFT Cards Container ========== */
.nft-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* ========== Modal Ownership Progress Bar ========== */
.nft-details-ownership .ownership-progress {
    width: 100% !important;
    height: 8px !important;
    background: rgba(20, 20, 30, 0.6) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    position: relative !important;
    margin-bottom: 8px !important;
    border: 1px solid rgba(119, 0, 255, 0.2) !important;
}

.nft-details-ownership .ownership-progress-bar {
    height: 100% !important;
    background: #7700ff !important;
    border-radius: 4px !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    box-shadow: 0 0 8px rgba(119, 0, 255, 0.6) !important;
}

/* ========== Gradient Text ========== */
.gradient-text {
    background: linear-gradient(135deg, #6c63ff 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
}

/* ========== Page Header ========== */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    max-width: 800px;
    margin: 0 auto;
}

/* ========== NFT Container ========== */
.nft-container {
    padding: 120px 20px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ========== Responsive Styles ========== */
@media (max-width: 768px) {
    .nft-cards-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .nft-cards-container {
        grid-template-columns: 1fr;
    }
    
    .nft-card-actions {
        flex-direction: column;
    }
}

/* ========== Tab Navigation ========== */
.tab-container {
    margin-bottom: 30px;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid rgba(108, 99, 255, 0.2);
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.tab-button {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--text-primary, #ffffff);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}

.tab-button:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #6c63ff 0%, #ff6b6b 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-button.active {
    color: #6c63ff;
}

.tab-button.active:after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block !important;
}

/* ========== Loading Styles ========== */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.loading-spinner {
    border: 4px solid rgba(108, 99, 255, 0.1);
    border-left: 4px solid #6c63ff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

/* ========== Connect Wallet ========== */
.connect-wallet-container {
    text-align: center;
    padding: 40px 20px;
    background: rgba(108, 99, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 30px;
}

.connect-wallet-btn {
    background: linear-gradient(135deg, #6c63ff 0%, #5a52e0 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.connect-wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

/* ========== Explanation Section ========== */
.explanation-container {
    margin-bottom: 40px;
}

.explanation-content {
    padding: 20px;
    background: rgba(108, 99, 255, 0.05);
    border-radius: 10px;
}

.explanation-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.explanation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
}

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

.explanation-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.explanation-link {
    margin-top: 10px;
    color: #6c63ff;
    text-decoration: none;
}

/* ========== Loading Overlay ========== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

.loading-overlay-hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner-large {
    border: 6px solid rgba(108, 99, 255, 0.1);
    border-left: 6px solid #6c63ff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

#loading-message {
    color: #fff;
    font-size: 18px;
    text-align: center;
    text-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}

/* ========== NFT Filters ========== */
.nft-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    background: rgba(20, 20, 30, 0.5);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.filter-group label {
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
}

.filter-group .form-control {
    background: rgba(30, 30, 40, 0.8);
    border: 1px solid rgba(108, 99, 255, 0.3);
    color: var(--text-primary, #ffffff);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.filter-group .form-control:focus {
    border-color: rgba(108, 99, 255, 0.6);
    box-shadow: 0 0 8px rgba(108, 99, 255, 0.3);
    outline: none;
}

.filter-group .form-control option {
    background: rgba(30, 30, 40, 0.95);
    color: var(--text-primary, #ffffff);
}

/* ========== NFT Pagination ========== */
.nft-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.pagination-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-button {
    background: rgba(108, 99, 255, 0.1);
    color: var(--text-primary, #ffffff);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-button:hover {
    background: rgba(108, 99, 255, 0.2);
    border-color: rgba(108, 99, 255, 0.5);
    transform: translateY(-2px);
}

.pagination-button.active {
    background: linear-gradient(90deg, #6c63ff, #00ccff);
    color: #fff;
    border: none;
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.4);
}

.pagination-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-info {
    margin: 0 10px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    font-size: 14px;
}

/* ========== Fractionalize Form ========== */
.fractionalize-form {
    background: rgba(20, 20, 30, 0.5);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 10px;
    padding: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.tab-section-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-primary, #ffffff);
}

.tab-section-description {
    font-size: 1rem;
    margin-bottom: 25px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
}

.form-group {
    margin-bottom: 20px;
}

.form-group-half {
    width: calc(50% - 10px);
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
}

.form-control {
    width: 100%;
    background: rgba(30, 30, 40, 0.8);
    border: 1px solid rgba(108, 99, 255, 0.3);
    color: var(--text-primary, #ffffff);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: rgba(108, 99, 255, 0.6);
    box-shadow: 0 0 8px rgba(108, 99, 255, 0.3);
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.file-upload-container {
    position: relative;
    margin-bottom: 10px;
}

.file-upload {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 99, 255, 0.1);
    color: #00ccff;
    border: 1px dashed rgba(108, 99, 255, 0.5);
    border-radius: 5px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.file-upload-label i {
    margin-right: 8px;
    font-size: 18px;
}

.file-upload-label:hover {
    background: rgba(108, 99, 255, 0.2);
    border-color: rgba(108, 99, 255, 0.7);
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.image-preview {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid rgba(108, 99, 255, 0.3);
}

/* ========== NFT Details Modal Styling ========== */
#nft-details-modal .modal-content {
    position: relative;
    background-color: var(--bg-secondary);
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(108, 99, 255, 0.3);
}

#nft-details-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.nft-details-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Rental Information Styles */
.nft-details-rental {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(18, 18, 24, 0.9) !important;
    border: 1px solid rgba(0, 255, 204, 0.3) !important;
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.2) !important;
}

.nft-details-rental h4 {
    color: #00ffcc !important;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid rgba(0, 255, 204, 0.3) !important;
    padding-bottom: 8px;
    font-weight: 600 !important;
    font-family: 'Rajdhani', sans-serif !important;
    letter-spacing: 1px !important;
}

.rental-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.rental-stat {
    display: flex;
    flex-direction: column;
}

.rental-stat .stat-label {
    font-size: 14px;
    color: #a0a0a8 !important;
    margin-bottom: 5px;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.rental-stat .stat-value {
    font-size: 16px;
    font-weight: bold !important;
    color: #f8f9fa !important;
    text-shadow: 0 0 5px rgba(248, 249, 250, 0.3) !important;
}

.rental-status {
    display: inline-block;
    font-weight: bold !important;
    color: #f8f9fa !important;
    font-size: 16px;
    letter-spacing: 0.5px !important;
}

.rental-status-active {
    color: #4CAF50 !important;
}

.rental-status-inactive {
    color: #F44336 !important;
}

.rental-status-pending {
    color: #FFC107 !important;
}

.nft-details-btn-rental {
    background-color: #FF5722;
    color: white;
    border: none;
}

.nft-details-btn-rental:hover {
    background-color: #E64A19;
}

.nft-details-title {
    padding: 20px 20px 0;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    text-align: center;
    font-size: 2rem;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nft-details-image-container {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    background: rgba(15, 15, 25, 0.6);
    height: 40vh;
    min-height: 200px;
    max-height: 400px;
    border: none;
    border-bottom: 1px solid rgba(108, 99, 255, 0.3);
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

#nft-details-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.nft-details-image-container:hover #nft-details-image {
    transform: scale(1.05);
}

.nft-details-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.nft-details-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 100%;
}

.nft-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nft-badge-fractionalized {
    background: linear-gradient(135deg, #6c63ff 0%, #4d44db 100%);
}

.nft-badge-verified {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
}

.nft-details-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.nft-details-actions {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.nft-details-btn {
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 150px;
    border: none;
    outline: none;
}

.nft-details-btn i {
    font-size: 1rem;
}

.nft-details-btn-primary {
    background: linear-gradient(135deg, #6c63ff 0%, #4d44db 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(108, 99, 255, 0.3);
}

.nft-details-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(108, 99, 255, 0.5);
}

.nft-details-btn-secondary {
    background: rgba(20, 20, 30, 0.6);
    color: var(--text-primary);
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.nft-details-btn-secondary:hover {
    background: rgba(108, 99, 255, 0.1);
    transform: translateY(-2px);
}

.nft-details-ownership {
    background: rgba(15, 15, 25, 0.5);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.ownership-progress {
    position: relative;
    height: 10px;
    background: rgba(20, 20, 30, 0.5);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 15px;
}

.ownership-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #4d44db, #6c63ff);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.ownership-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.ownership-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(20, 20, 30, 0.5);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: bold;
}

.nft-details-specs {
    background: rgba(15, 15, 25, 0.5);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    background: rgba(20, 20, 30, 0.5);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.spec-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.spec-value {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.nft-details-history {
    background: rgba(15, 15, 25, 0.5);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.nft-details-ownership h4,
.nft-details-specs h4,
.nft-details-history h4,
.nft-details-price-history h4,
.nft-gallery-title,
.related-nfts-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--text-primary);
    position: relative;
    padding-left: 20px;
}

.nft-details-ownership h4::before,
.nft-details-specs h4::before,
.nft-details-history h4::before,
.nft-details-price-history h4::before,
.nft-gallery-title::before,
.related-nfts-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #6c63ff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}

@media (min-width: 768px) {
    .nft-details-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas: 
            "title"
            "image"
            "description"
            "actions"
            "gallery"
            "ownership"
            "specs"
            "history"
            "price-history"
            "related";
        gap: 20px;
        max-width: 800px;
        margin: 0 auto;
        padding-top: 0;
    }
    
    .nft-details-title {
        grid-area: title;
        margin-top: 20px;
    }
    
    .nft-details-image-container {
        grid-area: image;
    }
    
    .nft-details-description {
        grid-area: description;
        text-align: center;
        margin: 0 auto;
        max-width: 700px;
        padding: 0 20px;
    }
    
    .nft-details-actions {
        grid-area: actions;
        justify-content: center;
    }
    
    .nft-gallery {
        grid-area: gallery;
    }
    
    .nft-details-ownership {
        grid-area: ownership;
    }
    
    .nft-details-specs {
        grid-area: specs;
    }
    
    .nft-details-history {
        grid-area: history;
    }
    
    .nft-details-price-history {
        grid-area: price-history;
    }
    
    .related-nfts {
        grid-area: related;
    }
}

@media (min-width: 992px) {
    .nft-details-container {
        max-width: 900px;
    }
    
    .nft-details-image-container {
        max-width: 600px;
    }
}

/* ========== Make Offer Modal Styling ========== */
#make-offer-modal .modal-content {
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(108, 99, 255, 0.4);
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.2);
}

.make-offer-container {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.make-offer-info {
    background: rgba(15, 15, 25, 0.5);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.make-offer-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--text-primary);
    background: linear-gradient(90deg, #fff, #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.make-offer-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.make-offer-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(20, 20, 30, 0.5);
    border-radius: 5px;
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.make-offer-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.form-control {
    padding: 12px;
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: rgba(108, 99, 255, 0.8);
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.2);
}

.make-offer-note {
    background: rgba(15, 15, 25, 0.3);
    border-left: 3px solid rgba(108, 99, 255, 0.5);
    padding: 10px 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-radius: 0 5px 5px 0;
}

.confirm-btn {
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #6c63ff 0%, #4d44db 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(108, 99, 255, 0.3);
    font-size: 1rem;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(108, 99, 255, 0.5);
}

/* ========== Loading Overlay Styling ========== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 20, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

.loading-overlay-hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(108, 99, 255, 0.2);
    border-radius: 50%;
    border-top-color: #6c63ff;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-message {
    color: var(--text-primary);
    font-size: 1.2rem;
    text-align: center;
    max-width: 80%;
    text-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== NFT Transaction History ========== */
.nft-details-history {
    background: rgba(15, 15, 25, 0.5);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(108, 99, 255, 0.2);
    margin-bottom: 15px;
}

.nft-details-history h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.history-timeline {
    position: relative;
    padding-left: 30px;
}

.history-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 8px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(108, 99, 255, 0.8), rgba(108, 99, 255, 0.1));
}

.timeline-event {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.timeline-event:last-child {
    margin-bottom: 0;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #6c63ff;
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
    z-index: 1;
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.timeline-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-detail {
    background: rgba(20, 20, 30, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.timeline-detail i {
    font-size: 0.8rem;
    color: #6c63ff;
}

/* ========== NFT Gallery ========== */
.nft-gallery {
    margin-top: 20px;
}

.nft-gallery-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.gallery-item {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(108, 99, 255, 0.2);
    transition: all 0.3s ease;
    aspect-ratio: 1/1;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== Gallery section styling ========== */
.nft-gallery {
    background: rgba(15, 15, 25, 0.5);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(108, 99, 255, 0.2);
    margin-top: 20px;
}

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

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(108, 99, 255, 0.1);
    aspect-ratio: 1/1;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
    border-color: rgba(108, 99, 255, 0.5);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* ========== Related NFTs Section ========== */
.related-nfts {
    margin-top: 20px;
}

.related-nfts-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.related-nfts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.related-nft-item {
    background: rgba(15, 15, 25, 0.5);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(108, 99, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-nft-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.related-nft-image {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
}

.related-nft-info {
    padding: 10px;
}

.related-nft-name {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-nft-price {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========== Price History Chart ========== */
.nft-details-price-history {
    background: rgba(15, 15, 25, 0.5);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(108, 99, 255, 0.2);
    margin-bottom: 15px;
}

.nft-details-price-history h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.price-chart-container {
    height: 200px;
    position: relative;
    margin-top: 10px;
}

.price-chart {
    width: 100%;
    height: 100%;
    position: relative;
}

.chart-line {
    fill: none;
    stroke: #6c63ff;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.chart-area {
    fill: url(#chart-gradient);
    opacity: 0.3;
}

.chart-point {
    fill: #6c63ff;
    stroke: #fff;
    stroke-width: 2;
    cursor: pointer;
    transition: r 0.2s ease;
}

.chart-point:hover {
    r: 6;
}

.chart-tooltip {
    position: absolute;
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid rgba(108, 99, 255, 0.4);
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 0.8rem;
    color: var(--text-primary);
    pointer-events: none;
    transform: translate(-50%, -100%);
    margin-top: -10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    white-space: nowrap;
}

.chart-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(108, 99, 255, 0.4);
}

.chart-axis {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1;
}

.chart-label {
    fill: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
}

.price-range {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.price-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.price-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(20, 20, 30, 0.5);
    padding: 8px;
    border-radius: 5px;
    flex: 1;
    margin: 0 5px;
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.price-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.price-stat-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: bold;
}

.price-stat-change {
    font-size: 0.8rem;
    margin-top: 3px;
}

.price-up {
    color: #4caf50;
}

.price-down {
    color: #f44336;
}

/* Price display styling */
.price-value {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    color: var(--text-primary);
}

.price-value .fa-ethereum,
.price-value .fas.fa-ethereum,
.price-value .fab.fa-ethereum {
    color: #62688F;
    font-size: 1.1em;
    margin-right: 3px;
    display: inline-block;
}

.price-value .fa-ethereum:before,
.price-value .fas.fa-ethereum:before,
.price-value .fab.fa-ethereum:before {
    content: "Ξ"; /* Ethereum symbol as fallback */
}

.price-value i {
    margin-right: 4px;
    color: #6c63ff;
}

/* NFT card price styling */
.nft-card-price {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

.nft-card-price .price-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.nft-card-price .price-value {
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

/* Ethereum icon styling */
.fa-ethereum,
.fas.fa-ethereum,
.fab.fa-ethereum {
    color: #62688F;
    font-size: 1.1em;
    margin-right: 3px;
    display: inline-block;
}

.fa-ethereum:before,
.fas.fa-ethereum:before,
.fab.fa-ethereum:before {
    content: "Ξ"; /* Ethereum symbol as fallback */
}

/* Content sections */
.nft-details-description,
.nft-details-actions,
.nft-details-ownership,
.nft-details-specs,
.nft-details-history,
.nft-details-price-history,
.nft-gallery,
.related-nfts {
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

/* Modal styling fixes */
.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .nft-details-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas: 
            "title"
            "image"
            "description"
            "actions"
            "gallery"
            "ownership"
            "specs"
            "history"
            "price-history"
            "related";
        gap: 20px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding-top: 0;
        box-sizing: border-box;
    }
}

.nft-details-actions {
    display: flex;
    gap: 15px;
    margin: 20px;
    flex-wrap: wrap;
    justify-content: center;
    width: calc(100% - 40px);
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .nft-details-actions {
        justify-content: center;
    }
}

/* Buyout Proposals Styling */
.buyout-proposals-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.buyout-proposal {
    background: rgba(20, 20, 30, 0.6);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(108, 99, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.buyout-proposal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(108, 99, 255, 0.1);
    padding-bottom: 15px;
}

.buyout-proposal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.buyout-proposal-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #6c63ff 0%, #4d44db 100%);
}

.buyout-proposal-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.buyout-proposal-detail {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

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

.detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.buyout-proposal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 10px;
}

.buyout-proposal-btn {
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    outline: none;
}

.buyout-proposal-btn-yes {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.buyout-proposal-btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.5);
}

.buyout-proposal-btn-no {
    background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(244, 67, 54, 0.3);
}

.buyout-proposal-btn-no:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(244, 67, 54, 0.5);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: rgba(108, 99, 255, 0.5);
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 1rem;
    max-width: 400px;
}
