/* ================================================================
   nodes.css — node directory page styles
   ================================================================ */

.page-header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-header p {
    font-size: 18px;
    color: #8e9297;
    max-width: 600px;
    margin: 0 auto;
}

.nodes-section {
    padding: 60px 20px;
}

.nodes-controls {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.search-box {
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    background-color: #2a2a2a;
    border: 1px solid #36393f;
    border-radius: 6px;
    color: #ffffff;
    font-size: 16px;
}

.search-box input:focus {
    outline: none;
    border-color: #7289da;
}

.search-box input::placeholder {
    color: #72767d;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    background-color: #36393f;
    color: #8e9297;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #7289da;
    color: #ffffff;
}

.nodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.node-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.node-card:hover {
    transform: translateY(-5px);
    border-color: #7289da;
    background-color: #323232;
}

.node-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.node-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.node-number {
    width: 50px;
    height: 50px;
    background-color: #7289da;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

.node-details h3 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 5px;
}

.node-url {
    font-size: 14px;
    color: #8e9297;
    font-family: monospace;
}

.node-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.node-status.online {
    background-color: #43b581;
    box-shadow: 0 0 8px #43b581;
}

.node-status.offline {
    background-color: #747f8d;
}

.node-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #1a1a1a;
    border-radius: 6px;
}

.node-stat {
    text-align: center;
}

.node-stat-ping {
    grid-column: 1 / -1;
}

.node-stat .value {
    font-size: 24px;
    font-weight: 700;
    color: #7289da;
    display: block;
    margin-bottom: 5px;
}

.node-stat .label {
    font-size: 12px;
    color: #8e9297;
    text-transform: uppercase;
}

.node-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #8e9297;
}

.node-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.node-meta-item i {
    color: #7289da;
    width: 16px;
}

.node-actions {
    display: flex;
    gap: 10px;
}

.node-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.node-btn-primary {
    background-color: #7289da;
    color: white;
}

.node-btn-primary:hover {
    background-color: #5b6eae;
}

.node-btn-secondary {
    background-color: #36393f;
    color: #8e9297;
}

.node-btn-secondary:hover {
    background-color: #4a4d52;
    color: #ffffff;
}

.loading-state,
.empty-state {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.loading-state i,
.empty-state i {
    font-size: 64px;
    color: #7289da;
    margin-bottom: 20px;
}

.loading-state h2,
.empty-state h2 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 15px;
}

.loading-state p,
.empty-state p {
    color: #8e9297;
    font-size: 16px;
}

@media (max-width: 768px) {
    .nodes-controls {
        flex-direction: column;
    }

    .search-box {
        max-width: 100%;
    }

    .nodes-grid {
        grid-template-columns: 1fr;
    }

    .node-stats {
        grid-template-columns: 1fr;
    }
}
