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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Telos Brand Colors */
:root {
    --telos-cyan: #00F2FE;
    --telos-blue: #4FACFE;
    --telos-purple: #C471F5;
    --gradient-primary: linear-gradient(135deg, var(--telos-cyan), var(--telos-blue), var(--telos-purple));
    --gradient-secondary: linear-gradient(45deg, var(--telos-purple), var(--telos-blue));
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #333333;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
}

/* Background Gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(0, 242, 254, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(196, 113, 245, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

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

/* Header */
.header {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.gradient-text {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--telos-blue);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    color: var(--text-primary);
    border-color: var(--telos-cyan);
}

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

.full-width {
    width: 100%;
    justify-content: center;
}

/* Main Content */
.main {
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Search Section */
.search-section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0,242,254,0.08), rgba(79,172,254,0.06), rgba(196,113,245,0.04));
    border: 1px solid rgba(0,242,254,0.2);
    border-radius: 16px;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-section .search-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-section .search-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.search-container {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

.search-container input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: rgba(0,0,0,0.4);
    border: 2px solid rgba(79,172,254,0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-container input::placeholder {
    color: rgba(255,255,255,0.35);
}

.search-container input:focus {
    outline: none;
    border-color: var(--telos-cyan);
    box-shadow: 0 0 0 4px rgba(0,242,254,0.15), 0 0 20px rgba(0,242,254,0.1);
}

.search-container .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: #000;
    white-space: nowrap;
}

.search-result {
    max-width: 500px;
    margin: 1.25rem auto 0;
    padding: 1rem 1.25rem;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    display: none;
    font-size: 1.05rem;
}

.search-result.show {
    display: block;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tab-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--telos-cyan);
}

.tab-btn:hover {
    color: var(--text-primary);
}

/* Content Sections */
.content {
    min-height: 400px;
}

.tab-content {
    display: none;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.section-header input {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    max-width: 200px;
}

/* Bids Grid */
.bids-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.bid-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.bid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.bid-card:hover {
    transform: translateY(-2px);
    border-color: var(--telos-blue);
}

.bid-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--telos-cyan);
}

.bid-amount {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.bid-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.bid-actions {
    display: flex;
    gap: 0.5rem;
}

.bid-actions .btn {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* History List */
.history-list {
    space-y: 1rem;
}

.history-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.history-name {
    font-weight: 600;
    color: var(--telos-cyan);
}

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

/* States */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.error-state {
    text-align: center;
    padding: 2rem;
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
    border-radius: 0.5rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.bid-info {
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

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

.bid-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.bid-form input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.bid-form input:focus {
    outline: none;
    border-color: var(--telos-blue);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

/* Status Messages */
.status-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
    max-width: 400px;
}

.status-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.status-success {
    background: var(--success);
}

.status-error {
    background: var(--error);
}

.status-info {
    background: var(--telos-blue);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .search-container {
        flex-direction: column;
    }

    .tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-header input {
        max-width: none;
        width: 100%;
    }

    .bids-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bid-card {
        padding: 1rem;
    }

    .bid-actions {
        flex-direction: column;
    }

    .modal-content {
        margin: 1rem;
        max-width: none;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 0.75rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h2 {
        font-size: 1.75rem;
    }

    .main {
        padding: 1rem 0;
    }

    .modal-header,
    .modal-body {
        padding: 1rem;
    }
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.overlay.show {
    display: block;
}

/* Utility Classes */
.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-error {
    color: var(--error) !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}.bid-card.claimed { opacity: 0.5; }

.logo-img {
    height: 32px;
    vertical-align: middle;
    margin-right: 8px;
}
@media (max-width: 768px) {
    .logo-img { height: 24px; }
}

/* How It Works */
.how-it-works {
    margin: 2rem 0;
    text-align: center;
}
.how-it-works h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #00F2FE, #4FACFE, #C471F5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}
.step {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.3s;
}
.step:hover {
    border-color: rgba(0,242,254,0.3);
}
.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00F2FE, #4FACFE);
    color: #000;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.step-text {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.5;
}
.step-text strong {
    color: #fff;
    font-size: 1rem;
}

/* Logo inline alignment */
.logo {
    display: flex;
    align-items: flex-end;
    gap: 0;
}
.logo .logo-img {
    height: 36px;
    margin-right: 10px;
}
.logo .gradient-text {
    line-height: 1;
    margin-bottom: 0;
}
