/* =========================
   CONFIGURAÇÕES GERAIS
========================= */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #080808;
    color: white;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
}

.hidden {
    display: none !important;
}


/* =========================
   LOGIN
========================= */

.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #080808;
}

.login-box {
    width: 400px;
    background: #111111;
    border: 1px solid #292929;
    border-radius: 10px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 0 35px rgba(255, 106, 0, 0.08);
}

.login-logo {
    width: 220px;
    max-width: 100%;
    margin-bottom: 15px;
}

.login-box h1 {
    font-size: 25px;
    margin-bottom: 8px;
}

.login-subtitle {
    color: #999999;
    font-size: 14px;
    margin-bottom: 25px;
}

.login-box form {
    text-align: left;
}

.login-box label {
    display: block;
    color: #dddddd;
    font-size: 13px;
    margin-bottom: 6px;
}

.login-box input {
    width: 100%;
    height: 45px;
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 6px;
    color: white;
    padding: 0 12px;
    outline: none;
    margin-bottom: 18px;
}

.login-box input:focus {
    border-color: #ff6a00;
}

.login-button {
    width: 100%;
    height: 45px;
    background: #ff6a00;
    color: white;
    font-weight: bold;
    border-radius: 6px;
}

.login-button:hover {
    background: #ff7d26;
}

.login-message {
    color: #ff4d4d;
    font-size: 13px;
    margin-top: 12px;
}

.register-area {
    margin-top: 25px;
    color: #888888;
    font-size: 13px;
}

.register-area button {
    background: transparent;
    color: #ff6a00;
    margin-left: 5px;
    font-weight: bold;
}

.register-area button:hover {
    text-decoration: underline;
}


/* =========================
   COMUNIDADE
========================= */

.app {
    display: flex;
    height: 100vh;
    background: #0b0b0b;
}


/* =========================
   MENU LATERAL
========================= */

.sidebar {
    width: 250px;
    background: #111111;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #292929;
}

.logo-area {
    height: 85px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #292929;
}

.logo-area img {
    width: 150px;
    height: 70px;
    object-fit: contain;
}


/* =========================
   MENU
========================= */

.menu {
    padding: 15px 12px;
    flex: 1;
    overflow-y: auto;
}

.menu-title {
    color: #777777;
    font-size: 11px;
    font-weight: bold;
    margin: 16px 8px 7px;
}

.menu-item,
.channel {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #aaaaaa;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 3px;
    text-align: left;
    font-size: 14px;
}

.menu-item:hover,
.channel:hover {
    background: #222222;
    color: white;
}

.menu-item.active,
.channel.active {
    background: #252525;
    color: white;
    border-left: 3px solid #ff6a00;
}

.channel {
    padding-left: 12px;
    color: #999999;
}

.create-channel {
    width: 100%;
    background: transparent;
    color: #888888;
    padding: 10px;
    text-align: left;
    margin-top: 5px;
    border-radius: 6px;
}

.create-channel:hover {
    background: #222222;
    color: #ff6a00;
}


/* =========================
   USUÁRIO
========================= */

.user {
    height: 65px;
    background: #0d0d0d;
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 9px;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #555555;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

.user-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.user-info strong {
    font-size: 13px;
}

.user-info small {
    color: #55bb66;
    font-size: 11px;
    margin-top: 3px;
}

.settings {
    background: transparent;
    color: #888888;
    font-size: 17px;
}

.settings:hover {
    color: #ff6a00;
}


/* =========================
   ÁREA PRINCIPAL
========================= */

.main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 65px;
    border-bottom: 1px solid #292929;
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
    background: #111111;
}

.channel-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel-title span {
    color: #ff6a00;
    font-size: 22px;
}

.channel-title strong {
    font-size: 15px;
}

.top-actions {
    display: flex;
    gap: 8px;
}

.top-actions button {
    background: transparent;
    color: #999999;
    font-size: 17px;
    padding: 6px;
}

.top-actions button:hover {
    color: #ff6a00;
}


/* =========================
   CHAT
========================= */

.chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.welcome {
    border-bottom: 1px solid #292929;
    padding-bottom: 25px;
    margin-bottom: 20px;
}

.welcome-icon {
    font-size: 42px;
    margin-bottom: 10px;
    color: #ff6a00;
}

.welcome h1 {
    font-size: 25px;
    margin-bottom: 8px;
}

.welcome p {
    color: #999999;
    max-width: 650px;
    line-height: 1.5;
}


/* =========================
   MENSAGENS
========================= */

.message {
    display: flex;
    gap: 12px;
    padding: 10px 5px;
    border-radius: 5px;
    position: relative;
}

.message:hover {
    background: #151515;
}

.message-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.message-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-info strong {
    font-size: 14px;
}

.message-info span {
    font-size: 11px;
    color: #777777;
}

.message p {
    margin-top: 5px;
    color: #d7d7d7;
    font-size: 14px;
    line-height: 1.4;
}

.pin-message-button {
    margin-left: 8px;
    background: transparent;
    color: #777777;
    opacity: 0;
    font-size: 13px;
}

