body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
    color: #fff;
    background: #0d1117;
}

/* Hero & Content */
.welcome-hero {
    position: relative;
    min-height: 100vh;
    background: url("/img/bg.jpg") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    padding-top: 4rem;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.85), rgba(20, 24, 30, 0.85));
}

.content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
    padding: 2rem;
    animation: fadeIn 1.2s ease-out;
}

.welcome-logo {
    width: 100px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

h1 {
    font-size: 2.4em;
    font-weight: 600;
    margin-bottom: 0.4em;
}

h1 span {
    color: #ff7b00;
}

p {
    font-size: 1.1em;
    color: #c9d1d9;
    margin-bottom: 1rem;
}

/* Search Form */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto 2rem auto;
}

.search-form input {
    padding: 0.8em;
    border-radius: 6px;
    border: none;
    outline: none;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
}

.search-form .btn.primary {
    background: #ff7b00;
    color: #fff;
    border: none;
    padding: 0.8em;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
}

/* Repo List */
.repo-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.repo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #161b22;
    padding: 1rem;
    border-radius: 6px;
}

.repo-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
}

.repo-info {
    flex: 1;
    margin-left: 1rem;
    text-align: left;
}

.repo-headername {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.repo-name {
    color: #ff7b00;
    font-weight: 600;
    text-decoration: none;
    margin: 0;
    font-size: 1.2em; 
    line-height: 1;
    /* text-transform: uppercase; /* Все буквы заглавные */ */
    letter-spacing: 0.5px; /* Немного раздвигаем буквы */
}

.repo-status { 
    font-size: 0.9em; 
    margin-left: 0.5rem; 
} 

.repo-status.private { 
    color: #d73a49; /* Красный для приватных */ 
} 

.repo-status.public { 
    color: #2ea043; /* Зелёный для публичных */ 
} 

.repo-desc {
    font-size: 0.85em;
    color: #c9d1d9;
    margin: 0.5rem 0 0 0;   
}

.repo-time {
    font-size: 0.85em;
    color: #8b949e;
    margin: 0.5rem 0 0 0;
}

.repo-meta span {
    margin-left: 0.5rem;
    color: #c9d1d9;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination .item {
    padding: 0.5em 0.8em;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    min-width: 36px;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease;
    background: #161b22;
    color: #c9d1d9;
    cursor: pointer;
}

.pagination .item:hover:not(.active):not(.disabled) {
    background: #1f242b;
    color: #ff7b00;
}

.pagination .item.active {
    background: #ff7b00;
    color: #fff;
}

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

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }
    .welcome-logo {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .search-form,
    .repo-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .repo-headername,
    .repo-info {
        width: 100%;
        margin-left: 0;
    }
    .repo-avatar {
        margin-bottom: 1rem;
    }
}

/*public and private styles*/
.repo-status {
    display: inline-block;
    padding: 0.2em 0.5em;
    font-size: 0.7em;
    font-weight: 500;
    line-height: 1;
    color: #8b949e; /* Серый цвет текста */
    background-color: #21262d; /* Тёмный фон рамочки */
    border: 1px solid #30363d; /* Тонкая серая рамка */
    border-radius: 4px; /* Скругление углов (можно убрать для строгой квадратности) */
    text-transform: uppercase; /* Все буквы заглавные */
    letter-spacing: 0.5px; /* Немного раздвигаем буквы */
    white-space: nowrap; /* Запрещаем перенос */
}

/* Дополнительные стили для состояний */
.repo-status.private {
    background-color: #381a1a; /* Тёмно-красный фон для private */
    border-color: #552d2d;
}

.repo-status.public {
    background-color: #1a2b21; /* Тёмно-зелёный фон для public */
    border-color: #2e4e33;
}

