:root {
    --bg: #0b0d10;
    --text: #e4e7eb;
    --text-muted: #9ba3af;
    --border: #1f2937;
    --accent: #10b981;
    --radius: 8px;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.hero {
    margin-bottom: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.logo {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: var(--radius);
    flex-shrink: 0;
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sub {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.search-container {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-container input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.search-container input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(17, 24, 39, 1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: var(--text-muted);
    pointer-events: none;
}

.sort-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.sort-controls label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.sort-controls select {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    background: rgba(17, 24, 39, 0.8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2310b981'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") no-repeat right 0.75rem center/1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.875rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s ease;
    min-width: 140px;
}

.sort-controls select:focus,
.sort-controls select:hover {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(17, 24, 39, 1);
    box-shadow: 0 0 0 1px var(--accent);
}

.sort-controls select option {
    background-color: var(--bg);
    color: var(--text);
    padding: 0.5rem;
}

.pill {
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 9999px;
    color: var(--accent);
    font-size: 0.75rem;
    white-space: nowrap;
}

.table-card {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Masaüstünde mobil kartları gizle */
.mobile-cards {
    display: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}

caption {
    padding: 1rem;
    background: rgba(17, 24, 39, 0.5);
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: left;
}

th {
    padding: 1rem;
    background: rgba(17, 24, 39, 0.5);
    border-bottom: 1px solid var(--border);
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

tr:last-child td {
    border-bottom: none;
}

.op {
    font-weight: 500;
}

.accent {
    color: var(--accent);
}

.note {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s;
}

.link-btn:hover {
    background: rgba(17, 24, 39, 1);
    border-color: var(--accent);
}

.link-icon {
    width: 1rem;
    height: 1rem;
}

footer {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.new-badge {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    background: var(--accent);
    border-radius: 4px;
    color: var(--bg);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .wrap {
        padding: 1rem;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }

    .search-container {
        width: 100%;
    }

    .sort-controls {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .sort-controls select {
        width: 100%;
        padding: 0.75rem 2rem 0.75rem 1rem;
    }

    .pill {
        text-align: center;
    }

    /* Mobil için kart yapısı */
    .table-card {
        background: transparent;
        border: none;
        padding: 0;
    }

    table {
        display: none;
    }

    /* Mobil kart container */
    .mobile-cards {
        display: block;
    }

    .mobile-card {
        background: rgba(31, 41, 55, 0.5);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        margin-bottom: 1rem;
        padding: 1rem;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .mobile-card:last-child {
        margin-bottom: 0;
    }

    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--border);
    }

    .card-operator {
        font-weight: 600;
        font-size: 1rem;
        color: var(--text);
    }

    .card-prices {
        display: flex;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .price-item {
        flex: 1;
        text-align: center;
        padding: 0.75rem;
        background: rgba(17, 24, 39, 0.5);
        border: 1px solid var(--border);
        border-radius: var(--radius);
    }

    .price-label {
        display: block;
        font-size: 0.75rem;
        color: var(--text-muted);
        margin-bottom: 0.25rem;
        font-weight: 500;
    }

    .price-value {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--text);
    }

    .price-value.accent {
        color: var(--accent);
    }

    .card-details {
        margin-bottom: 1rem;
    }

    .card-detail {
        font-size: 0.75rem;
        color: var(--text-muted);
        line-height: 1.4;
    }

    .card-action {
        text-align: center;
    }

    .link-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.25rem;
    }

    .brand {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .search-container input,
    .sort-controls select {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }

    .search-container input {
        padding-left: 2.75rem;
    }

    .search-icon {
        width: 1.25rem;
        height: 1.25rem;
        left: 1rem;
    }

    .pill {
        width: 100%;
        text-align: center;
        padding: 0.5rem;
    }
}