/* Verity Web3 Marketplace 2025 Styles */

:root {
    --primary-color: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background-light: #f8fafc;
    --border-color: #e5e7eb;
    --border-radius: 0.75rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
.web3_hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.web3_hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="g"><stop offset="20%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="50%" stop-color="%23ffffff" stop-opacity="0.05"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23g)"/><circle cx="800" cy="300" r="150" fill="url(%23g)"/><circle cx="400" cy="700" r="120" fill="url(%23g)"/></svg>') no-repeat center;
    opacity: 0.3;
    pointer-events: none;
}

.hero_title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero_subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.stats_bar {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat_item {
    text-align: center;
}

.stat_number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.stat_label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero_actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero_actions .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero_actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
}

.hero_actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero_actions .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
}

.hero_actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Featured Collection Card */
.featured_collection_card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.featured_collection_card:hover {
    transform: translateY(-5px);
}

.collection_image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 1rem;
}

.placeholder_image {
    width: 100%;
    height: 250px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection_info h3 {
    color: white;
    margin: 1rem 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.collection_info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.price_badge {
    background: var(--success-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    display: inline-block;
}

/* Trust Section */
.trust_section {
    padding: 3rem 0;
    background: var(--background-light);
}

.trust_indicators {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.trust_item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.trust_item i {
    font-size: 1.2rem;
}

/* Collections Section */
.collections_section {
    padding: 5rem 0;
}

.section_title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section_subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.collection_card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.collection_card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.collection_image_container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.collection_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.collection_card:hover .collection_image {
    transform: scale(1.05);
}

.collection_placeholder {
    width: 100%;
    height: 100%;
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured_badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--warning-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.collection_body {
    padding: 1.5rem;
    flex-grow: 1;
}

.collection_title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.collection_description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.collection_impact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(14, 165, 233, 0.1);
    padding: 0.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
}

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

.stat {
    text-align: center;
}

.stat_value {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.stat_label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.price_display {
    font-weight: 600;
}

.price_amount {
    font-size: 1.25rem;
    color: var(--text-dark);
}

.price_currency {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-left: 0.25rem;
}

.buy_now_btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.buy_now_btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.buy_now_btn:disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

/* Empty State */
.empty_state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.empty_state h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Impact Section */
.impact_section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.impact_metrics {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.metric_card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric_icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric_number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.metric_label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.metric_desc {
    font-size: 0.875rem;
    color: var(--text-light);
}

.dashboard_preview {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.dashboard_preview h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.chart_placeholder {
    background: var(--background-light);
    height: 200px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.dashboard_note {
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modals and Overlays */
.nft-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.success-modal {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: slideIn 0.3s ease;
}

.success-header {
    text-align: center;
    margin-bottom: 2rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.success-header h2 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.success-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.success-details {
    margin: 1.5rem 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.detail-row a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.detail-row a:hover {
    text-decoration: underline;
}

.success-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.success-actions .btn-primary,
.success-actions .btn-secondary {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.success-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.success-actions .btn-secondary {
    background: var(--background-light);
    color: var(--text-dark);
}

.success-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.success-actions .btn-secondary:hover {
    background: var(--border-color);
}

/* Portal Invite Notification */
.portal-invite-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
    border: 1px solid #a78bfa;
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: slideInRight 0.3s ease;
}

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

.invite-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.invite-text h4 {
    margin: 0 0 0.25rem 0;
    color: #4c1d95;
    font-size: 1.1rem;
}

.invite-text p {
    margin: 0;
    color: #6b46c1;
    font-size: 0.9rem;
}

.invite-btn {
    background: white;
    color: #7c3aed;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.invite-btn:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: slideDown 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.toast-success {
    border-left-color: var(--success-color);
}

.toast-error {
    border-left-color: var(--error-color);
}

.toast-warning {
    border-left-color: var(--warning-color);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-message {
    font-weight: 500;
    color: var(--text-dark);
}

/* Purchase Status */
.purchase-status {
    text-align: center;
    padding: 2rem;
}

.status-indicator {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.status-indicator.pending {
    animation: pulse 2s infinite;
}

.status-message {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Collection Detail Page */
.collection_detail_card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 2rem;
}

.collection_header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.collection_header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.collection_image_large img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.placeholder_large {
    width: 100%;
    height: 400px;
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection_details {
    padding: 2rem;
}

.collection_details h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.recent_purchases {
    max-height: 300px;
    overflow-y: auto;
}

.purchase_item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-light);
}

.purchase_time {
    float: right;
    color: var(--text-light);
}

.purchase_sidebar {
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    position: sticky;
    top: 2rem;
}

.price_section {
    margin-bottom: 2rem;
}

.current_price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.currency {
    font-size: 1rem;
    color: var(--text-light);
    margin-left: 0.5rem;
}

.stats_section {
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat_row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.stat_row:last-child {
    margin-bottom: 0;
}

.quantity_selector {
    margin-bottom: 1rem;
}

.quantity_selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.quantity_controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity_controls button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity_controls button:hover {
    background: var(--background-light);
    border-color: var(--primary-color);
}

.quantity_controls input {
    flex: 1;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.total_price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        transform: scale(0.9); 
        opacity: 0; 
    }
    to { 
        transform: scale(1); 
        opacity: 1; 
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes counter-update {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); color: var(--primary-color); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero_title {
        font-size: 2.5rem;
    }
    
    .stats_bar {
        gap: 1rem;
    }
    
    .hero_actions {
        flex-direction: column;
    }
    
    .hero_actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .trust_indicators {
        flex-direction: column;
        gap: 1rem;
    }
    
    .impact_metrics {
        flex-direction: column;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .portal-invite-notification {
        left: 1rem;
        right: 1rem;
        top: 1rem;
        max-width: none;
    }
    
    .invite-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .collection_detail_card .collection_header {
        padding: 1.5rem;
    }
    
    .collection_detail_card .collection_details {
        padding: 1.5rem;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #f9fafb;
        --text-light: #d1d5db;
        --background-light: #1f2937;
        --border-color: #374151;
    }
}

/* Print Styles */
@media print {
    .web3_hero,
    .trust_section,
    .purchase_sidebar,
    .toast-notification,
    .portal-invite-notification,
    .nft-success-overlay {
        display: none !important;
    }
}