.message:hover .pin-message-button {
    opacity: 1;
}

.pin-message-button:hover {
    color: #ff6a00;
}


/* =========================
   CAMPO DE MENSAGEM
========================= */

.message-area {
    margin: 0 20px 20px;
    height: 52px;
    background: #202020;
    border: 1px solid #303030;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.message-area input {
    flex: 1;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 14px;
    padding: 0 10px;
}

.message-area input::placeholder {
    color: #777777;
}

.add-button,
.send-button {
    background: transparent;
    color: #999999;
    font-size: 20px;
    padding: 8px;
}

.add-button:hover,
.send-button:hover {
    color: #ff6a00;
}


/* =========================
   MEMBROS
========================= */

.members {
    width: 220px;
    background: #111111;
    border-left: 1px solid #292929;
    padding: 22px 15px;
    overflow-y: auto;
}

.members h3 {
    color: #858585;
    font-size: 11px;
    margin-bottom: 20px;
}

.member-title {
    color: #858585;
    font-size: 10px;
    font-weight: bold;
    margin: 17px 5px 10px;
}

.member {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 5px;
    color: #d5d5d5;
    font-size: 13px;
    border-radius: 5px;
}

.member:hover {
    background: #222222;
}

.member .avatar {
    width: 34px;
    height: 34px;
}

.online {
    position: relative;
}

.online::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    background: #43c463;
    border: 2px solid #111111;
    border-radius: 50%;
    right: -1px;
    bottom: -1px;
}

.offline {
    opacity: 0.45;
}


/* =========================
   EXPLORAR / VAGAS
========================= */

.explore-page {
    padding: 25px;
}

.explore-header {
    margin-bottom: 20px;
}

.explore-header h1 {
    font-size: 25px;
    margin-bottom: 7px;
}

.explore-header p {
    color: #999999;
}

.explore-search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.explore-search input {
    flex: 1;
    background: #1b1b1b;
    border: 1px solid #333333;
    border-radius: 7px;
    color: white;
    padding: 13px;
    outline: none;
}

.explore-search input:focus {
    border-color: #ff6a00;
}

.explore-search button,
.job-card button {
    background: #ff6a00;
    color: white;
    border-radius: 7px;
    padding: 0 16px;
    font-weight: bold;
}

.explore-search button:hover,
.job-card button:hover {
    background: #ff7d26;
}

.job-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}

.job-card {
    background: #151515;
    border: 1px solid #292929;
    border-radius: 9px;
    padding: 17px;
}

.job-card h3 {
    margin-bottom: 8px;
}

.job-card p {
    color: #aaa;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.job-card .job-type {
    color: #ff6a00;
    font-size: 12px;
    margin-bottom: 14px;
}

.job-card button {
    height: 36px;
}

.saved {
    background: #242424 !important;
    color: #ff6a00 !important;
    border: 1px solid #ff6a00 !important;
}


/* =========================
   MODAIS
========================= */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    padding: 20px;
}

.modal-box {
    width: 430px;
    max-width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    background: #151515;
    border: 1px solid #333333;
    border-radius: 10px;
    padding: 25px;
}

.modal-box h2 {
    margin-bottom: 20px;
}

.modal-box label {
    display: block;
    font-size: 13px;
    color: #bbb;
    margin-bottom: 6px;
}

.modal-box input {
    width: 100%;
    height: 43px;
    background: #202020;
    border: 1px solid #333333;
    border-radius: 6px;
    color: white;
    padding: 0 12px;
    outline: none;
    margin-bottom: 15px;
}

.modal-box input:focus {
    border-color: #ff6a00;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    color: #aaa;
    font-size: 25px;
}

.modal-close:hover {
    color: white;
}

.modal-primary,
.modal-danger {
    width: 100%;
    height: 42px;
    border-radius: 6px;
    margin-top: 8px;
    font-weight: bold;
}

.modal-primary {
    background: #ff6a00;
    color: white;
}

.modal-danger {
    background: #a51d1d;
    color: white;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-result {
    background: #202020;
    border: 1px solid #303030;
    border-radius: 7px;
    padding: 12px;
}

.search-result strong {
    font-size: 13px;
}

.search-result small {
    color: #777;
    margin-left: 7px;
}

.search-result p {
    margin-top: 5px;
    color: #ccc;
    font-size: 13px;
}


/* =========================
   RESPONSIVIDADE
========================= */

@media (max-width: 900px) {
    .members {
        display: none;
    }
}

@media (max-width: 650px) {
    .sidebar {
        width: 65px;
    }

    .logo-area img {
        width: 55px;
    }

    .menu-item span:last-child,
    .channel span:last-child,
    .create-channel {
        display: none;
    }

    .menu-item,
    .channel {
        justify-content: center;
    }

    .user-info,
    .settings {
        display: none;
    }

    .user {
        justify-content: center;
    }

    .login-box {
        width: 90%;
        padding: 25px;
    }

    .explore-page {
        padding: 18px;
    }

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

    .explore-search button {
        height: 42px;
    }
}
