
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --bg-color: #0a0a0a;
    --card-bg: #151515;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #2a2a2a;
    --accent: #ffffff;
    --tag-bg: #1e1e1e;
    --tag-border: #333;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--text-muted);
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--bg-color);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.8;
}


.intro {
    text-align: center;
    padding: 60px 0 30px;
}

.intro h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.intro p {
    color: var(--text-muted);
}


.filter-panel {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.filter-row {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}


.search-box {
    position: relative;
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
    background-color: #0d0d0d;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0 14px;
    transition: border-color 0.2s;
}

.search-box:focus-within {
    border-color: #555;
}

.search-box i.fa-search {
    color: var(--text-muted);
    margin-right: 10px;
    font-size: 0.9rem;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 0.95rem;
    padding: 12px 0;
}

.search-box input::placeholder {
    color: #555;
}

.clear-search {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    display: none;
    line-height: 1;
    padding: 0 0 0 8px;
}

.clear-search:hover {
    color: #fff;
}

.clear-search.visible {
    display: block;
}


.sort-select {
    background-color: #0d0d0d;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.sort-select:hover,
.sort-select:focus {
    border-color: #555;
}


.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.filter-chip {
    background-color: var(--tag-bg);
    color: var(--text-muted);
    border: 1px solid var(--tag-border);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.filter-chip:hover {
    border-color: #666;
    color: #fff;
}

.filter-chip.active {
    background-color: var(--text-main);
    color: var(--bg-color);
    border-color: var(--text-main);
}


.results-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.results-info strong {
    color: #fff;
}


.dev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding-bottom: 60px;
}


.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #444;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.card-info h3 {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.username {
    color: var(--text-muted);
    font-size: 0.9rem;
}


.tags {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--tag-bg);
    border: 1px solid var(--tag-border);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s;
    text-transform: capitalize;
}

.tag i {
    font-size: 0.9rem;
    color: #aaa;
}

.tag:hover {
    border-color: #666;
    color: #fff;
    background-color: #252525;
}

.tag:hover i {
    color: #fff;
}

.card .tag {
    cursor: pointer;
}


.details {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.details span {
    display: block;
    margin-bottom: 4px;
}


.socials {
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.socials a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.2s;
}

.socials a:hover {
    color: var(--text-main);
}


.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #333;
}

.empty-state h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.empty-state p {
    margin-bottom: 20px;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.modal-body p {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.link {
    color: #4a9eff;
    text-decoration: none;
}

.github-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #e0e0e0;
    color: #000;
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 10px;
    transition: background 0.2s;
}

.github-btn:hover {
    background-color: #fff;
}


.profile-modal {
    max-width: 600px;
}

.profile-header-detail {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-header-detail .avatar {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.profile-header-detail h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.profile-header-detail .username {
    font-size: 1rem;
    color: var(--text-muted);
}

.profile-bio {
    margin-bottom: 20px;
    color: #ccc;
    line-height: 1.5;
    font-size: 0.95rem;
}

.profile-section {
    margin-bottom: 20px;
}

.profile-section h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}

.stack-list-detail {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}


.stack-list-detail .tag {
    font-size: 0.85rem;
    padding: 6px 12px;
    cursor: pointer;
}

.stack-list-detail .tag i {
    font-size: 1.1rem;
}

.profile-contacts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-contacts a {
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    background: #222;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background 0.2s;
}

.profile-contacts a:hover {
    background: #333;
}


@media (max-width: 600px) {
    .intro {
        padding: 40px 0 20px;
    }

    .intro h2 {
        font-size: 1.6rem;
    }

    .header-content {
        gap: 10px;
    }

    .btn-primary {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .filter-row {
        flex-direction: column;
    }

    .sort-select {
        width: 100%;
    }

    .filter-chip {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
}
