/**
 * 3D XploreMarket Frontend Styles
 * Color Scheme: Cyan #00BCD4, Orange #FF9800, Deep Blue #0277BD
 */

:root {
    --xplore-cyan: #00BCD4;
    --xplore-cyan-light: #4DD0E1;
    --xplore-cyan-bg: #E0F7FA;
    --xplore-orange: #FF9800;
    --xplore-orange-light: #FFB74D;
    --xplore-orange-bg: #FFF3E0;
    --xplore-blue: #0277BD;
    --xplore-blue-light: #1976D2;
    --xplore-blue-bg: #E3F2FD;
    --xplore-dark: #212121;
    --xplore-light: #F5F5F5;
    --xplore-border: #DDD;
}

/* ========== GENERAL STYLES ========== */

.xplore-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.xplore-page-title {
    color: var(--xplore-blue);
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--xplore-cyan);
}

/* ========== BUTTONS ========== */

.xplore-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.xplore-btn-primary {
    background: linear-gradient(135deg, var(--xplore-orange), var(--xplore-orange-light));
    color: white;
}

.xplore-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.xplore-btn-secondary {
    background: linear-gradient(135deg, var(--xplore-cyan), var(--xplore-blue));
    color: white;
}

.xplore-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.xplore-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

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

/* ========== CARDS ========== */

.xplore-card {
    background: white;
    border: 1px solid var(--xplore-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.xplore-card:hover {
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.2);
}

.xplore-card-header {
    background: linear-gradient(135deg, var(--xplore-cyan), var(--xplore-blue));
    color: white;
    padding: 15px;
    margin: -20px -20px 20px -20px;
    border-radius: 8px 8px 0 0;
}

.xplore-card-header h3 {
    margin: 0;
    font-size: 18px;
}

/* ========== DASHBOARD GRID ========== */

.xplore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.xplore-stat-card {
    background: white;
    border-left: 5px solid var(--xplore-cyan);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.xplore-stat-card.orange {
    border-left-color: var(--xplore-orange);
}

.xplore-stat-card.blue {
    border-left-color: var(--xplore-blue);
}

.xplore-stat-label {
    color: #999;
    font-size: 12px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.xplore-stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--xplore-cyan);
    margin: 0;
}

.xplore-stat-card.orange .xplore-stat-value {
    color: var(--xplore-orange);
}

.xplore-stat-card.blue .xplore-stat-value {
    color: var(--xplore-blue);
}

/* ========== TABS ========== */

.xplore-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid var(--xplore-cyan);
    margin-bottom: 30px;
}

.xplore-tab-btn {
    background: none;
    border: none;
    padding: 15px 20px;
    color: #999;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.xplore-tab-btn.active {
    color: var(--xplore-blue);
    border-bottom-color: var(--xplore-orange);
}

.xplore-tab-btn:hover {
    color: var(--xplore-cyan);
}

/* ========== FORMS ========== */

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

.xplore-form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--xplore-dark);
    font-weight: bold;
    font-size: 14px;
}

.xplore-input,
.xplore-select,
.xplore-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--xplore-border);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.xplore-input:focus,
.xplore-select:focus,
.xplore-textarea:focus {
    outline: none;
    border-color: var(--xplore-cyan);
    box-shadow: 0 0 0 3px var(--xplore-cyan-bg);
}

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

.xplore-form-help {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

/* ========== PROGRESS BAR ========== */

.xplore-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
}

.xplore-progress-label-text {
    color: #666;
}

.xplore-progress-label-value {
    color: var(--xplore-blue);
    font-weight: bold;
}

