/**
 * TRANSPARENCY STYLES - Obelisk DEX
 * Styles for fee transparency page and components
 */

/* ============================================
   TRANSPARENCY PAGE
   ============================================ */

.transparency-page {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.transparency-header {
    text-align: center;
    margin-bottom: 32px;
}

.transparency-header h2 {
    color: #00ff88;
    font-size: 28px;
    margin-bottom: 8px;
}

.transparency-subtitle {
    color: #888;
    font-size: 16px;
}

.transparency-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.transparency-section {
    background: rgba(5, 10, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
}

.transparency-section.full-width {
    grid-column: 1 / -1;
}

.transparency-section h4 {
    color: #00ff88;
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   REVENUE MODEL
   ============================================ */

.revenue-model h4 {
    color: #00ff88;
    margin-bottom: 20px;
}

.revenue-sources {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.revenue-source {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    padding: 16px;
}

.source-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.source-icon {
    font-size: 20px;
}

.source-name {
    flex: 1;
    font-weight: 600;
    color: #fff;
}

.source-pct {
    background: linear-gradient(135deg, #00ff88, #00aaff);
    color: #000;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
}

.source-desc {
    color: #888;
    font-size: 13px;
    margin: 0;
}

.not-revenue {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 12px;
    padding: 16px;
}

.not-revenue h5 {
    color: #ff6b6b;
    margin: 0 0 12px 0;
    font-size: 14px;
}

.not-revenue ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.not-revenue li {
    color: #ccc;
    font-size: 13px;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.no-icon {
    color: #ff6b6b;
    font-weight: bold;
}

/* ============================================
   FEES LIST
   ============================================ */

.fees-list h4 {
    color: #00ff88;
    margin-bottom: 16px;
}

.fee-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
}

.fee-item.fee-zero {
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.05);
}

.fee-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.fee-name {
    font-weight: 600;
    color: #fff;
}

.fee-rate {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.fee-rate.rate-zero {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.fee-description {
    color: #888;
    font-size: 13px;
    margin: 0 0 6px 0;
}

.fee-note {
    color: #00aaff;
    font-size: 12px;
    margin: 0;
    font-style: italic;
}

/* ============================================
   PFOF EXPLANATION
   ============================================ */

.pfof-explanation h4 {
    color: #00ff88;
    font-size: 20px;
    margin-bottom: 20px;
}

.pfof-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pfof-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pfof-section h5 {
    color: #00aaff;
    font-size: 15px;
    margin: 0 0 12px 0;
}

.pfof-section p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.pfof-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pfof-section li {
    color: #ccc;
    font-size: 13px;
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.pfof-section li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #00ff88;
}

/* ============================================
   COMPETITOR TABLE
   ============================================ */

.competitor-table-wrapper {
    overflow-x: auto;
}

.competitor-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.competitor-table th {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
    white-space: nowrap;
}

.competitor-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
}

.competitor-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.competitor-table .highlight-row {
    background: rgba(0, 255, 136, 0.08) !important;
    border-left: 3px solid #00ff88;
}

.competitor-table .warning-row {
    background: rgba(255, 68, 68, 0.08) !important;
}

.competitor-name {
    font-weight: 700;
    color: #fff;
}

.highlight-row .competitor-name {
    color: #00ff88;
}

.main-value {
    display: block;
    font-weight: 600;
    color: #fff;
}

.sub-note {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.pfof-yes {
    color: #ff6b6b !important;
}

.pfof-yes .main-value {
    color: #ff6b6b;
    font-weight: bold;
}

.pfof-no .main-value {
    color: #00ff88;
}

.has-hidden {
    color: #ffaa00 !important;
}

.no-hidden {
    color: #00ff88 !important;
}

.cost-column {
    font-weight: 700;
    color: #00aaff;
}

.highlight-row .cost-column {
    color: #00ff88;
}

.warning-row .cost-column {
    color: #ff6b6b;
}

/* ============================================
   FEE CALCULATOR
   ============================================ */

.fee-calculator h4 {
    color: #00ff88;
    margin-bottom: 20px;
}

.calc-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.calc-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-group label {
    color: #888;
    font-size: 12px;
}

.calc-group input,
.calc-group select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
}

.calc-group input:focus,
.calc-group select:focus {
    border-color: #00ff88;
    outline: none;
}

.btn-calculate {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00ff88, #00aaff);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 16px;
    transition: transform 0.2s;
}

.btn-calculate:hover {
    transform: scale(1.02);
}

.calc-result {
    margin-top: 16px;
}

/* ============================================
   FEE BREAKDOWN CARD
   ============================================ */

.fee-breakdown-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.fee-breakdown-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 255, 136, 0.1);
    font-weight: 600;
    color: #00ff88;
}

.fee-icon {
    font-size: 18px;
}

.fee-breakdown-body {
    padding: 16px;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: #ccc;
    font-size: 14px;
}

.fee-row.fee-amount {
    color: #fff;
    font-weight: 600;
}

.fee-value {
    font-weight: 600;
}

.fee-value.negative {
    color: #ff6b6b;
}

.fee-value.positive {
    color: #00ff88;
}

.fee-separator {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.fee-row.fee-total {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.fee-row.fee-net {
    font-size: 16px;
    color: #00ff88;
}

.fee-pfof-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 8px;
    color: #00ff88;
    font-size: 13px;
}

.pfof-icon {
    font-size: 16px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .transparency-grid {
        grid-template-columns: 1fr;
    }

    .transparency-section.full-width {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .calc-inputs {
        grid-template-columns: 1fr;
    }

    .competitor-table {
        font-size: 12px;
    }

    .competitor-table th,
    .competitor-table td {
        padding: 10px 8px;
    }
}