.xplore-progress-bar {
    background: var(--xplore-cyan-bg);
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.xplore-progress-fill {
    background: linear-gradient(90deg, var(--xplore-cyan), var(--xplore-blue));
    height: 100%;
    transition: width 0.5s ease;
}

/* ========== CIRCLE COUNTDOWN ========== */

.xplore-circle-widget {
    background: linear-gradient(135deg, var(--xplore-cyan-bg), #B2EBF2);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xplore-circle-countdown {
    background: white;
    border: 2px solid var(--xplore-cyan);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.xplore-countdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--xplore-cyan-bg);
}

.xplore-countdown-header h3 {
    margin: 0;
    color: var(--xplore-blue);
}

.xplore-countdown-badge {
    background: linear-gradient(135deg, var(--xplore-cyan), var(--xplore-blue));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
}

.xplore-countdown-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.xplore-countdown-item p:first-child {
    color: #999;
    margin: 0 0 5px 0;
    font-size: 12px;
}

.xplore-countdown-item p:last-child {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.xplore-countdown-item:first-child p:last-child {
    color: var(--xplore-blue);
}

.xplore-countdown-item:last-child p:last-child {
    color: var(--xplore-orange);
}

.xplore-countdown-status {
    background: var(--xplore-light);
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.xplore-countdown-status.complete {
    background: var(--xplore-cyan-bg);
}

.xplore-countdown-status.complete p {
    color: var(--xplore-cyan);
}

/* ========== TABLES ========== */

.xplore-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.xplore-table thead tr {
    background-color: var(--xplore-light);
}

.xplore-table th {
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid var(--xplore-cyan);
    color: var(--xplore-blue);
    font-weight: bold;
}

.xplore-table td {
    padding: 12px;
    border-bottom: 1px solid var(--xplore-cyan-bg);
}

.xplore-table tbody tr:hover {
    background-color: var(--xplore-light);
}

.xplore-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.xplore-badge-cyan {
    background: var(--xplore-cyan-bg);
    color: var(--xplore-cyan);
}

.xplore-badge-orange {
    background: var(--xplore-orange-bg);
    color: var(--xplore-orange);
}

.xplore-badge-blue {
    background: var(--xplore-blue-bg);
    color: var(--xplore-blue);
}

/* ========== ALERTS ========== */

.xplore-alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.xplore-alert-info {
    background: var(--xplore-blue-bg);
    border-left: 4px solid var(--xplore-blue);
    color: var(--xplore-dark);
}

.xplore-alert-success {
    background: #C8E6C9;
    border-left: 4px solid #4CAF50;
    color: var(--xplore-dark);
}

.xplore-alert-warning {
    background: var(--xplore-orange-bg);
    border-left: 4px solid var(--xplore-orange);
    color: var(--xplore-dark);
}

.xplore-alert-error {
    background: #FFCDD2;
    border-left: 4px solid #F44336;
    color: var(--xplore-dark);
}

/* ========== HERO SECTION ========== */

.xplore-hero {
    background: linear-gradient(135deg, var(--xplore-cyan), var(--xplore-blue));
    padding: 40px 20px;
    text-align: center;
    color: white;
    border-radius: 8px;
    margin-bottom: 30px;
}

.xplore-hero h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
}

.xplore-hero p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.xplore-hero img {
    max-width: 200px;
    margin-bottom: 20px;
}

/* ========== LICENSES ========== */

.xplore-license-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.xplore-license-card {
    border: 2px solid var(--xplore-cyan-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.xplore-license-card:hover {
    border-color: var(--xplore-cyan);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.2);
}

.xplore-license-badge {
    background: linear-gradient(135deg, var(--xplore-cyan), var(--xplore-blue));
    color: white;
    padding: 15px;
    text-align: center;
}

.xplore-license-badge h3 {
    margin: 0;
    font-size: 18px;
}

.xplore-license-body {
    padding: 20px;
}

.xplore-license-price {
    color: var(--xplore-orange);
    font-size: 28px;
    font-weight: bold;
    margin: 20px 0;
}

.xplore-license-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    color: #666;
}

.xplore-license-features li {
    padding: 5px 0;
    border-bottom: 1px solid var(--xplore-light);
}

.xplore-license-features li:last-child {
    border-bottom: none;
}

/* ========== PRODUCTS ========== */

.xplore-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.xplore-product-card {
    background: white;
    border: 1px solid var(--xplore-cyan-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.xplore-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.2);
}

.xplore-product-image {
    background: linear-gradient(135deg, var(--xplore-cyan-bg), #B2EBF2);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.xplore-product-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.xplore-product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--xplore-cyan);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.xplore-product-badge.wholesale {
    background-color: var(--xplore-orange);
}

.xplore-product-body {
    padding: 20px;
}

.xplore-product-name {
    margin: 0 0 10px 0;
    color: var(--xplore-blue);
}

.xplore-product-description {
    color: #999;
    font-size: 13px;
    margin: 0 0 15px 0;
}

.xplore-product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.xplore-product-price-label {
    color: #666;
}

.xplore-product-price-value {
    color: var(--xplore-orange);
    font-size: 20px;
    font-weight: bold;
}

/* ========== REFERRALS ========== */

.xplore-referral-link-box {
    background: var(--xplore-light);
    border: 2px dashed var(--xplore-cyan);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.xplore-referral-link-box p {
    color: #666;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.xplore-referral-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.xplore-referral-input-group input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--xplore-border);
    border-radius: 4px;
    color: var(--xplore-blue);
    font-weight: bold;
}

/* ========== COMMISSIONS ========== */

.xplore-commission-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.xplore-commission-card {
    background: white;
    border: 2px solid var(--xplore-cyan-bg);
    border-radius: 8px;
    padding: 20px;
}

.xplore-commission-card h4 {
    margin-top: 0;
    color: white;
}

.xplore-commission-header {
    background: linear-gradient(135deg, var(--xplore-cyan), var(--xplore-blue));
    color: white;
    padding: 15px;
    margin: -20px -20px 20px -20px;
    border-radius: 6px 6px 0 0;
}

.xplore-commission-header.orange {
    background: linear-gradient(135deg, var(--xplore-orange), var(--xplore-orange-light));
}

.xplore-commission-amount {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.xplore-commission-card .xplore-commission-amount {
    color: var(--xplore-orange);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .xplore-grid {
        grid-template-columns: 1fr;
    }
    
    .xplore-license-grid,
    .xplore-product-grid {
        grid-template-columns: 1fr;
    }
    
    .xplore-countdown-info {
        grid-template-columns: 1fr;
    }
    
    .xplore-circle-widget {
        flex-direction: column;
        text-align: center;
    }
    
    .xplore-page-title {
        font-size: 22px;
    }
    
    .xplore-hero {
        padding: 20px;
    }
    
    .xplore-hero h1 {
        font-size: 24px;
    }
}

/* ========== UTILITY CLASSES ========== */

.xplore-text-center {
    text-align: center;
}

.xplore-text-muted {
    color: #999;
}

.xplore-mb-20 {
    margin-bottom: 20px;
}

.xplore-mt-20 {
    margin-top: 20px;
}

.xplore-hidden {
    display: none;
}

.xplore-flex {
    display: flex;
}

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

.xplore-w-100 {
    width: 100%;
}
